/* IRON PENDULUM — PHASE 3.1 / V5
   Home V4 preservada; somente alinhamento esquerdo do logotipo compacto ajustado.
   Sem JavaScript, acesso a banco, alteração no Forge ou publicação externa.
*/

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

body {
    /* Camada 1 — caverna iluminada, IMÓVEL, com o logotipo original. */
    background-image: url('asset.php?name=Home-page-Site.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000000;
    font-family: 'Lora', serif;
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    height: 80px;
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Cinzel e gradiente exatos do título da versão antiga aprovada. */
.nav-brand-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    font-weight: bold;
    background-image: linear-gradient(180deg, #ff9869 0%, #ffd2bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 152, 105, 0.2));
}

.home-container {
    flex: 1;
    min-height: 0;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
}

.pendulum-portal {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Camada 2 — caverna escura. MANTIDA como no efeito original. */
.portal-image {
    max-height: 75vh;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: blur(2px) brightness(0.6);
    mix-blend-mode: lighten;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    user-select: none;
}

/* A base permanece fixa; somente a camada 2 ganha 3% de escala. */
.pendulum-portal:hover .portal-image {
    filter: blur(0px) brightness(1.1);
    transform: scale(1.03);
}

/* A aura original é preservada, mesmo sendo um efeito secundário. */
.portal-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: all 0.8s ease;
}

.pendulum-portal:hover .portal-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.main-footer {
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    z-index: 10;
}

.footer-phrase {
    font-family: 'Lora', serif;
    font-style: italic;
    color: #e5c383;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(197, 160, 89, 0.4);
}

.footer-credits {
    color: #666666;
}

/* PC e notebook são nossa prioridade. Ajustes para celular ficam para outra fase. */

/* ==============================================================
   PHASE 3.1 / V3 — BARRA LATERAL: somente identidade e estrutura.
   A coluna cobre as imagens e NÃO recebe os efeitos de hover.
   ============================================================= */
:root {
    --sidebar-width: 185px;
    --sidebar-background: #090908;
    --sidebar-gold-border: rgba(197, 160, 89, 0.22);
    --sidebar-brand-icon-width: 32px;
    --sidebar-brand-icon-height: 64px;
    --sidebar-brand-gap: 8px;
    --sidebar-brand-padding-left: 6px; /* Margem visual discreta; ponta do ícone próxima ao eixo de Discography. */
    --sidebar-top-height: 80px;
    --sidebar-menu-top-gap: 20px;
    --sidebar-side-padding: 18px;
    --sidebar-home-slot-height: 34px;
    --sidebar-home-slot-bottom-gap: 15px;
    --sidebar-items-indent: 29px;
}

.site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    min-height: 100vh;
    z-index: 1100; /* Acima das duas cavernas, do cabeçalho e do rodapé. */
    background: var(--sidebar-background); /* Opaco: o brilho não atravessa o menu. */
    border-right: 1px solid var(--sidebar-gold-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand {
    height: var(--sidebar-top-height);
    min-height: var(--sidebar-top-height);
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Bloco logo + nome começa à esquerda, sem aspecto de cartão centralizado. */
    gap: var(--sidebar-brand-gap);
    padding: 9px 12px 9px var(--sidebar-brand-padding-left);
    user-select: none;
}

.sidebar-brand-icon {
    width: var(--sidebar-brand-icon-width);
    height: var(--sidebar-brand-icon-height);
    object-fit: contain;
    flex: 0 0 auto;
    pointer-events: none;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* As duas palavras começam no mesmo eixo esquerdo. */
    justify-content: center;
    gap: 2px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    white-space: nowrap;
    background: linear-gradient(180deg, #ff9869 0%, #ffd2bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 3px rgba(255, 152, 105, 0.10));
}

.sidebar-brand-text span:first-child { font-size: 14px; }
.sidebar-brand-text span:last-child { font-size: 12px; }

/* MENU VISUAL PHASE 3.1 — geometria idêntica em Home e subpáginas.
   Nenhuma posição depende da presença ou ausência do link Home.
   A apresentação visual não cria destinos que ainda não existem.
*/
.sidebar-navigation {
    padding: var(--sidebar-menu-top-gap) var(--sidebar-side-padding) 20px;
    font-family: 'Cinzel', serif;
}

.sidebar-home-slot {
    height: var(--sidebar-home-slot-height);
    display: flex;
    align-items: center;
    margin-bottom: var(--sidebar-home-slot-bottom-gap);
}

.sidebar-home-link {
    color: #c5a059;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.35px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Na Home, a área continua ocupando espaço. Só o link fica invisível. */
.page-home .sidebar-home-link {
    visibility: hidden;
    pointer-events: none;
}

.sidebar-home-link:hover,
.sidebar-home-link:focus-visible {
    color: #ffe699;
    text-shadow: 0 0 8px rgba(229, 195, 131, 0.6);
}

.sidebar-section-title {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    color: #e5c383;
    letter-spacing: 0.25px;
    margin-bottom: 17px;
    white-space: nowrap;
}

.sidebar-section-items {
    list-style: none;
    margin-left: var(--sidebar-items-indent); /* aproxima o começo dos itens da letra C de Discography */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu-item {
    display: inline-block;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.25px;
    color: rgba(229, 195, 131, 0.75);
    text-decoration: none;
    white-space: nowrap;
}

/* Quando as páginas estiverem prontas, os spans viram links reais.
   O brilho da página ativa será persistente, sem deslocamento lateral. */
a.sidebar-menu-item {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
a.sidebar-menu-item:hover,
a.sidebar-menu-item:focus-visible,
.sidebar-menu-item[aria-current="page"] {
    color: #ffe699;
    text-shadow:
        0 0 4px rgba(197, 160, 89, 0.85),
        0 0 10px rgba(197, 160, 89, 0.55);
}

/* A sidebar permanece opaca, sobre as imagens; não pertence ao alvo do hover. */
