/* ================= BASE ================= */
body {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: #0f172a;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(99,102,241,0.15), transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(168,85,247,0.15), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

h1, h4 {
    color: #1e293b;
}

.hero,
main,
.card {
    position: relative;
    z-index: 2;
}

/* ================= HERO ================= */
/* ================= HERO ================= */
.hero {
    width: 100%;
    height: 420px;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* efeito glow central */
.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

/* planets overlay */
.hero-inner {
    width: 100%;
    height: 100%;
    background-image: url("../images/img-top-planets.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f8fafc;
    z-index: 2;
}

main.container {
    margin-top: -120px;
    position: relative;
    z-index: 5;
}

.card {
    border: none;
    border-radius: 18px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    box-shadow:
        0 20px 60px rgba(2,6,23,0.15),
        0 8px 20px rgba(2,6,23,0.08);
}

input,
select {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px !important;
    transition: all .25s ease;
}

input:focus,
select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    padding: 14px 32px;
    box-shadow: 0 10px 25px rgba(79,70,229,0.35);
    transition: all .25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79,70,229,0.45);
}

/* ================= TEXTO MAPA ================= */
.birth-text {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #0f172a;
}

.section-title {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #4338ca;
    border-bottom: 1px solid #c7d2fe;
    padding-bottom: 4px;
}

/* Desktop largo */
@media (min-width: 1200px) {
    .hero-inner {
        max-width: 80%;
        height: 260px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}


/* ================= STARFIELD ================= */

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

/* camada 1 */
.stars::before,
.stars::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 300%;
    height: 300%;
    background-image: radial-gradient(2px 2px at 20px 30px, white, transparent),
                      radial-gradient(1px 1px at 40px 70px, #c7d2fe, transparent),
                      radial-gradient(2px 2px at 90px 40px, white, transparent),
                      radial-gradient(1px 1px at 130px 80px, #a5b4fc, transparent),
                      radial-gradient(2px 2px at 160px 20px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: moveStars 120s linear infinite;
    opacity: 0.4;
}

/* camada mais lenta */
.stars::after {
    animation-duration: 200s;
    opacity: 0.25;
}

/* animação */
@keyframes moveStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(1000px);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-inner {
        height: 180px;
        background-size: cover;
    }

    .hero-title {
        font-size: 2.2rem;
        padding: 0 12px;
    }
}

/* ================= FORM ================= */
input,
select {
    border-radius: 10px !important;
}

select {
    background-image: none !important;
}

/* ================= JSON ================= */
.json-box {
    background: #0b1020;
    color: #e5e7eb;
    padding: 16px;
    border-radius: 12px;
    max-height: 500px;
    overflow: auto;
    font-size: 0.9rem;
}

/* ================= MAPA ================= */
.map-wrapper {
    width: 100%;
    max-width: 900px;
}

.map-svg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
}

.aspect-conjunction { color: green; font-weight: bold; }
.aspect-opposition  { color: red; font-weight: bold; }
.aspect-square     { color: rgb(238, 111, 7); font-weight: bold; }
.aspect-sextile    { color: blue; font-weight: bold; }
.aspect-trine      { color: rgb(236, 13, 236); font-weight: bold; }

/* ================= TYPE PLANET ================= */

.planet-section {
    margin-top: 28px;
}

/* container compacto */
.planet-container {

    display: inline-block;

    min-width: 340px;

    background: rgba(248,250,252,0.95);

    border: 1px solid #dbe4ff;

    border-radius: 16px;

    padding: 18px 20px;

    box-shadow:
        0 8px 22px rgba(15,23,42,0.06);

}

/* título */
.planet-title {

    margin: 0 0 14px 0;

    font-size: .82rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: #4338ca;
}

/* radios normais um abaixo do outro */
.planet-options {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.planet-option {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    border-radius: 10px;

    transition: background .18s ease;
}

.planet-option:hover {
    background: rgba(99,102,241,0.06);
}

.planet-option input[type="radio"] {

    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: #4f46e5;
}

.planet-option label {

    margin: 0;

    font-size: .96rem;

    font-weight: 600;

    color: #1e293b;

    cursor: pointer;
}

@media (max-width: 576px) {

    .planet-container {
        width: 100%;
        min-width: auto;
    }

}