/* Stiluri comune pentru toate paginile: culori, header, meniu, fundal, footer. */

:root {
    --bg-main: #000000;
    --bg-sec: #0f0f0f;
    --bg-card: rgba(26, 26, 26, 0.6);
    --bg-row: #16181c;
    --bg-hover: #1f2228;
    --accent: #facc15;
    --text-main: #f0f0f0;
    --text-sec: #9ca3af;
    --border: #262626;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #ffffff0d; }
::-webkit-scrollbar-thumb { background: #fff3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ffffff4d; }

.wrapper {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-icon {
    display: block;
    width: 55px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.5));
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

.hamburger-btn svg { width: 32px; height: 32px; display: block; }

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* --- Fundal cu grilă și particule (paginile interioare) --- */
main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

main.grid-bg { padding: 60px 0; }

.grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, var(--grid-alpha, 0.05)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, var(--grid-alpha, 0.05)) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: 0;
}

.grid-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 10%, var(--bg-main) 90%);
    z-index: 1;
    pointer-events: none;
}

.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

main.grid-bg > .wrapper {
    position: relative;
    z-index: 2;
}

.page-title {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

/* --- Mesaj „În curând” (clasament / arhivă goale) --- */
.coming-soon {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 20px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.coming-soon svg {
    width: 80px;
    height: 80px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
}

.coming-soon h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 3rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.coming-soon p {
    color: var(--text-sec);
    font-size: 1.1rem;
    max-width: 450px;
    line-height: 1.5;
}

/* --- Animații la scroll --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(var(--reveal-distance, 40px));
    transition:
        opacity var(--reveal-duration, 0.8s) cubic-bezier(0.25, 1, 0.5, 1),
        transform var(--reveal-duration, 0.8s) cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Footer --- */
footer {
    background-color: #000;
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-sec);
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 3;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

footer a:hover { color: var(--text-main); }

/* --- Mobil și tabletă --- */
@media (max-width: 900px) {
    .hamburger-btn { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 58px;
        right: 20px;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        align-items: flex-end;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        z-index: 1000;
    }

    .main-nav.show { display: flex; }

    .page-title { font-size: 3rem; margin-bottom: 25px; }
    .coming-soon { padding: 40px 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-animate { opacity: 1; transform: none; transition: none; }
}

/* --- Tranziții între pagini --- */
/* Chrome, Edge și Safari: tranziție nativă; header-ul rămâne fix, conținutul face fade și urcă ușor. */
@view-transition { navigation: auto; }

header { view-transition-name: site-header; }

::view-transition-old(root) { animation: page-out 0.22s ease-in both; }
::view-transition-new(root) { animation: page-in 0.38s cubic-bezier(0.25, 1, 0.5, 1) both; }

@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* Browserele fără tranziții native (ex. Firefox) primesc doar apariția paginii. */
@supports not (view-transition-name: none) {
    main { animation: page-in 0.4s cubic-bezier(0.25, 1, 0.5, 1) both; }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) { animation: none; }
    main { animation: none; }
}
