/* ============================================================
   main.css  —  base compartilhada por TODAS as páginas
   reset, body, animações, navbar, social-icons, acessibilidade, 404
   Depende de: variables.css
   ============================================================ */

/* --- 2. RESET & BÁSICO --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] { display: none !important; }

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 3. ANIMAÇÕES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 4. NAVBAR --- */
.navbar {
    width: 100%;
    height: 70px;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left { flex: 1; display: flex; justify-content: flex-start; align-items: center; }
.nav-center { flex: 1; display: flex; justify-content: center; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    position: relative;
    align-items: center;
}

.nav-links li {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s;
    padding: 5px 0;
    z-index: 1;
}

.nav-links li:hover, .nav-links li.active {
    color: var(--text-strong);
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 0;
    z-index: 0;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s;
}
.nav-logo-img:hover { transform: scale(1.1); }

.behance-link { text-decoration: none; color: var(--text-secondary); }
.behance-link i { font-size: 1.5rem; transition: color 0.3s; }
.behance-link:hover, .behance-link:hover i { color: #fff !important; }

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* navbar no mobile */
@media (max-width: 768px) {
    .navbar { padding: 0 1.5rem; }
    .nav-links {
        position: absolute; top: 70px; left: 0; width: 100%; background: var(--surface-color);
        flex-direction: column; align-items: center; padding: 20px 0; gap: 20px; border-bottom: 1px solid var(--border-color);
        display: none; z-index: 99; height: auto;
    }
    .nav-links li { padding: 5px 0; }
    .nav-links.active { display: flex; animation: fadeIn 0.3s; }
    .mobile-menu-icon { display: block; }
    .nav-center { display: none; }
    .nav-indicator { display: none; }
    .nav-links li.active { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); }
}

/* --- SOCIAL ICONS (home e página de música) --- */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* quando o ícone é um link de verdade: <a><i class="fab ..."></i></a> */
.social-icons a { display: flex; width: 50px; height: 50px; color: inherit; text-decoration: none; }

.social-icons i {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.8rem;
    transition: transform 0.2s; cursor: pointer;
}
.social-icons i:hover { transform: translateY(-5px); }

.social-icons .fa-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.social-icons .fa-youtube:hover { color: var(--brand-youtube); }
.social-icons .fa-spotify:hover { color: var(--brand-spotify); }

.tiktok-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    isolation: isolate;
}

.tiktok-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tiktok-cyan { opacity: 0; }

.tiktok-wrapper:hover .tiktok-red {
    color: var(--brand-tiktok-red);
    opacity: 1;
    transform: translate(0, -5px);
    mix-blend-mode: screen;
}

.tiktok-wrapper:hover .tiktok-cyan {
    color: var(--brand-tiktok-cyan);
    opacity: 1;
    transform: translate(-1.5px, -6.5px);
    mix-blend-mode: screen;
}


/* --- 9. PÁGINA 404 --- */
.container-404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
    animation: fadeIn 0.8s ease;
}
.container-404 h1 { font-size: 6rem; color: var(--accent-color); margin-bottom: 10px; text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2); }
.container-404 p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 30px; }
.btn-home-404 {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-home-404:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

/* --- ACESSIBILIDADE --- */
.chip:focus-visible, .thumb:focus-visible, .formato-btn:focus-visible,
.canal-card:focus-visible, .player-fechar:focus-visible,
.social-icons a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
