:root {
    --bg: #000;
    --bg-elev: #0d0d0d;
    --text: #fff;
    --muted: #c9c9c9;
    --primary: #ffffff;
    --primary-strong: #eaeaea;
    --accent: #ffffff;
    --ok: #90E0EF;
    --warn: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --container: 1160px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .55);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--bg);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease
}

a:hover {
    color: #bbb
}

a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

*:focus:not(:focus-visible) {
    outline: none
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.header {
    position: sticky
}

.hero {
    position: relative;
    background: #000;
    min-height: 80vh
}

.hero .hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    pointer-events: none;
    background: #000
}

.hero .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.8s ease-in-out
}

.hero .hero-video.loaded {
    opacity: 1
}

.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .6));
    z-index: 1;
    pointer-events: none
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700
}

.logo img {
    width: 28px;
    height: 28px;
    object-fit: contain
}

.lang-switch {
    display: flex;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 4px;
    border-radius: 999px
}

.lang-switch button {
    background: transparent;
    border: 0;
    color: #bbb;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease
}

.lang-switch button.active {
    background: #fff;
    color: #000
}


.hero {
    position: relative;
    min-height: 80vh;
    display: grid;
    place-items: center;
    overflow: hidden
}

.hero .hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    pointer-events: none
}

.hero .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .6));
    z-index: 1;
    pointer-events: none
}


body:not(.articles-page):not(.article-page) .hero::before,
body:not(.articles-page):not(.article-page) .hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 3;
    border: none;
    outline: none;
}

body:not(.articles-page):not(.article-page) .hero::before {
    top: 0;
    height: 80px;
    transform: skewY(-2deg);
    transform-origin: top left;
}

body:not(.articles-page):not(.article-page) .hero::after {
    bottom: -120px;
    height: 200px;
    transform: skewY(-2deg);
    transform-origin: bottom left;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 120px 0 180px;
    text-align: center;
}

.hero-inner .hero-content,
.hero-inner .hero-subtitle {
    transform: none !important;
    transition: none !important;
}


.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 30px;
}

.brand-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 50px;
    display: block;
    filter: brightness(1.1) contrast(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.3) contrast(1.2);
}

@media (max-width: 900px) {
    .brand-logo {
        max-width: 450px;
        margin: 0 30px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 600px) {
    .brand-logo {
        max-width: 280px;
        margin: 0 20px;
    }

    .hero-logo {
        margin: 0 auto 20px;
    }

    .hero-inner {
        padding: 80px 20px 120px;
    }

    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 0.05em;
        padding: 0 10px;
        word-spacing: 0.1em;
    }

    .cta {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .cta .button {
        width: 100%;
        max-width: 250px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    transform: none !important;
    transition: none !important;
}

.hero-subtitle {
    font-size: 18px;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transform: none !important;
    transition: none !important;
}


.cta {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center
}

.button {
    background: #fff;
    color: #000;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
    background: #eaeaea
}

.button.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .2)
}

.section {
    padding: 20px 0
}

.section .head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 24px
}

.section h2 {
    font-size: 32px;
    margin: 0
}

.grid {
    display: grid;
    gap: 20px
}


.reveal {
    opacity: 0;
    transform: translateY(8px);
}

.reveal.show {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease, transform .4s ease
}


.footer {
    padding: 80px 0 30px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #bdbdbd;
    text-align: center
}

.footer-content {
    max-width: 800px;
    margin: 0 auto
}


.footer-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center
}

.footer-brand {
    max-width: 270px;
    height: auto;
    filter: brightness(1);
    transition: filter 0.3s ease;
    display: block;
    margin: 0 auto;
    transform: translateX(-10px)
}

.footer-brand:hover {
    filter: brightness(1.1)
}


.footer-tagline {
    margin-bottom: 40px;
    text-align: center
}

.footer-tagline p {
    font-size: 16px;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600
}


.footer-social {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--muted);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    position: relative
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.1)
}

.social-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease
}

.social-icon:hover::after {
    opacity: 1
}

.social-icon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1
}


.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .08)
}

.footer-bottom p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em
}


@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 30px
    }

    .footer-brand {
        max-width: 200px
    }

    .footer-tagline h3 {
        font-size: 24px
    }
}


.games-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
    padding: 80px 0 20px
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 0 50px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em
}


.grid.cards {
    grid-template-columns:repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%
}

.game-card {
    background: var(--bg-elev);
    border-radius: var(--radius);
    overflow: hidden;
    height: 350px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 15px rgba(144, 224, 239, 0.2);
}


.card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: scale(1.0);
}

.game-card:hover .card-image {
    transform: scale(1.05)
}


.card-top-title {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 2;
    transition: opacity 0.3s ease
}

.game-card:hover .card-top-title {
    opacity: 0
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2
}

.status-open {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3)
}

.status-development {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3)
}

.status-maintenance {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3)
}

.status-closed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3)
}


.card-logo {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 4;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
}

.game-card:hover .card-logo {
    opacity: 1
}

/* Overlay au hover */
.card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3
}

.game-card:hover .card-hover-overlay {
    opacity: 1
}

.card-hover-content {
    text-align: center;
    padding: 0 20px
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff
}

.card-subtitle {
    font-size: 14px;
    color: #bbb;
    margin: 0;
    font-weight: 400
}


.game-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    height: 100%
}

.game-link:hover {
    transform: none
}


.download-section {
    text-align: center;
    margin-top: 50px
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    color: #000 !important;
    padding: 20px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.15em;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.28);
    font-size: 16px
}

.download-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(255, 255, 255, 0.38);
    color: #000 !important
}

.download-button:focus,
.download-button:focus-visible {
    border-radius: 12px
}


.button-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) !important;
    transition: filter 0.3s ease
}

.download-button:hover .button-icon {
    filter: brightness(0) !important
}

/* Overlay informatif pour le téléchargement */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px)
}

.info-overlay.visible {
    opacity: 1
}

.info-overlay-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease
}

.info-overlay.visible .info-overlay-content {
    transform: scale(1)
}

.info-overlay-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: 0.02em
}

.info-overlay-message {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px 0
}

.info-overlay-close {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2)
}

.info-overlay-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3)
}

.info-overlay-close:active {
    transform: translateY(0)
}


.article-full {
    padding: 60px 0;
    background: var(--bg)
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px auto
}

.article-breadcrumb {
    margin-bottom: 20px
}

.article-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease
}

.article-breadcrumb a:hover {
    color: #fff
}

.article-meta-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--muted)
}

.article-date-full {
    text-transform: uppercase;
    letter-spacing: 0.1em
}

.article-tags-full {
    display: flex;
    gap: 8px
}

.article-title-full {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2
}

.article-excerpt-full {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0
}

.article-image-full {
    max-width: 800px;
    margin: 0 auto 40px auto;
    border-radius: 12px
}

.article-image-full img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35)
}

.article-content-full {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text)
}

.article-content-full p {
    margin-bottom: 24px
}

.article-content-full h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 20px 0
}

.article-content-full h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 30px 0 15px 0
}

.article-content-full ul, .article-content-full ol {
    margin-bottom: 24px;
    padding-left: 24px
}

.article-content-full li {
    margin-bottom: 8px
}

.article-content-full h1 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 24px 0
}

.article-content-full h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 12px 0
}

.article-content-full h5 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 20px 0 10px 0
}

.article-content-full h6 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 16px 0 8px 0
}

.article-content-full blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--primary);
    background: var(--bg-elev);
    font-style: italic;
    color: var(--muted)
}

.article-content-full code {
    background: var(--bg-elev);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary)
}

.article-content-full pre {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-elev);
    border-radius: var(--radius);
    overflow-x: auto
}

.article-content-full pre code {
    background: none;
    padding: 0;
    color: var(--text)
}

.article-content-full img {
    margin: 24px auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block
}

.article-content-full strong {
    font-weight: 700;
    color: #fff
}

.article-content-full em {
    font-style: italic
}

.article-content-full u {
    text-decoration: underline
}

.article-content-full s {
    text-decoration: line-through
}

.article-content-full a {
    color: var(--primary);
    text-decoration: underline;
    transition: opacity 0.2s
}

.article-content-full a:hover {
    opacity: 0.8
}

.article-footer {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--muted)
}

.article-author strong {
    color: #fff
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px
}

.share-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease
}

.share-link:hover {
    color: var(--primary-strong)
}


.error-message {
    text-align: center;
    padding: 60px 20px
}

.error-message h1 {
    font-size: 36px;
    color: #fff;
    margin: 0 0 20px 0
}

.error-message p {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 30px 0
}


@media (max-width: 900px) {
    .article-title-full {
        font-size: 36px
    }

    .article-excerpt-full {
        font-size: 18px
    }

    .article-content-full {
        font-size: 16px
    }

    .article-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center
    }
}

@media (max-width: 600px) {
    .article-title-full {
        font-size: 28px
    }

    .article-excerpt-full {
        font-size: 16px
    }

    .article-content-full {
        font-size: 15px
    }

    .article-meta-full {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start
    }

    .article-image-full {
        margin-bottom: 24px
    }
}


@media (max-width: 900px) {
    .grid.cards {
        grid-template-columns:repeat(2, 1fr);
        gap: 20px
    }

    .section-title {
        font-size: 36px
    }
}

@media (max-width: 600px) {
    .grid.cards {
        grid-template-columns:1fr;
        gap: 20px
    }

    .section-title {
        font-size: 28px
    }

    .game-card {
        height: 300px
    }
}


.articles-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
    padding: 20px 0 60px 0
}


.articles-preview {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px
}

.articles-cta {
    text-align: center
}


.articles-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px
}


.article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease
}

.article-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15)
}

.article-image {
    height: 200px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05)
}

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

.article-card:hover .article-image img {
    transform: scale(1.05)
}

.article-content {
    padding: 24px 18px
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--muted)
}

.article-date {
    text-transform: uppercase;
    letter-spacing: 0.1em
}

.article-tags {
    display: flex;
    gap: 8px
}

.tag {
    background: rgba(144, 224, 239, 0.1);
    color: #90E0EF;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3
}

.article-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 20px 0
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease
}

.read-more:hover {
    color: var(--primary-strong)
}


.admin-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 60px
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px
}

.admin-header h2 {
    color: #fff;
    margin: 0
}


.admin-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px
}


.articles-content {
    margin-top: 0px
}

.articles-content .section-title {
    margin-bottom: 32px;
    color: #fff;
    font-size: 28px;
    font-weight: 700
}


.admin-login + .articles-content,
.admin-panel + .articles-content {
    margin-top: 24px
}


.article-form {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px
}

.article-form h3 {
    color: #fff;
    margin: 0 0 20px 0
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(144, 224, 239, 0.5)
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px
}


.admin-card {
    border-color: rgba(144, 224, 239, 0.2)
}

.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px
}

.button.small {
    padding: 6px 12px;
    font-size: 12px
}


.view-all-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px
}


.view-all-container .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    color: #000 !important;
    padding: 20px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.15em;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.28);
    font-size: 16px;
}

.view-all-container .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(255, 255, 255, 0.38);
    color: #000 !important;
}


@media (max-width: 900px) {
    .articles-preview {
        grid-template-columns:repeat(2, 1fr);
        gap: 20px
    }

    .articles-grid {
        grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px
    }
}

@media (max-width: 600px) {
    .articles-preview {
        grid-template-columns:1fr;
        gap: 20px
    }

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

    .admin-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start
    }

    .form-actions {
        flex-direction: column
    }
}


.articles-hero {
    min-height: 30vh;
    background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
    padding-bottom: 20px
}

.articles-hero .hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em
}

.articles-hero .hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em
}


.about-section {
    background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
    padding: 80px 0
}

.about-content {
    margin-top: 60px
}

.about-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto
}

.about-description {
    font-size: 20px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 50px
}


.about-features {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px
}

.feature {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, border-color 0.4s ease
}

.feature::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(144, 224, 239, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none
}

.feature:hover::after {
    opacity: 1
}

.feature:hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(144, 224, 239, 0.4);
    box-shadow: 0 0 30px rgba(144, 224, 239, 0.2)
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(144, 224, 239, 0.15) 0%, rgba(72, 202, 228, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(144, 224, 239, 0.2);
    position: relative;
    z-index: 1;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, border-color 0.4s ease
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: #90E0EF;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(144, 224, 239, 0.25) 0%, rgba(72, 202, 228, 0.15) 100%);
    border-color: rgba(144, 224, 239, 0.4)
}

.feature:hover .feature-icon svg {
    color: #48CAE4;
    transform: scale(1.1)
}

.feature h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
    transition: color 0.3s ease
}

.feature:hover h3 {
    color: #90E0EF
}

.feature p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease
}

.feature:hover p {
    color: rgba(255, 255, 255, 0.9)
}


.about-stats {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 40px;
    text-align: center
}

.stat {
    padding: 30px 20px
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #90E0EF;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(144, 224, 239, 0.3)
}

.stat-label {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em
}


@media (max-width: 900px) {
    .about-features {
        grid-template-columns:repeat(2, 1fr);
        gap: 30px
    }

    .about-stats {
        grid-template-columns:repeat(2, 1fr);
        gap: 30px
    }

    .about-description {
        font-size: 18px
    }
}

@media (max-width: 600px) {
    .about-features {
        grid-template-columns:1fr;
        gap: 20px
    }

    .about-stats {
        grid-template-columns:1fr;
        gap: 20px
    }

    .about-description {
        font-size: 16px
    }

    .stat-number {
        font-size: 36px
    }
}


.article-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.article-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}


.homepage-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.homepage-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-brand {
    text-align: center;
    color: #fff;
}

.loader-logo {
    max-width: 500px;
    height: auto;
    margin: 0 50px;
    margin-bottom: 40px;
    filter: brightness(1.1) contrast(1.1);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9
    }
    50% {
        transform: scale(1.05);
        opacity: 1
    }
}

@media (max-width: 900px) {
    .loader-logo {
        max-width: 380px;
        margin: 0 30px 40px;
    }
}

@media (max-width: 600px) {
    .loader-logo {
        max-width: 240px;
        margin: 0 20px 30px;
    }
}

.articles-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 0;
}

.articles-loader .loader-content {
    text-align: center;
    color: var(--text);
}

.articles-loader .loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.articles-loader p {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.articles-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px 24px;
}

.articles-preview .articles-empty {
    padding-top: 32px;
}

.articles-grid .articles-empty {
    padding-top: 0;
    padding-bottom: 40px;
}

.articles-section:has(.articles-empty) {
    padding-bottom: 20px;
}

.articles-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.articles-empty-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 auto;
    max-width: 420px;
    opacity: 0.75;
}


.error-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-elev) 100%);
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-number {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.error-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.error-description {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .button {
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-actions .button.primary {
    background: var(--primary);
    color: var(--bg);
    border: 1px solid var(--primary);
}

.error-actions .button.primary:hover {
    background: var(--primary-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.error-actions .button.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.error-actions .button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.error-illustration {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.error-icon {
    font-size: 80px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px)
    }
    50% {
        transform: translateY(-10px)
    }
}


@media (max-width: 768px) {
    .error-number {
        font-size: 80px
    }

    .error-title {
        font-size: 28px
    }

    .error-description {
        font-size: 16px
    }

    .error-actions {
        flex-direction: column;
        align-items: center
    }

    .error-actions .button {
        width: 200px;
        justify-content: center
    }
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

.image-lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

#article-text img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#article-text img:hover {
    opacity: 0.85;
}
