/* ============================================================
   HOME.CSS - nemaides.fr - Gaming & Esport Blog
   Dark theme: #0f172a / #1e293b / accent #ef4444 / #dc2626
   ============================================================ */

/* -- Skip Link ------------------------------------------------ */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* -- Container ------------------------------------------------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* -- Generic Section Utilities -------------------------------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ef4444;
    margin-bottom: 10px;
}

.section-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

/* -- Global SVG Constraint ------------------------------------ */
svg {
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.80) 0%,
        rgba(15, 23, 42, 0.70) 50%,
        rgba(15, 23, 42, 0.92) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 6rem 2rem 3rem;
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero__eyebrow svg {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

.hero__title span {
    color: #ef4444;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(203, 213, 225, 0.9);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Hero Actions */
.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-morph {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-morph:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-2px);
}

.btn-morph svg {
    width: 18px;
    height: 18px;
}

.btn--outline-light {
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn--outline-light:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Featured Card inside Hero */
.hero__featured {
    max-width: 800px;
    margin: 0 auto;
}

.featured-card {
    display: flex;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.featured-card__image-wrap {
    flex: 0 0 280px;
    min-height: 200px;
}

.featured-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card__body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ef4444;
    margin-bottom: 0.75rem;
}

.featured-card__label svg {
    width: 12px;
    height: 12px;
}

.featured-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.featured-card__title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-card__title a:hover {
    color: #ef4444;
}

.featured-card__excerpt {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 0.75rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.featured-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-card__meta-item svg {
    width: 13px;
    height: 13px;
}

/* Hero Scroll Hint */
.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    margin: 6px auto 0;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
    background: #1e293b;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    padding: 3rem 2rem;
}

.stats-band__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stat-item__icon svg {
    width: 36px;
    height: 36px;
    max-width: 40px;
    max-height: 40px;
    color: #ef4444;
    stroke: #ef4444;
}

.stat-item__value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.stat-item__label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
    background: #0f172a;
    padding: 5rem 2rem;
}

.about-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-strip__visual {
    position: relative;
}

.about-strip__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.about-strip__badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.about-strip__content {
    padding: 0;
}

.about-strip__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ef4444;
    margin-bottom: 1rem;
}

.about-strip__kicker svg {
    width: 14px;
    height: 14px;
}

.about-strip__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 1.2rem;
    line-height: 1.25;
}

.about-strip__text {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.about-strip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: border-color 0.2s, color 0.2s;
}

.about-tag:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.about-tag svg {
    width: 13px;
    height: 13px;
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.articles-section {
    background: #0b1121;
    padding: 5rem 2rem;
}

.articles-section__header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.articles-section__header-left {
    flex: 1;
}

.articles-section__all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s;
}

.articles-section__all-link:hover {
    gap: 12px;
    color: #f87171;
}

.articles-section__all-link svg {
    width: 15px;
    height: 15px;
}

/* Filter Tabs */
.filter-tabs {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 50px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.filter-tab.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.filter-tab__count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
}

.filter-tab.active .filter-tab__count {
    background: rgba(255, 255, 255, 0.25);
}

/* Articles Grid */
.articles-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Article Card */
.article-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.article-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #334155;
}

.article-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card__category {
    display: inline-block;
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 0.75rem;
    align-self: flex-start;
    transition: background 0.2s;
}

.article-card__category:hover {
    background: rgba(220, 38, 38, 0.25);
    color: #ef4444;
}

.article-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.article-card__title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card__title a:hover {
    color: #ef4444;
}

.article-card__excerpt {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0 0 1rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: #64748b;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    padding-top: 0.75rem;
    margin-top: auto;
}

.article-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-card__meta-item svg {
    width: 13px;
    height: 13px;
}

/* ============================================================
   TOPICS / CATEGORIES
   ============================================================ */
.topics-section {
    background: #0f172a;
    padding: 5rem 2rem;
}

.topics-grid {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-4px);
    border-color: #ef4444;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    color: inherit;
}

.topic-card__icon {
    width: 48px;
    height: 48px;
    max-width: 60px;
    max-height: 60px;
    color: #ef4444;
    stroke: #ef4444;
    margin-bottom: 1rem;
}

.topic-card__name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.4rem;
}

.topic-card__count {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-section {
    background: #0b1121;
    padding: 5rem 2rem;
}

.comparison-table-wrap {
    max-width: 1200px;
    margin: 2rem auto 0;
}

.comparison-table-wrap .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #334155;
}

.comparison-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table-wrap thead {
    background: #1e293b;
}

.comparison-table-wrap th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: #f1f5f9;
    font-size: 0.9rem;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}

.comparison-table-wrap td {
    padding: 0.9rem 1.25rem;
    color: #cbd5e1;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    line-height: 1.5;
}

.comparison-table-wrap tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.4);
}

.comparison-table-wrap tbody tr:hover {
    background: rgba(30, 41, 59, 0.7);
}

.comparison-table-wrap td strong {
    color: #ef4444;
    font-weight: 700;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 5rem 2rem;
    border-top: 1px solid #334155;
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.12);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: #ef4444;
}

.newsletter-icon svg {
    width: 28px;
    height: 28px;
}

.newsletter-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 0.75rem;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.95rem;
    min-width: 0;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ef4444;
}

.newsletter-input::placeholder {
    color: #64748b;
}

.newsletter-submit {
    padding: 14px 28px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.newsletter-submit:hover {
    background: #b91c1c;
}

.newsletter-success {
    display: none;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-disclaimer {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

/* ============================================================
   RESPONSIVE - TABLET (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .hero__content {
        padding: 5rem 1.5rem 2rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-card__image-wrap {
        flex: none;
        height: 200px;
    }

    .stats-band__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-strip__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-strip__badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        display: inline-block;
        margin-top: 1rem;
    }

    .about-strip__visual {
        text-align: center;
    }

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

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-submit {
        width: 100%;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }

    .hero__content {
        padding: 4rem 1rem 2rem;
    }

    .hero__title {
        font-size: 1.7rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn-morph,
    .btn--outline-light {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .featured-card__body {
        padding: 1rem;
    }

    .stats-band {
        padding: 2rem 1rem;
    }

    .stats-band__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item__value {
        font-size: 1.5rem;
    }

    .about-strip {
        padding: 3rem 1rem;
    }

    .about-strip__title {
        font-size: 1.4rem;
    }

    .articles-section {
        padding: 3rem 1rem;
    }

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

    .topics-section {
        padding: 3rem 1rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .comparison-section {
        padding: 3rem 1rem;
    }

    .newsletter-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
}
