/* ==================================== */
/* 1. Configurare Generală & Teme       */
/* ==================================== */
:root {
    --soft-pink: #fce4ec;
    --soft-blue: #e3f2fd;
    --accent-purple: #9575cd;    /* Movul tău actual pentru accente */
    --deep-purple: #4a3a63;
    --glass: rgba(255, 255, 255, 0.7);
    --text: #333333;
    --card-bg: #ffffff;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
    --soft-pink: #2d1b2d;
    --soft-blue: #1b262d;
    --accent-purple: #b39ddb;
    --deep-purple: #b39ddb;
    --glass: rgba(20, 20, 20, 0.8);
    --text: #e0e0e0;
    --card-bg: #252525;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Quicksand', sans-serif;
    /* Adăugăm mai multe culori pentru un gradient mai bogat */
    background: linear-gradient(135deg, var(--soft-pink), var(--soft-blue), #f3e5f5, #e8f5e9);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    transition: background 0.5s ease;
}
/* Stil pentru textul general (paragrafe, liste) */
p, li, span, blockquote {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500; /* Greutate medie pentru o citire mai ușoară */
    letter-spacing: 0.3px; /* Puțin spațiu între litere pentru un aspect aerisit */
    color: var(--text);
}

/* Stil pentru titlurile mici din interiorul cardurilor (ex: Etimologie, Filosofie) */
h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700; /* Bold pentru a contrasta cu paragraful */
    text-transform: uppercase; /* Majuscule pentru un aspect ordonat */
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--deep-purple);
    opacity: 0.8;
}

/* Stil special pentru citate */
blockquote {
    font-style: italic;
    font-weight: 300; /* Mai subțire pentru a părea o reflecție */
    border-left: 2px solid var(--accent-purple);
    padding-left: 15px;
    margin: 10px 0;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Clasă specială care se va activa când piesa „vibrează” */

.music-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
}
.bar {
    width: 4px;
    height: 10px;
    background: var(--accent-purple);
    animation: barBounce 1s ease-in-out infinite alternate;
}
.bar:nth-child(2) { animation-delay: 0.2s; height: 15px; }
.bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }

@keyframes barBounce {
    from { height: 5px; }
    to { height: 20px; }
}

/* ==================================== */
/* 2. Navigație și Hero                 */
/* ==================================== */
.glass-nav {
    position: fixed;
    top: 20px; width: 90%; left: 5%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    z-index: 1000;
    padding: 10px 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Dancing Script', cursive; font-size: 1.8rem; color: var(--accent-purple); }
/* Stil pentru noul buton de temă */
.theme-switcher-btn {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.theme-switcher-btn:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--card-bg);
}

/* Schimbarea iconiței în funcție de temă */
[data-theme="dark"] .mode-icon::before {
    content: "🌙"; /* Iconiță pentru modul Dark */
}

[data-theme="light"] .mode-icon::before {
    content: "☀️"; /* Iconiță pentru modul Light */
}
.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 40px;
}

.hero h1 { font-size: clamp(2rem, 7vw, 4rem); color: var(--accent-purple); }

/* ==================================== */
/* 3. Layout Responsiv (Punctele 1-6)    */
/* ==================================== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
/* Actualizarea tuturor titlurilor de secțiuni cu fontul cursiv */
h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem; /* Puțin mai mare pentru lizibilitate */
    color: var(--accent-purple);
    margin-bottom: 20px;
}

/* Dacă vrei ca și subtitlurile mici (3. Perspective, etc.) să fie la fel */
.glass-card h2 {
    font-family: 'Dancing Script', cursive;
}

/* Ajustare specifică pentru titlul din Hero dacă dorești să fie la fel */
.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

/* Această clasă asigură aspectul alb/glass peste tot */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.two-columns-section-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Stiluri îmbunătățite pentru secțiunea Perspective */
.perspective-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.perspective-box {
    padding: 25px;
    border-radius: 20px;
    transition: var(--transition);
}

.perspective-box.mine {
    background: rgba(149, 117, 205, 0.1); /* Mov foarte deschis */
    border: 1px solid var(--accent-purple);
}



.perspective-box h3 {
    margin-bottom: 15px;
    color: var(--accent-purple);
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(149, 117, 205, 0.2);
    display: inline-block;
    padding-bottom: 5px;
}

.perspective-box ul {
    list-style: none;
    padding: 0;
}

.perspective-box li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.person-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--deep-purple);
}
.progress-fill {
    background: linear-gradient(90deg, var(--accent-purple), #b39ddb);
    box-shadow: 0 0 10px rgba(149, 117, 205, 0.3);
}

#mood-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
/* Video Responsiv pentru pct 5 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Acesta păstrează formatul video 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Forțează video-ul să se întindă cât cardul alb */
    height: 100%;
    border: none;
}

/* Galeria Flip Cards */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.gallery-caption {
    margin-top: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--deep-purple);
}
.gallery-item { height: 300px; perspective: 1000px; }
.flip-card-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.6s; transform-style: preserve-3d;
}
.gallery-item:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: 25px;
    background: var(--card-bg); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 15px;
}
.flip-card-back { transform: rotateY(180deg); }
.flip-card-back img { width: 100%; height: 80%; object-fit: cover; border-radius: 15px; }

/* Butoane și Taskuri */
.pill-btn {
    background: var(--accent-purple); color: white; border: none;
    padding: 12px 25px; border-radius: 25px; cursor: pointer;
    transition: var(--transition); font-weight: bold;
}

.task-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px;
}

.task-item {
    background: var(--card-bg); padding: 15px; border-radius: 15px; text-align: center;
    transition: var(--transition); cursor: pointer;
}
/* ==================================== */
/* 6. Stiluri Footer                    */
/* ==================================== */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.validation-links a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
}

.validation-links a:hover {
    text-decoration: underline;
    opacity: 1;
}
/* --- Stiluri extrase din elemente inline --- */

.progress-bar-container {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    height: 10px;
    margin: 15px 0;
    overflow: hidden;
}

#task-progress-fill {
    background: var(--accent-purple);
    height: 100%;
    width: 0%; /* Va fi controlat în continuare de JS */
    transition: width 0.5s ease;
}

#task-status {
    font-weight: bold;
    text-align: center;
}

.music-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.music-titles {
    display: flex;
    flex-direction: column;
}

.music-subtitle {
    font-weight: 500;
    opacity: 0.9;
}

.design-justification {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-purple);
    padding-left: 15px;
}

.derivative-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
}

.derivative-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.derivative-list li {
    margin-bottom: 10px;
}

.mood-tracker-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

#mood-slider {
    width: 60%;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

#mood-bar-container {
    width: 100%;
    background: rgba(0,0,0,0.05);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

#mood-value {
    margin-top: 10px;
    font-style: italic;
}

/* Ajustare pentru mobil */
@media (max-width: 480px) {
    .validation-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
/* ==================================== */
/* 4. Adaptive Design (Mobile)          */
/* ==================================== */
@media (max-width: 768px) {
    .glass-nav { top: 0; width: 100%; left: 0; border-radius: 0; }
    .hero { padding-top: 100px; }
    /* Forțăm galeria să aibă 2 coloane pe tablete/telefoane mari */
    .image-gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    /* 1 coloană pe telefoane foarte mici */
    .image-gallery-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}
