/* ==========================================================
   BADALUXFISH - Base Premium Esotérica
   Compatível com o novo index.php
   ========================================================== */

:root {
    --gold: #d4af37;
    --gold-light: #f5d779;
    --purple: #7b2ff7;
    --dark: #05020a;
    --dark-soft: #0d0718;
    --text: #ffffff;
    --muted: rgba(255,255,255,0.68);
}

/* Reset básico */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--dark);
    background-image:
        linear-gradient(rgba(5, 2, 10, 0.86), rgba(9, 5, 18, 0.94)),
        url('../images/mystic-bg.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Fundo com profundidade */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at top left, rgba(123, 47, 247, 0.24), transparent 34%),
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 28%),
        radial-gradient(circle at bottom, rgba(52, 16, 33, 0.36), transparent 42%);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Imagens */
img {
    max-width: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Tipografia base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

/* Container principal */
.container {
    width: min(1180px, calc(100% - 36px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

/* Seleção de texto */
::selection {
    background: rgba(212, 175, 55, 0.35);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #07030d;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #7b2ff7);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5d779, #9b61ff);
}

/* Botão oráculo base */
.btn-oracle {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold-light);
    padding: 13px 24px;
    margin: 8px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.86rem;
    letter-spacing: 1px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: 0.35s ease;
}

.btn-oracle:hover {
    background: linear-gradient(135deg, #f7df88, #d4af37);
    color: #100806;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.22);
    border-color: transparent;
}

.btn-oracle::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -40%;
    width: 40%;
    height: 260%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.32),
        transparent
    );
    transform: rotate(25deg);
    transition: 0.65s;
}

.btn-oracle:hover::after {
    left: 125%;
}

/* Cards da leitura */
.reading-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.reading-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), transparent),
        rgba(18, 12, 28, 0.86);
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: 0.4s ease;
    box-shadow: 0 16px 44px rgba(0,0,0,0.32);
}

.reading-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 20px 55px rgba(0,0,0,0.46);
}

.reading-card img {
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0,0,0,0.24);
}

.reading-card h3 {
    color: var(--gold-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.reading-card p {
    color: var(--muted);
    line-height: 1.75;
}

/* Caixas genéricas antigas */
.card-box {
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(123, 47, 247, 0.05)),
        rgba(12, 7, 21, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    padding: 35px;
    border-radius: 24px;
    transition: 0.4s ease;
    box-shadow: 0 18px 55px rgba(0,0,0,0.34);
}

.card-box:hover {
    border-color: rgba(212, 175, 55, 0.48);
    transform: translateY(-5px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.44);
}

/* Proteção visual para imagens de cartas */
.card-img-wrapper {
    position: relative;
}

.card-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 10;
}

/* Melhor toque em celular */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Responsividade */
@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1180px);
        padding: 0;
    }

    .reading-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .reading-card {
        width: 100%;
    }

    .btn-oracle {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 10px auto;
        padding: 14px 20px;
    }

    .card-box {
        padding: 26px 18px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.7;
    }

    .reading-card {
        padding: 20px;
    }

    .reading-card img {
        max-height: 285px;
    }
}