/* Tarot para Solteiros - layout moderno em verde/teal */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Manrope:wght@400;500;700;800&display=swap');

:root {
    --bg-dark: #031412;
    --bg-mid: #06211d;
    --bg-light: #0a302b;
    --panel: rgba(6, 24, 22, 0.78);
    --panel-strong: rgba(5, 21, 19, 0.92);
    --accent: #47f0c3;
    --accent-2: #a9ffd3;
    --accent-warm: #ffd86b;
    --line: rgba(71, 240, 195, 0.28);
    --text: #eefdf9;
    --text-dim: #b8d7cf;
    --nav-height: 35px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    padding: 0;
    padding-top: 60px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(71, 240, 195, 0.16), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(255, 216, 107, 0.10), transparent 24%),
        radial-gradient(circle at 50% 75%, rgba(71, 240, 195, 0.10), transparent 28%),
        linear-gradient(180deg, var(--bg-light) 0%, var(--bg-mid) 40%, var(--bg-dark) 100%);
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle at 20% 15%, rgba(71, 240, 195, 0.12), transparent 0 18%),
        radial-gradient(circle at 80% 35%, rgba(255, 216, 107, 0.10), transparent 0 16%),
        radial-gradient(circle at 55% 80%, rgba(71, 240, 195, 0.08), transparent 0 18%);
    filter: blur(8px);
}

body::after {
    opacity: 0.55;
    background-image:
        radial-gradient(rgba(255,255,255,0.24) 1px, transparent 1px);
    background-size: 38px 38px;
    background-position: 0 0;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 95%);
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.28;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.15); opacity: 0; }
    15% { opacity: 0.35; }
    100% { transform: translateY(-12vh) scale(1); opacity: 0; }
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    margin: 0;
    color: var(--text);
    letter-spacing: 0.8px;
}

p { color: var(--text-dim); line-height: 1.65; margin: 0; }

.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: #006699;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.brand-logo { display: flex; align-items: center; height: 100%; }
.brand-logo img { max-height: 36px; width: auto; display: block; }

.menu-toggle {
    width: 25px;
    height: 18px;
    position: relative;
    cursor: pointer;
    z-index: 100000;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}
.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { top: 16px; }
.menu-toggle.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: auto;
    height: calc(100vh - var(--nav-height));
    background: #081715;
    border-left: 1px solid rgba(71, 240, 195, 0.45);
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 99998;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}
.nav-menu.active { right: 0; }
.nav-menu a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(71, 240, 195, 0.22);
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.page-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 20px 0 36px;
}

.hero-panel,
.deck-panel,
.info-panel,
.faq-panel,
.result-box {
    background: linear-gradient(180deg, rgba(8, 28, 26, 0.92), rgba(4, 17, 15, 0.86));
    border: 1px solid rgba(71, 240, 195, 0.20);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.32), inset 0 0 24px rgba(71,240,195,0.05);
    border-radius: 24px;
    backdrop-filter: blur(12px);
}

.hero-panel {
    padding: 28px;
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(71,240,195,0.12), transparent 45%, rgba(255,216,107,0.08) 100%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-panel h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    max-width: 100%;
    color: #f5fffb;
    text-wrap: balance;
    text-shadow: 0 0 16px rgba(71,240,195,0.22);
}

.hero-copy {
    max-width: 760px;
    margin-top: 16px;
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.feature-pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(71,240,195,0.25);
    color: #e9fffa;
    background: rgba(7, 31, 28, 0.62);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.deck-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.deck-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.deck-note {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.btn-shuffle {
    appearance: none;
    border: 1px solid rgba(169, 255, 211, 0.45);
    background: linear-gradient(135deg, rgba(71,240,195,0.22), rgba(255,216,107,0.10));
    color: #f5fffb;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(71,240,195,0.25), inset 0 0 14px rgba(255,255,255,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-shuffle:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(71,240,195,0.45), inset 0 0 14px rgba(255,255,255,0.06);
    background: linear-gradient(135deg, rgba(71,240,195,0.34), rgba(255,216,107,0.14));
}
.btn-shuffle:active { transform: translateY(0); }

.tarot-grid {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    justify-content: center;
    gap: 8px;
    width: 100%;
    perspective: 1200px;
}

.card-container {
    position: relative;
    width: 60px;
    height: 94px;
    aspect-ratio: 5 / 8;
    cursor: pointer;
    z-index: 1;
    transform: translateY(var(--card-lift, 0px)) rotate(var(--card-tilt, 0deg));
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.45s ease, filter 0.45s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.32);
    overflow: hidden;
}

.card-front {
    background-image: url('../assets/card-back.webp');
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid #86f2ff;
}
.card-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(71,240,195,0.15), transparent 40%, rgba(255,255,255,0.08) 100%);
}

.card-back {
    background-color: #000;
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
    border: 1px solid #86f2ff;
    box-shadow: 0 0 16px rgba(71,240,195,0.45);
}

.card-container:not(.selected):hover { z-index: 50 !important; filter: brightness(1.05); }
.card-container:not(.selected):hover .card-inner { transform: translateY(-10px) scale(1.06); }

.card-container.selected {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    z-index: 999999 !important;
    transform: translate(-50%, -50%) scale(4) !important;
}

.card-container.selected .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 0 70px rgba(71, 240, 195, 0.55);
}

.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.info-panel,
.faq-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.info-card,
.faq-item {
    background: rgba(4, 17, 15, 0.82);
    border: 1px solid rgba(71, 240, 195, 0.18);
    border-radius: 18px;
    padding: 18px;
    box-shadow: inset 0 0 20px rgba(71,240,195,0.04);
}

.info-card h3,
.faq-item h3 {
    color: #f4fffb;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.faq-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.faq-item p { font-size: 0.98rem; }

.ad-slot {
    margin: 18px 0;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(71,240,195,0.18);
    background: rgba(4, 18, 16, 0.55);
    box-shadow: inset 0 0 20px rgba(71,240,195,0.05);
    overflow: hidden;
}

.ad-slot ins.adsbygoogle {
    display: block;
    width: 100%;
}

.page-footer {
    margin-top: 18px;
    padding-bottom: 8px;
    text-align: center;
}

.footer-copy {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.result-box {
    width: 100%;
    max-width: 860px;
    padding: 22px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

.result-topline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.result-box h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    color: #f4fffb;
    margin-bottom: 18px;
    text-shadow: 0 0 16px rgba(71,240,195,0.28);
}

.result-hero {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 22px;
    align-items: start;
    text-align: left;
}

.reveal-frame {
    position: relative;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(71,240,195,0.10), rgba(255,255,255,0.02));
    border: 1px solid rgba(169, 255, 211, 0.35);
    box-shadow: 0 0 26px rgba(71,240,195,0.18), inset 0 0 18px rgba(255,255,255,0.04);
}

.reveal-frame::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(71,240,195,0.25), transparent 60%);
    filter: blur(10px);
    z-index: -1;
}

.card-reveal-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow: 0 0 18px rgba(71,240,195,0.42), 0 0 42px rgba(71,240,195,0.16);
    opacity: 0;
    animation: revealFlip 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.interpretation {
    font-size: 1.04rem;
    color: #dcf6ef;
    text-align: justify;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-again,
.btn-whatsapp {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    padding: 12px 22px;
}

.btn-again {
    color: #f4fffb;
    border: 1px solid rgba(169,255,211,0.45);
    background: linear-gradient(135deg, rgba(71,240,195,0.18), rgba(255,216,107,0.08));
    box-shadow: 0 0 16px rgba(71,240,195,0.18);
}
.btn-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(71,240,195,0.35);
}

.btn-whatsapp {
    color: #05211d;
    background: linear-gradient(135deg, #a9ffd3, #47f0c3);
    box-shadow: 0 0 16px rgba(71,240,195,0.25);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(71,240,195,0.45);
}

.veja-tambem {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 2px;
    position: relative;
    z-index: 2;
}

.veja-tambem-title {
    font-family: 'Cinzel', serif;
    color: #f4fffb;
    text-align: center;
    font-size: 1.45rem;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(71,240,195,0.55);
}

.veja-tambem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.veja-tambem-card {
    display: flex;
    flex-direction: column;
    background: rgba(5, 22, 20, 0.92);
    border: 1px solid rgba(71,240,195,0.22);
    border-radius: 18px;
    padding: 18px 18px 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.veja-tambem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(169,255,211,0.55);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28), 0 0 18px rgba(71,240,195,0.18);
}

.veja-tambem-card h2 {
    font-family: 'Cinzel', serif;
    color: #f4fffb;
    font-size: 1.05rem;
    margin: 0 0 12px;
    text-align: center;
    border-bottom: 1px solid rgba(169,255,211,0.20);
    padding-bottom: 10px;
}

.veja-tambem-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 15px;
}

.veja-tambem-card img {
    display: block;
    width: calc(100% + 36px);
    margin: 0 -18px;
    height: auto;
    object-fit: cover;
}

.loading-text {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: 2px;
    margin-top: 20px;
    text-transform: uppercase;
    animation: blink 2s infinite;
}

.ads-container {
    width: 100%;
    max-width: 728px;
    min-width: 300px;
    margin: 20px auto;
    flex-shrink: 0;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealFlip { 0% { transform: perspective(1000px) rotateY(90deg) scale(0.96); opacity: 0; } 100% { transform: perspective(1000px) rotateY(0deg) scale(1); opacity: 1; } }

@media (min-width: 1200px) {
    .tarot-grid { grid-template-columns: repeat(8, 60px); }
}

@media (max-width: 960px) {
    .tarot-grid { grid-template-columns: repeat(6, 54px); gap: 7px; }
    .info-grid { grid-template-columns: 1fr; }
    .result-hero { grid-template-columns: 1fr; }
    .veja-tambem-grid { grid-template-columns: 1fr; }
}

@media (min-width: 961px) {
    .result-actions {
        flex-wrap: nowrap;
    }
}

@media (max-width: 640px) {
    body { padding-top: 40px; }
    .page-shell { width: min(100% - 16px, 100%); padding-top: 10px; }
    .hero-panel,
    .deck-panel,
    .info-panel,
    .faq-panel,
    .result-box {
        border-radius: 20px;
        padding: 18px 14px;
    }
    .hero-panel { padding: 18px 14px 14px; margin-bottom: 12px; }
    .hero-panel h1 { font-size: 1.55rem; max-width: 100%; }
    .hero-copy { font-size: 0.98rem; }
    .feature-row { display: none; }
    .deck-panel { padding: 14px 12px 12px; margin-bottom: 12px; }
    .deck-head { margin-bottom: 10px; gap: 10px; }
    .deck-note {
        font-size: 0.88rem;
        width: 100%;
        text-align: center;
    }
    .tarot-grid {
        position: relative;
        height: 224px;
        display: block;
        width: 100%;
        overflow: visible;
        padding-top: 2px;
    }
    .card-container {
        min-height: 100px;
    }
    .card-container.selected { transform: translate(-50%, -50%) scale(3.4) !important; }
    .deck-head {
        align-items: center;
        justify-content: center;
    }
    .btn-shuffle { width: 100%; }
    .result-actions {
        justify-content: center;
    }
    .btn-again,
    .btn-whatsapp {
        width: 100%;
        max-width: 340px;
    }
    .veja-tambem {
        text-align: center;
    }
    .veja-tambem-grid { gap: 14px; }
    .veja-tambem-title {
        font-size: 1.2rem;
        display: block;
        width: max-content;
        margin: 0 auto 18px;
        text-align: center;
    }
    .info-panel,
    .faq-panel { padding: 16px 12px; }
    .ad-slot { margin: 14px 0; padding: 10px; }
    .page-footer { margin-top: 14px; }
}
