/*
Theme Name: Liquid Glass Portfolio
Author: Luccas On
Description: Tema autoral para portfólio profissional com design dark mode e elementos liquid glass.
Version: 1.0
Text Domain: liquidglass
*/

:root {
    --bg-color: #0a0a0f;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --accent-color: #00f2fe;
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
}

/* Efeito Dinâmico de Fundo */
body::before, body::after {
    content: '';
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    animation: float 12s infinite alternate ease-in-out;
}

body::before {
    background: #4facfe;
    top: -10%;
    left: -10%;
}

body::after {
    background: #8a2be2;
    bottom: -10%;
    right: -10%;
    animation-delay: -6s;
    animation-direction: alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 5vh) scale(1.05); }
    100% { transform: translate(10vw, -5vh) scale(1.1); }
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* =========================================
   Cabeçalho e Navegação Global
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 0;
    box-sizing: border-box;
}

.liquid-glass-nav {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* =========================================
   Menu & Dropdown System (Liquid Glass)
========================================= */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* CORREÇÃO DO Z-INDEX: Traz o botão que abriu o submenu sempre para a frente */
.main-navigation li {
    position: relative;
    z-index: 1;
}

.main-navigation li:hover,
.main-navigation li.is-open {
    z-index: 9999;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.4rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* Indicador de Dropdown (Ícone) */
.main-navigation .has-dropdown::after {
    content: '▾';
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.main-navigation .is-open > a.has-dropdown::after {
    transform: rotate(180deg);
}

/* Submenu / Dropdown Oculto por Padrão */
.main-navigation ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Exibição do Submenu: Desktop (Hover) ou Clique (.is-open) */
.main-navigation li:hover > ul.sub-menu,
.main-navigation li.is-open > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.main-navigation ul.sub-menu li {
    width: 100%;
}

.main-navigation ul.sub-menu a {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.main-navigation ul.sub-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Rodapé
========================================= */
.site-footer {
    margin-top: auto;
    padding: 2rem 0;
    width: 100%;
}

.liquid-glass-footer {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-container p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

/* Ajustes com a Barra do WordPress */
.admin-bar .site-header {
    top: 32px;
}

/* =========================================
   Responsividade Mobile Global
========================================= */
@media screen and (max-width: 782px) {
    .site-header {
        position: relative;
        top: 0 !important;
        padding: 0.8rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .main-navigation ul {
        gap: 1.2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-navigation a {
        font-size: 0.9rem;
    }
}

/* =========================================
   POP-UP PROMOCIONAL (NOVO VÍDEO)
========================================= */
.promo-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.promo-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.promo-popup-content {
    position: relative;
    max-width: 450px;
    width: 100%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 3rem 2rem;
}

.promo-popup-overlay.active .promo-popup-content {
    transform: translateY(0) scale(1);
}

.close-promo-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-promo-btn:hover { color: #fff; }

.promo-badge {
    display: inline-block;
    background: rgba(255, 0, 127, 0.2);
    color: var(--neon-pink);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 0, 127, 0.5);
}

.promo-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.promo-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Área da Mídia Clicável */
.promo-media-link {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--glass-border);
    background: #000;
}

.promo-media-link:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.3);
}

.promo-media-link img,
.promo-media-link video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9; /* Mantém a proporção retangular de vídeo */
}

.promo-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.promo-media-link:hover .promo-play-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

/* Bloco da Playlist Integrada */
    .playlist-container-full {
        background: rgba(20, 20, 30, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        overflow: hidden;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        margin-bottom: 2rem;
    }

    .playlist-notice-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-wrap: wrap;
        gap: 1rem;
    }

    .notice-info {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .badge-live {
        background: rgba(255, 0, 0, 0.2);
        color: #ff4d4d;
        border: 1px solid rgba(255, 0, 0, 0.4);
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .btn-open-yt {
        color: #00f2fe;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 50px;
        background: rgba(0, 242, 254, 0.08);
        border: 1px solid rgba(0, 242, 254, 0.2);
        transition: background 0.2s ease;
    }

    .btn-open-yt:hover {
        background: rgba(0, 242, 254, 0.2);
        color: #fff;
    }

    .playlist-iframe-wrap {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 widescreen */
        height: 0;
        background: #000;
    }

    .playlist-iframe-wrap iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }