/* Despre noi: povestea pe scene, exploratorul de amintiri, consola comunității și player-ul de muzică. */

:root {
    --bg-sec: #050505;
    --text-main: #f3f4f6;
    --text-dim: #6b7280;
    --border: rgba(255, 255, 255, 0.04);
    --folder-bg: rgba(255, 255, 255, 0.03);
    --folder-hover: rgba(250, 204, 21, 0.1);
    --reveal-duration: 1.2s;
}

::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body { position: relative; }

main.grid-bg { --grid-alpha: 0.03; padding: 0; }

.wrapper { position: relative; z-index: 10; }

footer {
    border-top-color: rgba(255, 255, 255, 0.05);
    z-index: 100;
}

/* --- Lanterna care urmărește mouse-ul --- */
.cursor-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(circle 450px at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(250, 204, 21, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
}

/* --- Povestea --- */
.scene {
    min-height: 100vh;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 20px;
}

.despre-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 6.5rem;
    letter-spacing: 4px;
    margin-bottom: 5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    line-height: 1;
}

.page-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scene p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.8;
    transition: color 0.5s ease, text-shadow 0.5s ease, transform 0.5s ease;
    cursor: default;
}

.scene:hover p { color: #b0b5be; }

.scene p:hover {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

/* Frazele importante din poveste. */
.scene p.emphasis {
    font-weight: 600;
    font-size: 1.8rem;
    margin-top: 20px;
}

.scene p.quote {
    font-size: 3rem;
    color: var(--text-main);
    font-weight: 800;
    margin: 40px 0;
}

.scene p.finale {
    font-weight: 600;
    font-size: 2rem;
    color: var(--accent);
    margin-top: 20px;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.scene h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 4.5rem;
    color: var(--text-sec);
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.scene:hover h2 { color: var(--text-main); }

.excuse-brand { color: var(--accent); }
.excuse-rest { color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.7); }

.section-intro {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.8;
}

/* --- Exploratorul de amintiri --- */
.explorer-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 60;
}

.explorer-window {
    width: 100%;
    max-width: 1000px;
    height: 75vh;
    min-height: 550px;
    background: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.explorer-topbar {
    height: 45px;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.window-controls { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.address-bar {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 4px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.explorer-body { display: flex; flex: 1; overflow: hidden; }

.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--border);
    padding: 20px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.folder-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-align: left;
}

.folder-btn:hover { background: var(--folder-bg); }

.folder-btn.active {
    background: var(--folder-hover);
    border-color: rgba(250, 204, 21, 0.3);
    color: var(--accent);
}

.folder-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.custom-svg-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(0.9);
    transition: filter 0.2s;
}

.folder-btn.active .custom-svg-icon {
    filter: brightness(0) saturate(100%) invert(84%) sepia(35%) saturate(1210%) hue-rotate(354deg) brightness(101%) contrast(105%);
}

.file-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 30px;
    align-content: start;
}

.file-item {
    font: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.file-icon { width: 50px; height: 50px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.file-name { font-size: 0.85rem; color: #ddd; word-break: break-word; line-height: 1.2; }

.empty-folder {
    color: #666;
    font-family: monospace;
    grid-column: 1 / -1;
    text-align: center;
}

/* --- Fereastra în care se deschide un fișier --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-window {
    width: 90%;
    max-width: 800px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(250, 204, 21, 0.05);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.modal-overlay.active .modal-window { transform: translateY(0); }

.modal-header {
    background: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-sec);
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover { color: var(--danger); }

.modal-body {
    padding: 30px;
    overflow-y: auto;
    font-size: 1.1rem;
    color: #e5e7eb;
    line-height: 1.8;
}

.modal-body a { color: var(--accent); }

.modal-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: block;
    background: #000;
}

.modal-body img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-audio { text-align: center; }
.modal-audio p { margin-bottom: 20px; color: var(--text-sec); }
.modal-audio audio { width: 100%; margin-top: 10px; }

/* --- Consola comunității --- */
.console-section {
    width: 100%;
    max-width: 900px;
    margin: 10vh auto 30px;
    padding: 0 20px;
    position: relative;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.console-hint { text-align: center; color: var(--text-dim); margin-bottom: 10px; }

.console-window {
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 15px rgba(250, 204, 21, 0.05);
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.console-header {
    background: #151515;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    color: var(--text-sec);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-header::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.console-output {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #d1d5db;
    scroll-behavior: smooth;
}

.console-line { line-height: 1.4; word-break: break-word; }
.console-line .time { color: #6b7280; font-size: 0.8rem; margin-right: 8px; }
.console-line .nick { color: var(--accent); font-weight: bold; margin-right: 5px; }
.console-line .msg { color: #f3f4f6; }
.system-msg { color: #4ade80; font-style: italic; }
.error-msg { color: var(--danger); }

.console-input-area {
    display: flex;
    align-items: center;
    background: #050505;
    padding: 15px;
    border-top: 1px solid #333;
    gap: 10px;
    flex-wrap: wrap;
}

.prompt { color: #4ade80; font-weight: bold; font-size: 0.9rem; }

.console-input-area input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

#console-nick {
    width: 120px;
    border-bottom: 1px dashed #555;
    text-align: center;
    color: var(--accent);
    padding-bottom: 3px;
}

#console-nick::placeholder { color: #555; }
#console-nick:focus { border-bottom-color: var(--accent); }
.prompt-separator { color: #666; }
#console-msg { flex: 1; min-width: 200px; padding-bottom: 3px; }
#console-msg::placeholder { color: #444; }

/* --- Semnătura de la final --- */
.made-by-tag {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-sec);
    margin: 30px auto 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 60;
    user-select: none;
}

/* Filtrul colorează SVG-ul negru în galbenul accentului (#facc15). */
.heart-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(84%) sepia(35%) saturate(1210%) hue-rotate(354deg) brightness(101%) contrast(105%);
    animation: heartShine 3.5s infinite ease-in-out;
}

@keyframes heartShine {
    0%, 100% {
        filter: brightness(0) saturate(100%) invert(84%) sepia(35%) saturate(1210%) hue-rotate(354deg) brightness(101%) contrast(105%) drop-shadow(0 0 2px rgba(250, 204, 21, 0.4));
        transform: scale(1);
    }
    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 18px rgba(250, 204, 21, 1));
        transform: scale(1.22);
    }
}

/* --- Player-ul de muzică --- */
.music-widget {
    font: inherit;
    line-height: inherit;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 50px;
    padding: 8px 15px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.music-widget:hover {
    border-color: rgba(250, 204, 21, 0.6);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.2);
}

.vinyl-record { width: 45px; height: 45px; }
.music-widget.playing .vinyl-record { animation: spinRecord 4s linear infinite; }
@keyframes spinRecord { to { transform: rotate(360deg); } }

.music-text { display: flex; flex-direction: column; }
.music-title { font-size: 0.85rem; font-weight: 700; }
.music-status { color: var(--accent); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.music-widget.playing .music-status { color: #4ade80; }

@media (max-width: 900px) {
    .cursor-glow { display: none; }
    .scene p { color: #d1d5db; }
    .scene h2 { color: var(--accent); }
    .scene { padding: 80px 15px; }
    .despre-title { font-size: 4rem; }

    .explorer-section { padding-top: 40px; }
    .explorer-window { height: auto; min-height: 70vh; }
    .explorer-body { flex-direction: column; }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }

    .folder-btn { white-space: nowrap; padding: 8px 12px; }
    .file-area { padding: 20px; grid-template-columns: repeat(3, 1fr); gap: 15px; }

    .music-widget { bottom: 20px; right: 20px; padding: 6px 12px 6px 6px; }
    .vinyl-record { width: 35px; height: 35px; }

    .console-input-area { flex-direction: column; align-items: flex-start; }
    #console-nick { width: 100%; text-align: left; }
    #console-msg { width: 100%; }
    .prompt-separator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .heart-icon,
    .music-widget.playing .vinyl-record { animation: none; }
}
