/* ================================================= */
/* ================= FONTS ========================= */
/* ================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');


/* ================================================= */
/* ================= VARIABILE ===================== */
/* ================================================= */

:root {
    --red:            #ff1a1a; 
    --red-bright:     #ff4d4d; 
    --red-deep:       #cc0000;
    --red-glow:       rgba(255, 77, 77, 0.4);
    --red-subtle:     rgba(255, 77, 77, 0.15);

    --bg:             #080808;
    --bg2:            #0d0d0d;
    --bg3:            #111111;

    --text:           #ffffff; 
    --text-muted:     #ebebeb; 
    --text-dim:       #cccccc; 

    --border:         rgba(255, 77, 77, 0.35);
    --border-hover:   rgba(255, 77, 77, 0.9);

    --font-display:   'Cinzel', serif;
    --font-body:      'Cormorant Garamond', serif;

    --transition:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ================================================= */
/* ================= RESET & BODY ================== */
/* ================================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 180px;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

/* Selectie text */
::selection { background: rgba(255, 77, 77, 0.4); color: #fff; }


/* ================================================= */
/* ================= HEADER (CENTRAT) ============== */
/* ================================================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--red-subtle);
    transition: all var(--transition-slow);
}

header.scrolled {
    padding: 20px 20px;
    background: rgba(5, 5, 5, 0.99);
    border-bottom: 1px solid var(--red-bright);
}

header h1 {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 8px;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: #e8e0d5;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color var(--transition);
    opacity: 1;
}

nav a:hover, nav a.active {
    color: var(--red-bright);
    opacity: 1;
    text-shadow: 0 0 10px var(--red-glow);
}


/* ================================================= */
/* ================= FILTRE POVESTI ================ */
/* ================================================= */

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e8e0d5;
    background: transparent;
    border: 1px solid rgba(232, 224, 213, 0.35);
    padding: 12px 28px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    background: var(--red-subtle);
    box-shadow: 0 0 15px var(--red-glow);
}

.filter-btn.active {
    background: var(--red-bright);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 0 20px var(--red-glow);
}


/* ================================================= */
/* ================= LISTA POVESTI ================= */
/* ================================================= */

.stories-list-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 40px 140px;
}

.story-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 40px;
    padding: 44px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    transition: background var(--transition);
}

.story-item h2 {
    font-family: var(--font-display);
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--red-bright) !important;
    text-decoration: none;
    font-weight: 600;
}

.story-link-arrow {
    width: 35px;
    height: 1px;
    background: var(--red-bright);
    position: relative;
}

.story-link-arrow::after {
    content: '';
    position: absolute;
    right: 0; top: -3px;
    width: 7px; height: 7px;
    border-top: 2px solid var(--red-bright);
    border-right: 2px solid var(--red-bright);
    transform: rotate(45deg);
}


/* ================================================= */
/* ================= PAGINA POVESTE ================ */
/* ================================================= */

.story-container, .story-wrapper {
    max-width: 750px;
    margin: 40px auto 100px;
    padding: 0 25px;
}

.title-discreet, .story-wrapper h1 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 20px !important;    /* Dimensiune fixa mica ca in poza 09 */
    letter-spacing: 12px !important; /* Spatiu mare intre litere pentru eleganta */
    color: #ffffff;
    margin-bottom: 8px;            /* Distanta mica pana la subtitlu */
    font-weight: 400;
    text-transform: uppercase;
}

/* Subtitlul - mult mai mic si sub titlu */
.meta-label, .story-subtitle {
    text-align: center;
    font-family: var(--font-display);
    font-size: 9px !important;
    letter-spacing: 6px !important;
    color: var(--red-bright);
    margin-bottom: 60px;           /* Distanta pana la textul povestii */
    text-transform: uppercase;
    opacity: 0.7;
}

.story-text p, .story-wrapper p {
    font-family: var(--font-body);
    font-size: 21px;
    line-height: 1.85;
    color: #f8f8f8;
    margin-bottom: 35px;
    text-align: justify;
}

.dropcap-red {
    float: left;
    font-family: var(--font-display);
    font-size: 70px;
    line-height: 55px;
    padding-right: 15px;
    color: var(--red-bright);
    margin-top: 5px;
    text-shadow: 0 0 10px var(--red-glow);
}


/* ================================================= */
/* ================= OPTIMIZARE MOBIL ============== */
/* ================================================= */

@media (max-width: 768px) {

    /* ─ Body ─ */
    body { padding-top: 130px; }

    /* ─ Header compact ─ */
    header {
        padding: 14px 16px 12px;
    }

    header.scrolled { padding: 10px 16px; }

    header h1 {
        font-size: 17px;
        letter-spacing: 5px;
        margin-bottom: 10px;
    }

    nav {
        gap: 8px 14px;
        justify-content: center;
    }

    nav a {
        font-size: 9px;
        letter-spacing: 1.5px;
        opacity: 1;
        color: #e8e0d5;
    }

    nav a:hover, nav a.active {
        color: var(--red-bright);
        text-shadow: none;
    }

    /* ─ Page hero title ─ */
    .page-title {
        font-size: clamp(34px, 11vw, 60px) !important;
        letter-spacing: 3px !important;
    }

    .page-title-sub {
        font-size: 15px;
        padding: 0 16px;
        color: #aaaaaa;
    }

    .page-hero-side { display: none; }

    /* ─ Filtre ─ */
    .filter-bar {
        gap: 8px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 9px;
        letter-spacing: 2px;
        color: #e8e0d5;
        border-color: rgba(232, 224, 213, 0.35);
    }

    .filter-btn.active {
        background: var(--red-bright);
        color: #000;
        border-color: var(--red-bright);
        font-weight: 700;
    }

    /* ─ Lista povesti ─ */
    .stories-list-wrapper {
        padding: 20px 18px 100px;
    }

    .story-item {
        grid-template-columns: 46px 1fr;
        gap: 0 14px;
        padding: 28px 0;
    }

    .story-item h2 {
        font-size: 15px;
        letter-spacing: 1px;
        color: #ffffff;
        margin-bottom: 10px;
        text-shadow: 0 0 20px rgba(255,255,255,0.15);
    }

    .story-item p {
        font-size: 15px;
        color: #e8e8e8;
        line-height: 1.75;
    }

    .story-num { align-items: flex-end; }

    .story-num-value {
        color: var(--red-bright);
        opacity: 0.9;
        font-size: 10px;
    }

    .story-num-label {
        color: rgba(255,77,77,0.4);
        font-size: 7px;
    }

    /* ─ Pagina poveste ─ */
    .story-container, .story-wrapper {
        padding: 0 16px;
        margin-top: 20px;
    }

    .title-discreet, .story-wrapper h1 {
        font-size: clamp(18px, 5.5vw, 26px);
        letter-spacing: 2px;
        color: #ffffff;
    }

    .meta-label, .story-subtitle {
        color: #b0b0b0;
        margin-bottom: 44px;
        font-size: 9px;
    }

    .story-text p, .story-wrapper p {
        font-size: 18px;
        line-height: 1.9;
        color: #f5f5f5;
        text-align: left;
    }

    .dropcap-red {
        font-size: 52px;
        line-height: 42px;
        padding-right: 10px;
    }

    /* ─ Story link ─ */
    .story-link {
        color: var(--red-bright) !important;
        font-size: 9px;
        letter-spacing: 3px;
    }
}

/* ================================================= */
/* ================= BUTON INAPOI ================= */
/* ================================================= */

a.story-btn,
a.story-btn:link,
a.story-btn:visited {
    display: inline-block !important;
    font-family: 'Cinzel', serif !important;
    font-size: 11px !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #ff4d4d !important;
    text-decoration: none !important;
    border: 1px solid #ff4d4d !important;
    background: transparent !important;
    padding: 15px 40px !important;
    transition: all 0.35s ease !important;
    cursor: pointer !important;
}

a.story-btn:hover {
    background: #ff4d4d !important;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4) !important;
    letter-spacing: 6px !important;
}
/* ================================================= */
/* ================= FOOTER ======================== */
/* ================================================= */

footer {
    text-align: center;
    padding: 40px 0;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(232,224,213,0.55);
    border-top: 1px solid rgba(255,77,77,0.15);
    background: #050505;
}

/* footer override - alb luminos */
footer {
    color: rgba(255,255,255,0.85) !important;
    border-top: 1px solid rgba(255,77,77,0.2) !important;
}
