/*
 * TURKONFED Hero News Section
 * Editorial Grid Slider
 */

/* ============================================
   HERO NEWS BASE
   ============================================ */

.hero-news {
    position: relative;
    background: var(--color-bg-white);
    overflow: hidden;
    padding-top: var(--header-height, 80px);
}

/* Particles Background */
.hero-particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f8f9fa 40%,
        #f1f3f5 70%,
        #e9ecef 100%
    );
}

.hero-particles-bg canvas {
    display: block;
}

/* ============================================
   EDITION HEADER
   ============================================ */

.hero-news-header {
    position: relative;
    z-index: 2;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-news-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-news-brand {
    display: none;
}

.hero-news-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.hero-news-edition {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-news-today {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ============================================
   SLIDER CONTAINER
   ============================================ */

.hero-news-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 3rem;
}

.hero-news-slider {
    position: relative;
    width: 100%;
}

/* ============================================
   SLIDES
   ============================================ */

.hero-news-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-news-slide.active {
    display: block;
    opacity: 1;
}

/* ============================================
   NEWS GRID
   ============================================ */

.hero-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
}

/* ============================================
   FEATURED ARTICLE
   ============================================ */

.featured-article {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-bg-white);
}

.featured-article-link {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.featured-article-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    background: var(--color-bg-light);
}

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

.featured-article-link:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 70%
    );
}

.featured-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-category-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
}

.featured-article-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.featured-article-excerpt {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.featured-article-cta {
    margin-top: auto;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: gap 0.3s ease;
}

.featured-article-link:hover .read-more {
    gap: 0.75rem;
}

.read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.featured-article-link:hover .read-more svg {
    transform: translateX(3px);
}

/* ============================================
   SECONDARY ARTICLES
   ============================================ */

.secondary-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.secondary-article {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.secondary-article:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.secondary-article-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.secondary-article-image {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--color-bg-light);
}

.secondary-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.secondary-article-link:hover .secondary-article-image img {
    transform: scale(1.05);
}

.secondary-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.secondary-article-title {
    font-family: var(--font-family-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

.hero-news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-news-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-news-nav svg {
    width: 20px;
    height: 20px;
}

.hero-news-prev {
    left: -1rem;
}

.hero-news-next {
    right: -1rem;
}

/* ============================================
   PAGINATION
   ============================================ */

.hero-news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 2.5rem;
}

.hero-news-dot {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-news-dot:hover {
    background: var(--color-text-muted);
    transform: scale(1.2);
}

.hero-news-dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   STATS BAR
   ============================================ */

.hero-news-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
    flex-wrap: wrap;
}

.hero-news-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-news-stat-value {
    font-family: var(--font-family-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.hero-news-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-news-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: transparent;
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-news-all-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    gap: 0.75rem;
}

.hero-news-all-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.hero-news-all-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-news-container {
        padding: 2rem 1.5rem;
    }

    .featured-article-image {
        min-height: 350px;
    }

    .secondary-articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-news-header {
        padding: 1.5rem 0 1rem;
    }

    .hero-news-header-inner {
        padding: 0 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .hero-news-brand {
        font-size: 1.25rem;
    }

    .hero-news-date {
        align-items: center;
    }

    .hero-news-container {
        padding: 1.5rem 1rem;
    }

    .hero-news-grid {
        min-height: auto;
    }

    .featured-article-image {
        min-height: 280px;
    }

    .featured-article-content {
        padding: 1.5rem;
    }

    .secondary-articles {
        grid-template-columns: 1fr;
    }

    .featured-article-title {
        -webkit-line-clamp: 2;
    }

    .featured-article-excerpt {
        -webkit-line-clamp: 2;
    }

    .secondary-article-link {
        flex-direction: row;
        padding: 0;
    }

    .secondary-article-image {
        width: 120px;
        height: 90px;
        border-radius: 8px 0 0 8px;
    }

    .secondary-article-title {
        font-size: 0.875rem;
    }

    .hero-news-nav {
        width: 40px;
        height: 40px;
    }

    .hero-news-nav svg {
        width: 18px;
        height: 18px;
    }

    .hero-news-prev {
        left: 0.5rem;
    }

    .hero-news-next {
        right: 0.5rem;
    }

    .hero-news-stats {
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .hero-news-stat-value {
        font-size: 1.5rem;
    }

    .hero-news-stat-label {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .hero-news-header-inner {
        padding: 0 1rem;
    }

    .hero-news-container {
        padding: 1rem;
    }

    .featured-article-image {
        min-height: 240px;
    }

    .featured-article-content {
        padding: 1rem;
        gap: 0.5rem;
    }

    .secondary-articles {
        gap: 1rem;
    }

    .secondary-article-link {
        flex-direction: row;
    }

    .secondary-article-image {
        width: 100px;
        height: 75px;
        border-radius: 6px 0 0 6px;
    }

    .secondary-article-content {
        padding: 0.75rem;
    }

    .hero-news-all-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-news-slide,
    .featured-article-image img,
    .secondary-article-image img,
    .hero-news-nav,
    .hero-news-dot,
    .read-more {
        animation: none;
        transition: none;
    }
}
