/* style/style.css */

/* VARIABILE CUSTOM SI FONTURI */
:root {
    --bg-color: #0a0a0a;       /* Gri extrem de inchis pentru fundal */
    --card-bg: #141414;        /* Gri putin mai deschis pentru carduri */
    --card-border: #222222;    /* Marginea discreta a cardurilor */
    --accent-color: #f59e0b;   /* Chihlimbar / Amber pentru elementele active */
    --text-main: #f3f4f6;      /* Alb mat pentru textul principal */
    --text-muted: #9ca3af;     /* Gri pentru descrieri */
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

/* STILURI GENERALE (Reset) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
}

body {
    antialiased: true;
    padding-top: 4rem; /* Spatiu pentru meniul fix */
}

/* НАВИГАЦИЯ (Menu) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
}

.nav-container {
    max-w: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo>a {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* ЕКРАН ПРИНЧИПАЛ (Hero) */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.badge {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #fde68a, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-w: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

section {
    min-height: 100vh;
}

.btn-explore {
    background-color: var(--accent-color);
    color: #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.btn-explore:hover {
    background-color: #fbbf24;
    transform: translateY(-1px);
}

/* СЕКЦИУНЯ КРОНОЛОДЖИЕ (Timeline) */
.timeline-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.timeline-container {
    position: relative;
}

/* Linia verticala de fundal (doar pe desktop, peste 768px) */
@media (min-width: 768px) {
    .timeline-container::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        background-color: #1f2937;
        transform: translateX(-50%);
    }
}

/* Un singur rand din timeline */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

@media (min-width: 768px) {
    .timeline-item {
        display: flex;
        justify-content: space-between;
    }
    /* Cardurile impare merg pe stanga, cele pare pe dreapta */
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: auto;
        text-align: right;
    }
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
    }
}

/* Bulina de pe axa */
.timeline-dot {
    position: absolute;
    left: -11px;
    top: 24px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 3px solid #374151;
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* Prima bulina o lasam aprinsa implicit ca punct de pornire */
.timeline-item:first-child .timeline-dot {
    border-color: var(--accent-color);
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.1);
    }
}

/* БЛОКУРИЛЕ/КАРДУРИЛЕ (Cards) */
.timeline-content {
    width: 100%;
    padding-left: 2rem; /* Spatiu pentru bulina pe mobil */
}

@media (min-width: 768px) {
    .timeline-content {
        width: 45%;
        padding-left: 0;
    }
}

.card {
    display: block;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.card:hover .card-tag {
    color: var(--accent-color);
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.3rem 0 0.75rem 0;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: #fff;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* style/style.css */

/* СТИЛУРИ ПЕНТРУ СЕКЦИУНЯ ПЕРСОНАЛИТАЦИ (Personalities Section) */
.personalities-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.personalities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* КАРДУЛ ПЕРСОНАЛИТАТЕ: Формат 4:3 Портрет (w:h) */
.personality-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden; /* Taie imaginea care iese din margini */
    
    /* Trick CSS pentru format fix: inaltimea e 133.33% din latime (format 3:4) */
    display: flex;
    flex-direction: column;
    aspect-ratio: 3 / 4; /* Format modern portret 3:4, similar cu 4:3 intors */
    
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.personality-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.15);
}

/* ЗОНА ИМАДЖИНЕ: 70% дин иналциме */
.personality-image {
    height: 70%;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a; /* Background de siguranta */
    border-bottom: 1px solid var(--card-border);
}

.personality-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Imaginea acopera zona fara a se deforma */
    object-position: top center; /* Focalizam pe fata, care e sus */
    transition: transform 0.5s ease;
}

.personality-card:hover .personality-image img {
    transform: scale(1.05); /* Zoom fin la hover */
}

/* ЗОНА ТЕКСТ: 30% дин иналциме */
.personality-info {
    height: 30%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centram textul pe verticala */
    align-items: center; /* Centram textul pe orizontala */
    padding: 1rem;
    text-align: center;
}

.personality-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.personality-info p {
    font-size: 0.9rem;
    color: var(--accent-color); /* Amber pentru familie */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* СТИЛУРИ ПЕНТРУ СЕКЦИУНЯ БИБЛИОГРАФИЕ (Bibliography Section) */
.bibliography-section {
    min-height: calc(100vh - 4rem); /* Ocupa ecranul complet sub navbar */
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem 1.5rem; /* Padding de sus mai mare pt spatiere */
}

.bibliography-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 12px;
}

.bibliography-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.bibliography-list {
    list-style: none;
}

.bibliography-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d5db;
}

/* Bulina de chihlimbar dinaintea sursei */
.bibliography-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    top: -2px;
}

.author-name {
    font-weight: 600;
    color: #ffffff;
}

.source-title {
    font-style: italic;
    color: var(--accent-color);
}

.source-details {
    color: var(--text-muted);
}

/* ФУТЕР (Footer) */
footer {
    border-top: 1px solid var(--card-border);
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #4b5563;
}