/* ========================================
   News List Page Styles
   ======================================== */

:root {
    --sb-dark-1: #0d1b2a;
    --sb-dark-2: #1b263b;
    --sb-dark-3: #415a77;
    --sb-yellow: #ffed00;
    --sb-yellow-dark: #ffc300;
    --sb-glass: rgba(255, 255, 255, 0.03);
    --sb-glass-border: rgba(255, 255, 255, 0.1);
    --sb-text-muted: rgba(255, 255, 255, 0.6);
}

/* ========================================
   News Hero Section
   ======================================== */
.news-hero {
    background: linear-gradient(135deg, var(--sb-dark-1) 0%, var(--sb-dark-2) 50%, var(--sb-dark-3) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255, 237, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.news-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.news-honeycomb {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-12l20-12V22L28 10 8 22v20l20 12z' fill='%23ffed00' fill-opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.news-hero-content {
    position: relative;
    z-index: 10;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 237, 0, 0.1);
    border: 1px solid rgba(255, 237, 0, 0.3);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sb-yellow);
    margin-bottom: 1.5rem;
}

.news-hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.news-hero-title .highlight {
    color: var(--sb-yellow);
    position: relative;
}

.news-hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    color: var(--sb-text-muted);
    line-height: 1.7;
    max-width: 600px;
}

.breadcrumb-dark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
}

.breadcrumb-dark a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sb-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-dark a:hover {
    color: var(--sb-yellow);
}

.breadcrumb-dark span {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sb-yellow);
}

.breadcrumb-dark iconify-icon {
    color: var(--sb-text-muted);
}

/* ========================================
   News Content Section
   ======================================== */
.news-content-section {
    background: linear-gradient(180deg, var(--sb-dark-2) 0%, var(--sb-dark-1) 100%);
    padding: 80px 0 100px;
    position: relative;
    min-height: 60vh;
}

.news-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-glass-border), transparent);
}

/* ========================================
   Featured News Card
   ======================================== */
.featured-news-card {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 60px;
    transition: all 0.4s ease;
    position: relative;
}

.featured-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sb-yellow), var(--sb-yellow-dark));
}

.featured-news-card:hover {
    border-color: rgba(255, 237, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.featured-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-card:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.featured-image-overlay {
    display: none;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--sb-yellow), var(--sb-yellow-dark));
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--sb-dark-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-reading-time {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--sb-dark-2);
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.featured-ref {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(255, 237, 0, 0.15);
    border: 1px solid rgba(255, 237, 0, 0.3);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--sb-yellow);
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.featured-title:hover {
    color: var(--sb-yellow);
}

.featured-excerpt {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--sb-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sb-glass-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--sb-text-muted);
}

.meta-item iconify-icon {
    font-size: 1.1rem;
    color: var(--sb-yellow);
}

/* ========================================
   Section Header
   ======================================== */
.section-header-news {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-label-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-label-news iconify-icon {
    font-size: 1.5rem;
    color: var(--sb-yellow);
}

.section-label-news span {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.news-count {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sb-text-muted);
    padding: 8px 16px;
    background: var(--sb-glass);
    border: 1px solid var(--sb-glass-border);
    border-radius: 50px;
}

/* ========================================
   News Grid Cards
   ======================================== */
.news-card {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--sb-yellow), var(--sb-yellow-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    border-color: rgba(255, 237, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 27, 42, 0.6) 100%);
}

.news-card-reading {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--sb-dark-2);
}

.news-card-logo {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3);
}

.news-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-card-content {
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.news-card-ref {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(255, 237, 0, 0.1);
    border: 1px solid rgba(255, 237, 0, 0.2);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--sb-yellow);
    margin-bottom: 0.75rem;
    width: fit-content;
}

.news-card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title:hover {
    color: var(--sb-yellow);
}

.news-card-excerpt {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--sb-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--sb-glass-border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: var(--sb-text-muted);
}

.news-card-meta-item iconify-icon {
    font-size: 1rem;
    color: var(--sb-yellow);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: var(--sb-glass);
    border: 1px solid var(--sb-glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-state-icon iconify-icon {
    font-size: 3rem;
    color: var(--sb-yellow);
}

.empty-state h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--sb-text-muted);
}

/* ========================================
   Pagination Dark Theme
   ======================================== */
.pagination-dark {
    margin-top: 60px;
}

.pagination-dark .pagination {
    gap: 8px;
}

.pagination-dark .page-item .page-link {
    background: var(--sb-glass);
    border: 1px solid var(--sb-glass-border);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.pagination-dark .page-item .page-link:hover {
    background: rgba(255, 237, 0, 0.1);
    border-color: rgba(255, 237, 0, 0.3);
    color: var(--sb-yellow);
}

.pagination-dark .page-item.active .page-link {
    background: linear-gradient(135deg, var(--sb-yellow), var(--sb-yellow-dark));
    border-color: var(--sb-yellow);
    color: var(--sb-dark-2);
}

.pagination-dark .page-item.disabled .page-link {
    background: transparent;
    border-color: var(--sb-glass-border);
    color: var(--sb-text-muted);
    opacity: 0.5;
}

/* ========================================
   Create Button
   ======================================== */
.create-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--sb-yellow), var(--sb-yellow-dark));
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--sb-dark-2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.create-news-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.create-news-btn:hover::before {
    left: 100%;
}

.create-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(255, 237, 0, 0.4);
    color: var(--sb-dark-2);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .news-hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .news-hero-subtitle {
        margin: 0 auto;
    }
    
    .breadcrumb-dark {
        justify-content: center;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-image-wrapper {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .news-hero-title {
        font-size: 2rem;
    }
    
    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header-news {
        flex-direction: column;
        align-items: flex-start;
    }
}
