/* ==========================================================================
   home.css - Versão V5: Estrutura de Landing Page com Grid Inteligente
   ========================================================================== */

:root {
    --primary: #FFC502;       /* Amarelo Ouro Oficial */
    --bg-dark: #121417;       /* Fundo Idêntico ao da Cifra (style.css) */
    --card-bg: #1C1F24;       /* Fundo padrão dos cards */
    --card-bg-hover: #22262C; /* Feedback de hover sutil */
    --panel-bg: #1E2227;      /* Fundo de elementos fixos */
    --text-white: #ffffff;
    --text-muted: #8c8c8c;    /* Cinza das descrições da cifra */
    --border-color: #2a2d34;  /* Borda cirúrgica nativa */
    --icon-bg: rgba(255, 197, 2, 0.06);
}

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

body.portal-responsive-v5 {
    background-color: var(--bg-dark);
    /* 🎨 NOVO DEGRADÊ: Vai de um cinza grafite mais claro no topo até o escuro da cifra na base */
    background-image: linear-gradient(180deg, #1e2228 0%, var(--bg-dark) 400px);
    color: var(--text-white);
    font-family: 'Segoe UI', -apple-system, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ─── NAVBAR FIXA SUPERIOR (Estilo V3) ─── */
.nav-header {
    background-color: #121417; /* Inicia com o tom sólido escuro da cifra */
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between; /* Empurra a logo para a esquerda e o menu para a direita */
    align-items: center; /* Alinha ambos perfeitamente na mesma linha vertical */
}

.logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text-white);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.logo-gold {
    color: var(--primary);
    gap: 10px;
}

/* ─── HERO SECTION FLUIDA (Estilo V3 com foco na Realidade do Palco) ─── */
.hero-section {
    padding: 150px 24px 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Uma coluna fluida */
    gap: 40px;
    align-items: center;
}

.hero-tagline {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-title .highlight, .section-header .highlight {
    color: var(--primary);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 35px;
    max-width: 580px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* BOTÕES CORPORATIVOS MODERNOS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #121417;
}

.btn-primary:hover {
    background-color: #ffd233;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 197, 2, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
    border-color: var(--text-muted);
}

/* LOGO EM MARCA D'ÁGUA GRANDE (DIREITA DO PALCO NO PC) */
.hero-brand-visual {
    display: none; /* Oculto no celular para focar direto nos botões */
    justify-content: center;
    align-items: center;
}

.visual-logo-wrapper {
    width: 280px;
    height: 280px;
    opacity: 0.15;
    filter: drop-shadow(0 0 20px rgba(255, 197, 2, 0.2));
}
.visual-logo-wrapper svg { width: 100%; height: 100%; }

/* ─── SEÇÃO DO GRID DE CARD-MENUS (Estilo V4 Preservado) ─── */
.grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 50px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
}

.section-header {
    margin-bottom: 40px;
    text-align: left;
}

.section-tag {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-top: 5px;
    color: #fff;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr; /* Celular: Lista vertical focada */
    gap: 16px;
    width: 100%;
}

.menu-item {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinhamento elegante à esquerda no PC/Mobile */
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
}

/* Card em Destaque do Portal de Cifras */
.menu-item.principal-cifras {
    border-color: rgba(255, 197, 2, 0.3);
    background: linear-gradient(145deg, var(--panel-bg) 0%, var(--card-bg) 100%);
}

.badge-feature {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: #121417;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.menu-item:active {
    transform: scale(0.97);
    background-color: var(--card-bg-hover);
}

.icon-box {
    width: 52px;
    height: 52px;
    background-color: var(--icon-bg);
    border-radius: 12px;
    display: flex;
    align-items: center; 
    justify-content: center;
    margin-bottom: 16px;
}

.icon-box svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.menu-label {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-desc {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.4;
    font-weight: normal;
}

/* ─── MEDIA QUERIES PARA RESPONSIVIDADE DESKTOP AVANÇADA ─── */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.3fr 1fr; /* Libera espaço para a marca d'água */
        gap: 60px;
    }
    
    .hero-brand-visual {
        display: flex; /* Exibe a marca d'água no Desktop */
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas robustas */
        gap: 24px;
    }

    .menu-item {
        padding: 44px 30px; 
        border-radius: 20px;
    }

    .menu-item:hover {
        transform: translateY(-6px);
        background-color: var(--card-bg-hover);
        border-color: var(--primary);
        box-shadow: 0 16px 32px rgba(0,0,0,0.3);
    }
}

/* ─── MENUS LATERAIS E INFRAESTRUTURA COMPLEMENTAR ─── */
.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px; /* Espaçamento exato entre as barras */
    padding: 8px;
    z-index: 1100;
    flex-shrink: 0;       /* 🚀 IMPEDE O DESKTOP DE ESMAGAR O CONTEINER */
    width: 38px;          /* Trava a largura total do bloco de clique */
    height: 32px;         /* Trava a altura total do bloco de clique */
    box-sizing: border-box;
}

.menu-icon .bar {
    width: 22px;          /* Largura fixa da barrinha */
    height: 3px;          /* Espessura fixa da barrinha */
    background-color: var(--primary);
    border-radius: 2px;
    margin: 0; 
    transition: 0.3s ease;
    display: block;       /* Garante que ela se comporte como bloco sólido */
}

.side-menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background-color: rgba(15, 17, 21, 0.98); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    overflow-x: hidden;
    transition: 0.4s ease;
    padding-top: 80px;
    box-shadow: 5px 0 25px rgba(0,0,0,0.6);
}
.menu-content a {
    padding: 16px 32px;
    text-decoration: none;
    font-size: 16px;
    color: #a0aec0;
    display: block;
    transition: 0.2s;
    font-weight: 600;
}
.menu-content a:hover { color: var(--primary); }
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: var(--primary);
    text-decoration: none;
}
.highlight-menu {
    color: var(--primary) !important;
    border-left: 4px solid var(--primary);
    background: rgba(255, 197, 2, 0.03);
}

.btn-config-discreto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 40px auto;
    border-radius: 50%;
}
.btn-config-discreto svg {
    width: 22px;
    height: 22px;
    fill: #4a5568;
    transition: fill 0.2s;
}
.btn-config-discreto:hover svg { fill: var(--primary); }

.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    width: 100%;
}
.main-footer a {
    color: var(--text-muted);
    text-decoration: underline;
    margin-top: 4px;
    display: inline-block;
}

/* 1. Transformamos o link pai em Flexbox para alinhar o logo e o texto lado a lado */
.logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text-white);
    text-transform: uppercase;
    text-decoration: none;
    
    /* 🎯 O PULO DO GATO */
    display: flex;
    align-items: center;    /* Alinha o meio do logo com o meio do texto verticalmente */
    gap: 10px;              /* Cria um espaçamento elegante entre o logo e o texto */
}

/* 2. Travamos o tamanho da caixinha do SVG para ela não ocupar a linha inteira */
.logo-container {
    width: 28px;            /* Largura perfeita para acompanhar a altura do texto */
    height: 28px;           /* Altura proporcional */
    display: flex;          /* Garante que o SVG interno se ajuste perfeitamente */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;         /* Impede que o texto esmague o logo em telas menores */
}

.logo-container svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   🏠 EXTENSÃO LANDING VITRINE V5 - CIFRAS DE ELITE (COM RESPIRO)
   ========================================================================== */

.vitrine-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px; /* Aumentado o respiro superior e inferior */
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #ffffff;
}

/* Hero Section Interna */
.vitrine-hero-block {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px; /* Mais espaço negativo após o pitch inicial */
}

.vitrine-tagline {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.vitrine-hero-block h2 {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Leve ajuste de tamanho */
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.vitrine-pitch-text {
    color: #a0a5b0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 640px;
    margin: 24px auto 0 auto;
}

/* Banner de Destaque */
.vitrine-banner-destaque {
    background: linear-gradient(135deg, #1C1F24 0%, #16191D 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 28px; /* Mais espaço interno no card */
    border-radius: 8px;
    margin-bottom: 60px; /* Aumentado de 45px para 60px para dar respiro */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Seções de Navegação de Links */
.vitrine-navigation-links {
    margin-bottom: 60px; /* Cria um vácuo limpo antes de entrar na ajuda */
}

.vitrine-secao-titulo {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-top: 40px; /* Espaço para separar blocos de artistas de blocos de playlists */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.vitrine-grid-links {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Mais distância entre as linhas de cards */
}

/* ─── GRID DE EXPLICAÇÃO DOS RECURSOS (AGORA NO FINAL) ─── */
.vitrine-showcase-tools {
    margin-top: 20px;
    margin-bottom: 60px; /* Respiro antes do rodapé de pedidos */
    background-color: #16191D;
    border: 1px solid #22262C;
    border-radius: 12px;
    padding: 32px 24px;
}

.tools-explanation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

/* Container de Rodapé da Vitrine */
.vitrine-footer {
    text-align: center;
    border-top: 1px solid #2a2d34;
    padding-top: 45px; /* Mais espaço para o botão respirar */
    margin-top: 40px;
}