﻿/* ============================================
   News.css - تنسيقات صفحة الأخبار
   ============================================ */

.news-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.news-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

    .news-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.news-hero-content {
    position: relative;
    z-index: 1;
}

    .news-hero-content i {
        font-size: 60px;
        color: #fbbf24;
        margin-bottom: 20px;
    }

    .news-hero-content h1 {
        font-size: 36px;
        margin: 0 0 10px;
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .news-hero-content p {
        color: #94a3b8;
        font-size: 16px;
    }

/* Stats Bar */
.news-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 15px 30px;
    text-align: center;
    min-width: 150px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

    .stat-item i {
        font-size: 28px;
        color: #fbbf24;
        display: block;
        margin-bottom: 8px;
    }

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
}

/* Filters Section */
.news-filters-section {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.filters-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 5px 15px;
    border-radius: 40px;
}

    .filter-group label {
        color: #94a3b8;
        font-size: 13px;
    }

.filter-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
}

.search-group {
    background: rgba(15, 23, 42, 0.6);
    padding: 2px 2px 2px 5px;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    width: 200px;
}

    .search-input::placeholder {
        color: #64748b;
    }

.search-btn {
    background: rgba(251, 191, 36, 0.2);
    border: none;
    color: #fbbf24;
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        background: #fbbf24;
        color: #0f172a;
    }

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fbbf24;
}

    .section-header i {
        font-size: 24px;
        color: #fbbf24;
    }

    .section-header h2 {
        font-size: 22px;
        margin: 0;
        color: #fff;
        flex: 1;
    }

.news-count {
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #fbbf24;
}

/* Featured News */
.featured-news-section {
    margin-bottom: 50px;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.featured-news-card {
    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(-5px);
        border-color: #fbbf24;
        box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
    }

.featured-news-image {
    height: 200px;
    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-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.featured-news-content {
    padding: 20px;
}

.news-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
}

.news-type {
    color: #fbbf24;
}

.news-date {
    color: #94a3b8;
}

.featured-news-content h3 {
    font-size: 20px;
    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;
}

/* All News Grid */
.all-news-section {
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    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;
}

    .news-card:hover {
        transform: translateY(-3px);
        border-color: #fbbf24;
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.1);
    }

.news-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

    .news-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pinned-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fbbf24;
    color: #0f172a;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.news-card-content {
    padding: 18px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11px;
}

.news-card-content h3 {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.4;
}

    .news-card-content h3 a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .news-card-content h3 a:hover {
            color: #fbbf24;
        }

.news-card-content p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-stats {
    font-size: 11px;
    color: #94a3b8;
}

    .news-stats i {
        margin-left: 4px;
    }

.read-more, .read-more-small {
    color: #fbbf24;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

    .read-more:hover, .read-more-small:hover {
        gap: 8px;
        color: #f59e0b;
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .page-btn:hover {
        background: rgba(251, 191, 36, 0.2);
        border-color: #fbbf24;
    }

    .page-btn.active {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #0f172a;
        border-color: transparent;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 25px;
    margin-top: 30px;
}

    .empty-state i {
        font-size: 60px;
        color: #94a3b8;
        margin-bottom: 20px;
    }

    .empty-state h3 {
        font-size: 24px;
        margin-bottom: 10px;
        color: #fff;
    }

    .empty-state p {
        color: #94a3b8;
        margin-bottom: 20px;
    }

.reset-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .reset-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
    }

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .no-image i {
        font-size: 48px;
        color: #fbbf24;
        opacity: 0.5;
    }

/* Light Mode */
body.light-mode .news-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

body.light-mode .news-hero-content p {
    color: #64748b;
}

body.light-mode .stat-item {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .stat-value {
    color: #0f172a;
}

body.light-mode .news-filters-section {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .filter-group {
    background: #f8fafc;
}

body.light-mode .filter-select {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
}

body.light-mode .search-input {
    color: #0f172a;
}

body.light-mode .section-header h2 {
    color: #0f172a;
}

body.light-mode .featured-news-card,
body.light-mode .news-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .featured-news-content h3,
body.light-mode .news-card-content h3 a {
    color: #0f172a;
}

body.light-mode .featured-news-content p,
body.light-mode .news-card-content p {
    color: #475569;
}

body.light-mode .page-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}

body.light-mode .empty-state {
    background: #f8fafc;
}

    body.light-mode .empty-state h3 {
        color: #0f172a;
    }

/* Responsive */
@media (max-width: 768px) {
    .news-hero {
        padding: 30px 20px;
    }

    .news-hero-content h1 {
        font-size: 28px;
    }

    .featured-news-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .search-group {
        justify-content: space-between;
    }

    .search-input {
        width: 100%;
    }

    .news-stats-bar {
        gap: 15px;
    }

    .stat-item {
        min-width: 100px;
        padding: 10px 15px;
    }

    .stat-value {
        font-size: 20px;
    }
}
