/* ============================================
   NAUDRION — Gothic Dark Fantasy Design System
   ============================================ */

:root {
    --bg-dark:        #0d0f12;
    --bg-panel:       #13151a;
    --bg-card:        #181b21;
    --border-subtle:  #2e2a1f;
    --border-color:   #4a4131;
    --border-light:   #6e6146;
    --text-muted:     #7a7361;
    --text-main:      #cdc8b0;
    --text-heading:   #d9b86c;
    --accent:         #8b2323;
    --accent-hover:   #b83131;
    --font-heading:   'Cinzel', serif;
    --font-text:      'Cormorant Garamond', serif;
    --radius:         2px;
    --section-pad:    100px;
    --container:      1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; }

/* ── Base ── */
body {
    font-family: var(--font-text);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
}

a { color: var(--text-heading); text-decoration: none; transition: color 0.3s; }
a:hover { color: #fff; }

/* ── Layout ── */
.site-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 30px;
}

/* ── Section Labels ── */
.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-left: 2px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 12px;
}

.section-heading {
    font-size: 2.4rem;
    text-transform: uppercase;
    margin-bottom: 55px;
    position: relative;
}
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin-top: 12px;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: #fff;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    border: 1px solid rgba(255,100,100,0.3);
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(139,35,35,0.3);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 0 30px rgba(184,49,49,0.5);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-heading);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s;
}
.btn-ghost:hover {
    color: #fff;
    border-color: var(--border-light);
    background-color: rgba(255,255,255,0.04);
}

/* ── Header ── */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13,15,18,0.97);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.header-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 30px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.logo-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 0 8px rgba(217,184,108,0.2);
}
.logo-link:hover {
    color: #fff;
    text-shadow: 0 0 16px rgba(217,184,108,0.5);
}

.main-nav { display: flex; gap: 32px; }
.main-nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}
.main-nav a:hover { color: var(--text-heading); }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}
.main-nav a:hover::after { width: 100%; }

/* ── Hero ── */
.hero {
    min-height: 92vh;
    background-size: cover;
    background-position: center 25%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,15,18,0.3) 0%,
        rgba(13,15,18,0.5) 50%,
        rgba(13,15,18,0.95) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}
.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
    text-shadow: 0 0 60px rgba(0,0,0,1);
    margin-bottom: 20px;
    letter-spacing: 0.06em;
}
.hero-sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}
.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── About Section ── */
.about-section {
    padding: var(--section-pad) 30px;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 80px;
}

.about-intro-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 25px;
    line-height: 1.2;
}
.about-intro-text p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 18px;
    line-height: 1.8;
}
.about-intro-text .section-label { margin-bottom: 18px; }

.about-intro-image {
    position: relative;
    padding: 10px;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 0 5px var(--bg-dark),
        0 0 0 6px var(--border-subtle),
        0 20px 50px rgba(0,0,0,0.8);
    margin: 6px;
}
.about-intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1) brightness(0.85);
    display: block;
    border-radius: 4px;
}
.about-intro-image::after {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border-radius: 4px;
    box-shadow: inset 0 0 15px 5px rgba(0,0,0,0.5);
    pointer-events: none;
}
.about-intro-image-border {
    display: none;
}

/* ── Features ── */
.features-block { }

.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    border: 1px solid var(--border-subtle);
}

.feature-card {
    background-color: var(--bg-card);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    background-color: #1c1f26;
    border-color: var(--border-subtle);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 2.2rem;
    color: var(--text-heading);
    margin-bottom: 22px;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 4px rgba(217,184,108,0.15));
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(217,184,108,0.5));
}

.feature-card h3 {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.feature-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Gallery ── */
.gallery-section {
    padding: var(--section-pad) 30px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 6px;
}
.gallery-item { overflow: hidden; }
.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-thumb {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    filter: sepia(0.2) contrast(1.05) brightness(0.85);
    transition: all 0.4s ease;
    cursor: pointer;
}
.gallery-item--large .gallery-thumb { min-height: 420px; }
.gallery-thumb:hover {
    filter: sepia(0) contrast(1.1) brightness(1.0);
    transform: scale(1.02);
}
.gallery-item--hidden {
    display: none;
}

/* ── Devlogs ── */
.devlogs-section {
    padding: var(--section-pad) 30px;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
}

.devlogs-feed {
    max-width: 900px;
}

.devlog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.devlog-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.devlog-card-image { position: relative; overflow: hidden; }
.devlog-img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1) brightness(0.85);
    transition: filter 0.5s, transform 0.5s;
}
.devlog-card:hover .devlog-img {
    filter: sepia(0) contrast(1.1) brightness(0.95);
    transform: scale(1.03);
}
.devlog-date-badge {
    position: absolute;
    top: 16px; left: 16px;
    background-color: rgba(13,15,18,0.85);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    text-transform: uppercase;
}

.devlog-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.devlog-content h3 {
    font-size: 1.6rem;
    line-height: 1.3;
}
.devlog-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3px;
    transition: all 0.3s;
    align-self: flex-start;
}
.read-more:hover { color: #fff; border-color: var(--text-heading); gap: 14px; }

/* ── Community ── */
.community-section {
    padding: var(--section-pad) 30px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.social-card {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 44px 30px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}
.social-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}
.steam-card::before { background: #66c0f4; }
.discord-card::before { background: #5865F2; }
.vk-card::before { background: #0077ff; }
.tg-card::before { background: #2ca5e0; }

.social-card:hover { transform: translateY(-6px); }
.social-card:hover::before { opacity: 1; }

.steam-card:hover   { border-color: rgba(102,192,244,0.4); box-shadow: 0 12px 40px rgba(102,192,244,0.1); }
.discord-card:hover { border-color: rgba(88,101,242,0.4);  box-shadow: 0 12px 40px rgba(88,101,242,0.1); }
.vk-card:hover      { border-color: rgba(0,119,255,0.4);   box-shadow: 0 12px 40px rgba(0,119,255,0.1); }
.tg-card:hover      { border-color: rgba(44,165,224,0.4);  box-shadow: 0 12px 40px rgba(44,165,224,0.1); }

.social-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 18px;
    color: var(--text-heading);
    transition: transform 0.3s;
}
.social-card:hover .social-icon { transform: scale(1.1); }
.social-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-heading); }

/* ── Footer ── */
.main-footer {
    padding: 50px 30px;
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-subtle);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.main-footer p {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-content { position: relative; text-align: center; }
.lightbox-content img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 60px rgba(0,0,0,0.9);
}

.lightbox-close {
    position: absolute;
    top: -50px; right: 0;
    color: var(--text-muted);
    font-size: 2.5rem;
    line-height: 1;
    transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-heading);
    font-size: 2rem;
    padding: 16px 20px;
    background: rgba(13,15,18,0.7);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    z-index: 10;
}
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent); border-color: var(--accent-hover); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --section-pad: 70px; }
    .header-content { padding: 0 20px; }
    .main-nav { gap: 20px; }

    .about-intro { grid-template-columns: 1fr; gap: 40px; }
    .about-intro-image { display: none; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item--large { grid-column: span 1; grid-row: span 1; }
    .gallery-item--large .gallery-thumb { min-height: 200px; }

    .devlog-card { grid-template-columns: 1fr; }
    .devlog-img { min-height: 200px; }

    .social-links-grid { grid-template-columns: 1fr; }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .hero { min-height: 75vh; }
}

@media (max-width: 600px) {
    .features-grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .hero-sub { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .main-nav { display: none; }
}
