/* /assets/css/immersive.css */

/* --- 1. EFEITO CURSOR FÓTON --- */
@media (pointer: fine) {
    /* Cursor customizado opcional */
}

#photon-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
    transition: width 0.2s, height 0.2s;
    display: none;
}

#photon-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: #00A651;
    border-radius: 50%;
    box-shadow: 0 0 10px #00A651, 0 0 20px #00A651;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    display: none;
}

body.custom-cursor #photon-cursor,
body.custom-cursor #photon-dot {
    display: block;
}

body.hovering #photon-cursor {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.2) 0%, rgba(255,255,255,0) 70%);
}

/* --- 2. GOD RAYS --- */
.god-rays-container {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 10%,
        rgba(255, 255, 255, 0) 20%
    );
    animation: shine 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shine {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-50px) rotate(5deg); }
}

/* --- 3. EFEITO CHUVA --- */
#rain-canvas {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    pointer-events: none; 
    z-index: 0; 
    opacity: 0.4;
}

/* --- 4. MOEDAS DE OURO --- */
.gold-coin {
    position: fixed;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #ffd700 0%,#daa520 100%);
    border-radius: 50%;
    box-shadow: 0 0 5px #ffd700;
    pointer-events: none;
    border: 1px solid #b8860b;
}
.gold-coin::after {
    content: '$';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(184, 134, 11, 0.5);
    font-weight: bold;
    font-family: sans-serif;
    font-size: 12px;
}

/* --- 5. BLUEPRINT --- */
.blueprint-card {
    transition: all 0.5s ease;
    border: 1px dashed rgba(255,255,255,0.1);
    position: relative;
}
.blueprint-active {
    border: 1px solid #00A651;
    background: rgba(0, 166, 81, 0.05);
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.2);
}
.blueprint-active::before, .blueprint-active::after {
    content: ''; position: absolute; background: #00A651;
}
.blueprint-active::before { top: -2px; left: -2px; width: 10px; height: 10px; border-top: 2px solid #00A651; border-left: 2px solid #00A651; background: transparent; }
.blueprint-active::after { bottom: -2px; right: -2px; width: 10px; height: 10px; border-bottom: 2px solid #00A651; border-right: 2px solid #00A651; background: transparent; }

/* --- 6. CARDS ECOSSISTEMA (LUZ SUPERIOR DIREITA) --- */
.sunlight-card {
    position: relative;
    overflow: hidden;
    background-color: white;
    border: 1px solid #f3f4f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* HOVER: Fundo Escuro */
.sunlight-card:hover {
    background-color: #0f172a !important; /* Dark Slate 900 */
    border-color: #334155;
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* HOVER: Textos Brancos */
.sunlight-card:hover h3, 
.sunlight-card:hover p, 
.sunlight-card:hover span,
.sunlight-card:hover i,
.sunlight-card:hover .icon-container i {
    color: white !important;
    -webkit-text-fill-color: white !important;
    transition: color 0.3s ease;
}

/* HOVER: Ícone Translúcido */
.sunlight-card:hover .icon-container {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* HOVER: Luz do Sol (Canto Superior Direito) */
.sunlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%; 
    left: auto;  
    width: 200%;
    height: 200%;
    
    background: linear-gradient(
        225deg, /* Diagonal: Top-Right para Bottom-Left */
        rgba(255, 255, 255, 0.35) 0%, /* Luz forte no canto */
        rgba(255, 255, 255, 0.05) 40%, /* Dissipação */
        transparent 60%
    );
    
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

/* Reposicionando o gradiente radial para ser a "fonte" de luz */
.sunlight-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(
        circle at 100% 0%, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.sunlight-card:hover::before,
.sunlight-card:hover::after {
    opacity: 1;
}

.sunlight-card > * {
    position: relative;
    z-index: 2;
}

/* --- 7. SELETOR DE ANOS (CALCULADORA DE SEGUROS) --- */
.year-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Garante que o texto fique centralizado e legível */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Estado Ativo (Selecionado) - Força visual Azul */
.year-btn.active {
    border-color: #2563eb !important; /* blue-600 */
    background-color: #eff6ff !important; /* blue-50 */
    color: #1d4ed8 !important; /* blue-700 */
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    font-weight: 800;
}

/* Estado Inativo (Hover) */
.year-btn:not(.active):hover {
    border-color: #93c5fd !important; /* blue-300 */
    color: #2563eb !important; /* blue-600 */
    background-color: #f9fafb !important; /* gray-50 */
    transform: translateY(-2px);
}

/* --- 8. SHIELD EFFECT (RISCOS E PROTEÇÃO) --- */
.shield-effect {
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho passando ao passar o mouse */
.shield-effect::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
    z-index: 10;
    pointer-events: none;
}

.shield-effect:hover::before {
    animation: shieldShine 1.5s;
}

@keyframes shieldShine {
    0% { left: -100%; }
    100% { left: 200%; }
}