/* =====================================================
   PSY-POWER - Estilo principal
   Paleta: preto profundo + dourado + vermelho-vinho
   ===================================================== */

:root {
    --psy-preto: #0A0A0F;
    --psy-preto-suave: #14141c;
    --psy-preto-card: #1a1a24;
    --psy-borda: #2a2a3a;
    --psy-borda-clara: #3a3a4a;
    --psy-dourado: #D4A857;
    --psy-dourado-claro: #E5BD7A;
    --psy-dourado-escuro: #A8862E;
    --psy-vinho: #8B1538;
    --psy-vinho-claro: #B0254D;
    --psy-texto: #F5F0E8;
    --psy-texto-suave: #C8C0B0;
    --psy-texto-muted: #888;
    
    --fonte-titulo: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --fonte-corpo: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --fonte-display: 'Cormorant Garamond', Georgia, serif;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--psy-preto);
    color: var(--psy-texto);
    font-family: var(--fonte-corpo);
    font-feature-settings: 'cv11', 'ss01';
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background decorativo cósmico */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 168, 87, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 21, 56, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

/* Tipografia */
.fonte-titulo, .fonte-display {
    font-family: var(--fonte-titulo);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.fonte-display {
    font-family: var(--fonte-display);
    font-weight: 500;
}

h1, h2, h3, h4 { font-family: var(--fonte-titulo); }

/* Texto dourado */
.dourado { color: var(--psy-dourado); }
.dourado-claro { color: var(--psy-dourado-claro); }
.vinho { color: var(--psy-vinho-claro); }

/* Logo */
.logo-text {
    font-family: var(--fonte-titulo);
    color: var(--psy-dourado);
    letter-spacing: 4px;
    font-weight: 600;
}

/* Header */
.psy-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.7) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s;
}
.psy-header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--psy-borda);
}

.nav-link {
    color: var(--psy-texto-suave);
    transition: color 0.2s;
    font-size: 14px;
    letter-spacing: 0.03em;
}
.nav-link:hover { color: var(--psy-dourado); }

/* Botões */
.btn-dourado {
    background: var(--psy-dourado);
    color: var(--psy-preto);
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--psy-dourado);
    font-size: 14px;
}
.btn-dourado:hover {
    background: var(--psy-dourado-claro);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 168, 87, 0.3);
}

.btn-dourado-outline {
    background: transparent;
    color: var(--psy-dourado);
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--psy-dourado);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.btn-dourado-outline:hover {
    background: var(--psy-dourado);
    color: var(--psy-preto);
}

.btn-vinho {
    background: var(--psy-vinho);
    color: white;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--psy-vinho);
    font-size: 14px;
}
.btn-vinho:hover {
    background: var(--psy-vinho-claro);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--psy-texto-suave);
    padding: 10px 22px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--psy-borda);
    font-size: 14px;
}
.btn-ghost:hover {
    color: var(--psy-dourado);
    border-color: var(--psy-dourado);
}

/* Hero */
.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}
.hero-slide.ativo {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.6) 40%,
        rgba(10, 10, 15, 0.3) 70%,
        rgba(10, 10, 15, 0.5) 100%
    );
}
.hero-overlay-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(to top, var(--psy-preto), transparent);
}

/* Cards de álbum */
.album-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--psy-preto-card);
    border: 1px solid transparent;
}
.album-card:hover {
    transform: scale(1.04) translateY(-2px);
    border-color: var(--psy-dourado);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(212, 168, 87, 0.2);
    z-index: 10;
}
.album-card .thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.album-card:hover .thumb { transform: scale(1.06); }

.album-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    opacity: 1;
}

.album-card .titulo {
    font-family: var(--fonte-display);
    font-size: 15px;
    color: white;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.album-card .preco {
    color: var(--psy-dourado);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.album-card .badge-yt {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: var(--psy-dourado);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}
.album-card:hover .badge-yt { opacity: 1; }

/* Fileira (carrossel) */
.fileira-wrap {
    position: relative;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}
.fileira-titulo {
    font-family: var(--fonte-display);
    font-size: 28px;
    color: var(--psy-texto);
    margin-bottom: 18px;
    padding: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.fileira-titulo .ver-tudo {
    font-size: 13px;
    color: var(--psy-dourado);
    font-family: var(--fonte-corpo);
    margin-left: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-weight: 400;
}
.fileira-titulo .ver-tudo:hover { opacity: 1; }

.fileira {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.fileira::-webkit-scrollbar { height: 6px; }
.fileira::-webkit-scrollbar-track { background: transparent; }
.fileira::-webkit-scrollbar-thumb { background: var(--psy-borda); border-radius: 3px; }
.fileira::-webkit-scrollbar-thumb:hover { background: var(--psy-dourado); }

.fileira > * {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 280px;
}

/* Setas dos carrosséis */
.fileira-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--psy-borda);
    color: var(--psy-dourado);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    font-size: 20px;
}
@media (min-width: 1024px) {
    .fileira-wrap:hover .fileira-seta { display: flex; }
}
.fileira-seta:hover {
    background: var(--psy-dourado);
    color: var(--psy-preto);
    border-color: var(--psy-dourado);
}
.fileira-seta.esquerda { left: 28px; }
.fileira-seta.direita { right: 28px; }

/* Faixa de assinatura */
.faixa-assinatura {
    position: relative;
    max-width: 1400px;
    margin: 70px auto;
    padding: 60px 40px;
    background:
        linear-gradient(135deg, rgba(139, 21, 56, 0.4) 0%, rgba(10, 10, 15, 0.8) 60%),
        radial-gradient(circle at 30% 50%, rgba(212, 168, 87, 0.15) 0%, transparent 70%);
    border: 1px solid var(--psy-borda);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}
.faixa-assinatura::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(212, 168, 87, 0.4), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(212, 168, 87, 0.6), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(212, 168, 87, 0.3), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(212, 168, 87, 0.5), transparent);
    background-size: 200px 200px;
    opacity: 0.6;
    pointer-events: none;
}

/* Sobre o autor */
.sobre-card {
    background: linear-gradient(135deg, var(--psy-preto-suave) 0%, var(--psy-preto) 100%);
    border: 1px solid var(--psy-borda);
    border-radius: 12px;
    padding: 50px 40px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}
.sobre-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 87, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.logo-mistico {
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 2px solid var(--psy-dourado);
    background: var(--psy-preto);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.logo-mistico::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 1px dashed var(--psy-dourado);
    border-radius: 50%;
    opacity: 0.5;
    margin: -8px;
    animation: girar 60s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* Estatísticas */
.stat-card {
    text-align: center;
    padding: 24px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--psy-borda);
    border-radius: 8px;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: var(--psy-dourado);
    transform: translateY(-2px);
}
.stat-card .num {
    font-family: var(--fonte-display);
    font-size: 38px;
    color: var(--psy-dourado);
    font-weight: 600;
    line-height: 1;
}
.stat-card .label {
    color: var(--psy-texto-suave);
    font-size: 13px;
    margin-top: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Comunidade */
.card-comunidade {
    background: var(--psy-preto-card);
    border: 1px solid var(--psy-borda);
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.card-comunidade:hover {
    border-color: var(--psy-dourado);
    transform: translateY(-3px);
}
.card-comunidade .icone-grande {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--psy-dourado) 0%, var(--psy-dourado-escuro) 100%);
    color: var(--psy-preto);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
}
.card-comunidade.whatsapp .icone-grande {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--psy-borda);
    transition: all 0.2s;
}
.faq-item:last-child { border-bottom: none; }

.faq-pergunta {
    padding: 22px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--psy-texto);
    font-size: 17px;
    font-family: var(--fonte-display);
    transition: color 0.2s;
}
.faq-pergunta:hover { color: var(--psy-dourado); }

.faq-seta {
    color: var(--psy-dourado);
    font-size: 20px;
    transition: transform 0.3s;
}
.faq-item.aberto .faq-seta { transform: rotate(180deg); }

.faq-resposta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--psy-texto-suave);
}
.faq-item.aberto .faq-resposta {
    max-height: 500px;
    padding-bottom: 22px;
}

/* Footer */
.psy-footer {
    background: linear-gradient(to bottom, var(--psy-preto-suave), var(--psy-preto));
    border-top: 1px solid var(--psy-borda);
    padding: 60px 0 30px;
    margin-top: 80px;
}
.footer-link {
    color: var(--psy-texto-muted);
    transition: color 0.2s;
    font-size: 14px;
    display: block;
    padding: 4px 0;
}
.footer-link:hover { color: var(--psy-dourado); }

/* Player do YouTube modal */
.modal-yt {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-yt.aberto { display: flex; }
.modal-yt-container {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    background: var(--psy-preto);
    position: relative;
}
.modal-yt-fechar {
    position: absolute;
    top: -50px; right: 0;
    background: transparent;
    border: 1px solid var(--psy-borda);
    color: var(--psy-dourado);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
}
.modal-yt-fechar:hover {
    background: var(--psy-dourado);
    color: var(--psy-preto);
}

/* Forms */
.psy-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--psy-preto);
    border: 1px solid var(--psy-borda);
    color: var(--psy-texto);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--fonte-corpo);
    transition: border 0.2s;
}
.psy-input:focus {
    outline: none;
    border-color: var(--psy-dourado);
}
.psy-input::placeholder { color: var(--psy-texto-muted); }

label.psy-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--psy-texto-suave);
    font-weight: 500;
}

/* Container */
.container-psy {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animação de entrada */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }

/* Scrollbar geral */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--psy-preto); }
::-webkit-scrollbar-thumb { background: var(--psy-borda); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--psy-dourado); }

/* Mobile */
@media (max-width: 768px) {
    .fileira-wrap { padding: 0 16px; }
    .fileira-titulo { font-size: 22px; padding: 0; }
    .fileira { padding: 8px 0 12px; gap: 10px; }
    .fileira > * { width: 220px; }
    .album-card .titulo { font-size: 13px; }
    .album-card .preco { font-size: 12px; }
    .container-psy { padding: 0 16px; }
    .sobre-card { padding: 30px 20px; margin: 40px 0; }
    .sobre-card .grid { overflow: hidden; }
    .logo-mistico { width: 130px; height: 130px; }
    .stat-card .num { font-size: 28px; }
    .stat-card { padding: 16px 8px; }
    .faixa-assinatura { padding: 40px 20px; margin: 40px 16px; border-radius: 12px; }
    .fileira-seta.esquerda { left: 20px; }
    .fileira-seta.direita { right: 20px; }
}

/* Selo geométrico sagrado SVG inline (usado em vários lugares) */
.simbolo-sagrado {
    width: 32px;
    height: 32px;
    color: var(--psy-dourado);
    opacity: 0.7;
}

/* Divisor decorativo */
.divisor-sagrado {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
}
.divisor-sagrado::before, .divisor-sagrado::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--psy-borda), transparent);
}
.divisor-sagrado svg { color: var(--psy-dourado); flex-shrink: 0; }

/* Loading */
.psy-loading {
    width: 40px;
    height: 40px;
    border: 3px solid var(--psy-borda);
    border-top-color: var(--psy-dourado);
    border-radius: 50%;
    animation: psy-spin 0.8s linear infinite;
}
@keyframes psy-spin { to { transform: rotate(360deg); } }

/* Mobile menu */
.menu-mobile {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--psy-preto-suave);
    border-left: 1px solid var(--psy-dourado);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 60;
    overflow-y: auto;
}
.menu-mobile.aberto { right: 0; }
.menu-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 55;
    display: none;
}
.menu-mobile-overlay.aberto { display: block; }
.menu-mobile a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--psy-borda);
    color: var(--psy-texto-suave);
}
.menu-mobile a:hover { color: var(--psy-dourado); }

/* Aspect ratio fallback */
@supports not (aspect-ratio: 16 / 9) {
    .album-card { padding-bottom: 56.25%; height: 0; }
    .album-card .thumb { position: absolute; top: 0; left: 0; }
}