/* =========================================================================
   HORAS PLANETÁRIAS v3.0 - ESTILOS DO MÓDULO DE KABBALAH HERMÉTICA
   Árvore da Vida, 10 Sephiroth, 22 Caminhos e 4 Mundos (Golden Dawn)
   ========================================================================= */

.kabbalah-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 50px 15px;
}

/* Banner Superior do Módulo */
.kabbalah-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(20, 24, 40, 0.85), rgba(10, 12, 22, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.kabbalah-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #FFD700, #AF52DE, #34C759);
}

.kabbalah-header-title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.kabbalah-header-desc {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Banner de Sincronia com a Hora Ativa */
.kabbalah-active-hour-banner {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.kabbalah-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: #E2E4E9;
    flex-wrap: wrap;
}

.kabbalah-banner-icon {
    font-size: 1.3rem;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #FFD700); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 8px #FFD700); }
}

/* Abas de Navegação Interna do Módulo */
.kabbalah-nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kabbalah-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 9px 18px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kabbalah-nav-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #FFF;
    border-color: rgba(212, 175, 55, 0.4);
}

.kabbalah-nav-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(175, 82, 222, 0.25));
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Área da Árvore da Vida Interativa (SVG) */
.tree-of-life-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(16, 20, 36, 0.9), rgba(6, 8, 16, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 30px 10px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.tree-of-life-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.tree-of-life-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

/* Nós Sephiroth no SVG */
.tree-sephirah-node {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tree-sephirah-node:hover {
    transform: scale(1.08);
}

.tree-sephirah-node:focus-visible {
    outline: none;
}

.tree-sephirah-node.active-node circle:first-child {
    animation: sephirahPulse 1.8s infinite ease-in-out;
}

@keyframes sephirahPulse {
    0%, 100% { stroke-width: 3.5; opacity: 0.9; }
    50% { stroke-width: 7; opacity: 1; }
}

/* Linhas e Nós dos Caminhos */
.tree-path-line {
    transition: stroke 0.25s, stroke-width 0.25s;
}

.tree-path-line:hover {
    stroke: rgba(255, 215, 0, 0.9) !important;
    stroke-width: 5 !important;
}

.tree-path-badge {
    transition: transform 0.2s;
}

.tree-path-badge:hover {
    transform: scale(1.25);
}

/* Pilares da Árvore da Vida - Badges */
.sephirah-pillar-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.sephirah-pillar-pill.pillar-left {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #FF453A;
}

.sephirah-pillar-pill.pillar-right {
    background: rgba(0, 122, 255, 0.15);
    border: 1px solid rgba(0, 122, 255, 0.4);
    color: #5AC8FA;
}

.sephirah-pillar-pill.pillar-middle {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #FFD700;
}

/* Grade de Cartões das Sephiroth */
.kabbalah-sephiroth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.sephirah-card {
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(18, 22, 36, 0.75);
}

.sephirah-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.sephirah-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sephirah-card-badge {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.sephirah-card-glyph {
    font-size: 1.15rem;
    color: var(--accent-color);
}

.sephirah-card-hebrew {
    font-size: 1.7rem;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 2px;
}

.sephirah-card-title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #FFD700;
}

.sephirah-card-meaning {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 10px;
}

.sephirah-card-astro, .sephirah-card-archangel {
    font-size: 0.82rem;
    color: #E2E4E9;
    margin-bottom: 4px;
}

.sephirah-card-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Lista dos 22 Caminhos */
.kabbalah-paths-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.kabbalah-path-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.kabbalah-path-row:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateX(4px);
}

.path-letter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    flex-shrink: 0;
}

.path-hebrew {
    font-size: 1.6rem;
    font-weight: bold;
    color: #FFD700;
    line-height: 1;
}

.path-letter-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.path-info-box {
    flex: 1;
}

.path-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.path-number {
    font-family: 'Cinzel', serif;
    color: #FFF;
    font-size: 0.95rem;
}

.path-meaning {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.path-connection {
    font-size: 0.8rem;
    color: #A0A5B5;
    display: flex;
    gap: 8px;
    align-items: center;
}

.path-tarot-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.path-tarot-badge {
    background: rgba(175, 82, 222, 0.2);
    border: 1px solid rgba(175, 82, 222, 0.4);
    color: #D8BFD8;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.path-astro-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #FFD700;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
}

/* Quatro Mundos (Olamot) */
.kabbalah-worlds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.kabbalah-world-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.world-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.world-hebrew {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
}

.world-title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #FFF;
}

.world-trans {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.world-element-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-color);
}

.world-desc {
    font-size: 0.86rem;
    color: #D1D5DB;
    line-height: 1.5;
    margin-bottom: 12px;
}

.world-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
    color: #A0A5B5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

/* Modal Dossiê da Sephirah */
.sephirah-dossier-layout {
    padding: 5px;
}

.sephirah-dossier-header {
    display: flex;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.sephirah-dossier-symbol-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2), rgba(15, 18, 30, 0.9));
    border: 2px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.sephirah-dossier-hebrew {
    font-size: 1.9rem;
    font-weight: bold;
    color: #FFD700;
    line-height: 1;
}

.sephirah-dossier-num {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-family: 'Cinzel', serif;
}

.sephirah-dossier-title {
    margin: 4px 0 2px 0;
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #FFD700;
}

.sephirah-dossier-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.sephirah-dossier-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .kabbalah-header-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .tree-of-life-wrapper {
        padding: 15px 5px;
    }

    .kabbalah-path-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .path-tarot-box {
        align-items: flex-start;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .sephirah-dossier-header {
        flex-direction: column;
        text-align: center;
    }

    .sephirah-dossier-badges {
        justify-content: center;
    }
}
