/* =====================================================
   Página — GUARDIÕES do Topazioverse (Dark/Light Mode)
===================================================== */

/* -----------------------------------------
   VARIÁVEIS DE TEMA
----------------------------------------- */
:root {
    --bg: #050508;
    --bg-alt: rgba(25, 10, 40, 0.5);
    --text: #e6d8ff;
    --text-soft: #d7c5ff;
    --text-strong: #f5e9ff;

    --card-bg: rgba(25, 10, 40, 0.5);
    --card-border: rgba(150, 60, 255, 0.28);
    --card-shadow: rgba(130, 60, 255, 0.22);

    --hero-shadow-1: #7d3aff;
    --hero-shadow-2: #762bff;

    --btn-bg: rgba(130, 60, 255, 0.85);
    --btn-hover: rgba(170, 90, 255, 0.95);
}

/* Tema Light */
body.light-theme {
    --bg: #f4f4f6;
    --bg-alt: rgba(255, 255, 255, 0.75);
    --text: #1a1a1a;
    --text-soft: #4b3a70;
    --text-strong: #2b1d46;

    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(100, 60, 180, 0.35);
    --card-shadow: rgba(80, 40, 160, 0.15);

    --hero-shadow-1: #9570ff;
    --hero-shadow-2: #5c34ff;

    --btn-bg: rgba(100, 60, 180, 0.85);
    --btn-hover: rgba(140, 90, 220, 0.95);
}

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

body {
    font-family: "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* -----------------------------------------
   PARTÍCULAS
----------------------------------------- */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

/* -----------------------------------------
   HERO — topo da página
----------------------------------------- */
.guardioes-hero {
    height: 55vh;
    background: url('../img/guardioes-bg.jpg') center/cover fixed no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Overlay para legibilidade */
.guardioes-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    transition: 0.4s ease;
    z-index: 1;
}

body.light-theme .guardioes-hero::before {
    background: rgba(255, 255, 255, 0.3);
}

/* Conteúdo do hero */
.overlay-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.4s ease-out forwards;
    opacity: 0;
}

.overlay-content h1 {
    font-size: 2.8rem;
    color: var(--text-strong);
    text-shadow: 0 0 20px var(--hero-shadow-1), 0 0 40px var(--hero-shadow-2);
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    color: var(--text-soft);
    margin-bottom: 20px;
}

/* Botão hero */
.overlay-content button {
    padding: 10px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--btn-bg);
    color: #fff;
    box-shadow: 0 0 12px var(--hero-shadow-1);
    transition: 0.3s ease;
}

.overlay-content button:hover {
    background: var(--btn-hover);
    box-shadow: 0 0 18px var(--hero-shadow-2);
}

/* -----------------------------------------
   SEÇÕES
----------------------------------------- */
.guardioes-block {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
    animation: fadeSlide 1.2s ease-out both;
}

.guardioes-block:not(:first-of-type) {
    border-top: 1px solid rgba(130, 60, 255, 0.25);
    margin-top: 40px;
    padding-top: 60px;
}

.guardioes-block h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-strong);
    text-shadow: 0 0 12px var(--hero-shadow-2);
}

.guardioes-block p {
    line-height: 1.6;
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 900px;
}

/* -----------------------------------------
   GRID — GUARDIÕES
----------------------------------------- */
.guardioes-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.guardiao-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 14px var(--card-shadow);
    transition: 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guardiao-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 28px rgba(170, 90, 255, 0.45);
}

.guardiao-card h3 {
    font-size: 1.5rem;
    color: var(--text-strong);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--hero-shadow-1);
}

.cristal-tipo {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    padding: 4px 10px;
    border-radius: 6px;
}

/* -----------------------------------------
   CORES POR CRISTAL
----------------------------------------- */
.guardiao-card.fogo {
    border-color: #ff4d4d70;
    box-shadow: 0 0 20px #ff4d4d40;
}

.guardiao-card.fogo .cristal-tipo {
    background: #ff4d4d30;
    color: #ffb0b0;
}

.guardiao-card.gelo {
    border-color: #6fd3ff70;
    box-shadow: 0 0 20px #6fd3ff40;
}

.guardiao-card.gelo .cristal-tipo {
    background: #6fd3ff40;
    color: #c3ecff;
}

.guardiao-card.sombra {
    border-color: #5a00ff70;
    box-shadow: 0 0 20px #5a00ff40;
}

.guardiao-card.sombra .cristal-tipo {
    background: #5a00ff40;
    color: #cdb3ff;
}

.guardiao-card.luz {
    border-color: #fff18070;
    box-shadow: 0 0 20px #fff18040;
}

.guardiao-card.luz .cristal-tipo {
    background: #fff18040;
    color: #fff3b1;
}

.guardiao-card.natureza {
    border-color: #4dff9770;
    box-shadow: 0 0 20px #4dff9740;
}

.guardiao-card.natureza .cristal-tipo {
    background: #4dff9740;
    color: #c4ffd9;
}

.guardiao-card.espirito {
    border-color: #c871ff70;
    box-shadow: 0 0 20px #c871ff40;
}

.guardiao-card.espirito .cristal-tipo {
    background: #c871ff40;
    color: #f3d7ff;
}

.guardiao-card.energia {
    border-color: #ff78f070;
    box-shadow: 0 0 20px #ff78f040;
}

.guardiao-card.energia .cristal-tipo {
    background: #ff78f040;
    color: #ffc9fa;
}

/* -----------------------------------------
   ANIMAÇÕES
----------------------------------------- */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------
   RESPONSIVO
----------------------------------------- */
@media (max-width: 768px) {
    .guardioes-hero h1 {
        font-size: 2.2rem;
    }

    .overlay-content p {
        font-size: 1rem;
    }

    .guardioes-block h2 {
        font-size: 1.8rem;
    }

    .guardiao-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .overlay-content h1 {
        font-size: 1.8rem;
    }

    .overlay-content p {
        font-size: 0.95rem;
    }

    .overlay-content button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .guardiao-card {
        padding: 18px;
    }
}