﻿/* ============================================
   Default.News.css - تنسيقات أخبار الدوري
   ============================================ */

/* ============================================
   9.1 الخبر المثبت (بصورة كبيرة)
   ============================================ */

.featured-news-container {
    margin-bottom: 30px;
}

.featured-news-card {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

    .featured-news-card:hover {
        transform: translateY(-3px);
        border-color: #fbbf24;
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.15);
    }

.featured-news-image {
    width: 40%;
    position: relative;
    overflow: hidden;
}

    .featured-news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.featured-news-content {
    flex: 1;
    padding: 25px 25px 25px 0;
}

.featured-news-type {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    color: #fbbf24;
    margin-bottom: 12px;
}

.featured-news-content h3 {
    font-size: 24px;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.3;
}

.featured-news-content p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #64748b;
}

    .featured-news-meta i {
        margin-left: 5px;
    }

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .read-more-link:hover {
        gap: 12px;
        color: #f59e0b;
    }

/* ============================================
   9.2 آخر الأخبار (2 كروت جنب بعض)
   ============================================ */

.latest-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.latest-news-card {
    display: flex;
    gap: 15px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

    .latest-news-card:hover {
        transform: translateY(-3px);
        border-color: #fbbf24;
        box-shadow: 0 5px 15px rgba(251, 191, 36, 0.1);
    }

.latest-news-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

    .latest-news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.latest-news-card:hover .latest-news-image img {
    transform: scale(1.05);
}

.latest-news-content {
    flex: 1;
    padding: 12px 12px 12px 0;
}

.latest-news-type {
    font-size: 10px;
    color: #fbbf24;
    margin-bottom: 6px;
}

.latest-news-content h4 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-date {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.read-more-small {
    font-size: 12px;
    color: #fbbf24;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

    .read-more-small:hover {
        gap: 8px;
        color: #f59e0b;
    }

/* ============================================
   9.3 أخبار عشوائية (قائمة)
   ============================================ */

.random-news-container {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.random-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fbbf24;
}

    .random-news-header i {
        font-size: 24px;
        color: #fbbf24;
    }

    .random-news-header h3 {
        font-size: 18px;
        margin: 0;
        color: #fff;
        flex: 1;
    }

.view-all-link {
    color: #fbbf24;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

    .view-all-link:hover {
        gap: 8px;
        color: #f59e0b;
    }

.random-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.random-news-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .random-news-item:hover {
        background: rgba(251, 191, 36, 0.1);
        transform: translateX(-5px);
    }

.random-news-icon {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .random-news-icon i {
        font-size: 18px;
        color: #fbbf24;
    }

.random-news-info {
    flex: 1;
}

.random-news-title {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

    .random-news-title:hover {
        color: #fbbf24;
    }

.random-news-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.news-type-badge {
    background: rgba(251, 191, 36, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: #fbbf24;
}

/* ============================================
   9.4 تنسيقات الوضع الفاتح (Light Mode)
   ============================================ */

body.light-mode .featured-news-card,
body.light-mode .latest-news-card,
body.light-mode .random-news-container {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .featured-news-content h3,
body.light-mode .latest-news-content h4,
body.light-mode .random-news-header h3 {
    color: #0f172a;
}

body.light-mode .featured-news-content p,
body.light-mode .random-news-title {
    color: #334155;
}

    body.light-mode .random-news-title:hover {
        color: #f59e0b;
    }

body.light-mode .featured-news-type {
    background: rgba(245, 158, 11, 0.1);
}

body.light-mode .featured-news-meta,
body.light-mode .latest-news-date,
body.light-mode .random-news-meta {
    color: #64748b;
}

body.light-mode .random-news-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

    body.light-mode .random-news-item:hover {
        background: #fef9e3;
        border-color: #fbbf24;
    }

body.light-mode .news-type-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* ============================================
   9.5 تنسيقات الشاشات الصغيرة (Responsive)
   ============================================ */

@media (max-width: 768px) {
    .featured-news-card {
        flex-direction: column;
    }

    .featured-news-image {
        width: 100%;
        height: 200px;
    }

    .featured-news-content {
        padding: 20px;
    }

        .featured-news-content h3 {
            font-size: 20px;
        }

    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .latest-news-image {
        width: 80px;
        height: 80px;
    }

    .latest-news-content h4 {
        font-size: 14px;
    }

    .random-news-container {
        padding: 15px;
    }

    .random-news-header h3 {
        font-size: 16px;
    }

    .random-news-icon {
        width: 35px;
        height: 35px;
    }

        .random-news-icon i {
            font-size: 16px;
        }

    .random-news-title {
        font-size: 13px;
    }
}

/* ============================================
   9.6 صور افتراضية (Placeholder) - أضف هذا في النهاية
   ============================================ */

/* تنسيق الصورة الافتراضية عند عدم وجود صورة */
.featured-news-image {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .featured-news-image .no-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .featured-news-image .no-image i {
            font-size: 60px;
            color: #fbbf24;
            opacity: 0.5;
        }

.latest-news-image {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .latest-news-image .no-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .latest-news-image .no-image i {
            font-size: 30px;
            color: #fbbf24;
            opacity: 0.5;
        }

/* ============================================
   9.6 أيقونة افتراضية عند عدم وجود صورة (باستخدام ::before)
   ============================================ */

.featured-news-image {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

    .featured-news-image img {
        position: relative;
        z-index: 1;
    }

        .featured-news-image img[src=""],
        .featured-news-image img:not([src]) {
            opacity: 0;
        }

    .featured-news-image::before {
        content: "\f0f6";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 60px;
        color: #fbbf24;
        opacity: 0.5;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 0;
    }

.latest-news-image {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

    .latest-news-image img {
        position: relative;
        z-index: 1;
    }

        .latest-news-image img[src=""],
        .latest-news-image img:not([src]) {
            opacity: 0;
        }

    .latest-news-image::before {
        content: "\f0f6";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 30px;
        color: #fbbf24;
        opacity: 0.5;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 0;
    }


    /* ============================================
   9.7 صور بدون وميض (Placeholder بدون onerror)
   ============================================ */

    .featured-news-image .image-placeholder,
    .latest-news-image .image-placeholder {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        background-color: linear-gradient(135deg, #1e293b, #0f172a);
    }

        .featured-news-image .image-placeholder i,
        .latest-news-image .image-placeholder i {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 40px;
            color: #fbbf24;
            opacity: 0.5;
            transition: opacity 0.3s ease;
        }

        .featured-news-image .image-placeholder.has-image i,
        .latest-news-image .image-placeholder.has-image i {
            opacity: 0;
        }

        .featured-news-image .image-placeholder:hover i,
        .latest-news-image .image-placeholder:hover i {
            opacity: 0.3;
        }