/* =========================================================
   ASTROLUA — HOROSCOPES
   LuaCheia.org
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --horoscope-purple: #3f2468;
    --horoscope-purple-deep: #28133f;
    --horoscope-purple-soft: #7655a0;
    --horoscope-lilac: #eee7f5;
    --horoscope-lilac-light: #f8f5fb;
    --horoscope-gold: #c49a45;
    --horoscope-gold-soft: #ead8ad;
    --horoscope-ivory: #fffdf8;
    --horoscope-text: #332a3d;
    --horoscope-muted: #756c7e;
    --horoscope-border: rgba(63, 36, 104, 0.13);
}


/* =========================================================
   PAGE
========================================================= */

.astro-horoscopes-page {
    background: var(--horoscope-ivory);
    color: var(--horoscope-text);
    overflow: hidden;
}

.astro-horoscopes-container {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.astro-horoscopes-hero {
    position: relative;
    padding: 140px 0 82px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 18% 22%,
            rgba(196, 154, 69, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 30%,
            rgba(168, 132, 202, 0.22),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #32194f 0%,
            #4b2873 48%,
            #67408a 100%
        );

    color: #fff;
}

.astro-horoscopes-hero::after {
    content: "";
    position: absolute;
    width: 470px;
    height: 470px;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);

    border: 1px solid rgba(234, 216, 173, 0.11);
    border-radius: 50%;

    pointer-events: none;
}

.astro-horoscopes-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.astro-horoscopes-back {
    position: absolute;
    left: 0;
    top: -45px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    text-decoration: none;

    transition: color 0.2s ease;
}

.astro-horoscopes-back:hover {
    color: var(--horoscope-gold-soft);
}

.astro-horoscopes-hero-symbol {
    width: 65px;
    height: 65px;
    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(234, 216, 173, 0.52);
    border-radius: 50%;

    color: var(--horoscope-gold-soft);
    font-size: 1.9rem;

    box-shadow:
        0 0 0 9px rgba(255, 255, 255, 0.025),
        0 0 38px rgba(196, 154, 69, 0.14);
}

.astro-horoscopes-hero .section-eyebrow {
    margin: 0;

    color: var(--horoscope-gold-soft);
    letter-spacing: 0.16em;
}

.astro-horoscopes-hero h1 {
    margin: 9px 0 16px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1.04;
    font-weight: 500;
}

.astro-horoscopes-hero-text {
    max-width: 620px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.82);
    font-size: 1.04rem;
    line-height: 1.75;
}

.astro-horoscopes-free {
    display: inline-block;

    margin-top: 22px;
    padding: 6px 13px;

    border: 1px solid rgba(234, 216, 173, 0.48);
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.06);

    color: var(--horoscope-gold-soft);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.horoscope-star {
    position: absolute;
    z-index: 1;

    color: rgba(234, 216, 173, 0.55);

    pointer-events: none;
}

.horoscope-star-one {
    left: 13%;
    top: 35%;
    font-size: 1.2rem;
}

.horoscope-star-two {
    right: 15%;
    top: 27%;
    font-size: 2rem;
}

.horoscope-star-three {
    right: 24%;
    bottom: 18%;
    font-size: 1rem;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.horoscope-experience {
    padding: 70px 0 60px;
}


/* =========================================================
   SMALL LABEL
========================================================= */

.horoscope-small-label {
    margin: 0 0 12px;

    color: var(--horoscope-purple-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}


/* =========================================================
   PERIOD
========================================================= */

.horoscope-period-section {
    max-width: 760px;
    margin: 0 auto 55px;

    text-align: center;
}

.horoscope-period-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    padding: 5px;

    background: #f3eef7;

    border: 1px solid rgba(63, 36, 104, 0.10);
    border-radius: 30px;
}

.horoscope-period-button {
    padding: 12px 20px;

    background: transparent;
    border: 0;
    border-radius: 25px;

    color: var(--horoscope-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.horoscope-period-button:hover {
    color: var(--horoscope-purple);
}

.horoscope-period-button.is-active {
    background: var(--horoscope-purple);
    color: #fff;

    box-shadow:
        0 5px 15px rgba(63, 36, 104, 0.18);
}


/* =========================================================
   SIGN SECTION
========================================================= */

.horoscope-sign-section {
    max-width: 940px;
    margin: 0 auto 60px;
}

.horoscope-sign-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.horoscope-sign-heading h2 {
    margin: 0;

    color: var(--horoscope-purple-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 500;
}

.horoscope-sign-help {
    margin: 10px 0 25px;

    color: var(--horoscope-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   INFO BUTTON
========================================================= */

.horoscope-info-button {
    flex: 0 0 auto;

    width: 33px;
    height: 33px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    border: 1px solid rgba(63, 36, 104, 0.24);
    border-radius: 50%;

    color: var(--horoscope-purple);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.horoscope-info-button:hover {
    background: var(--horoscope-purple);
    border-color: var(--horoscope-purple);
    color: #fff;

    transform: scale(1.05);
}


/* =========================================================
   ZODIAC GRID
========================================================= */

.horoscope-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.horoscope-zodiac-button {
    min-height: 105px;
    padding: 15px 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--horoscope-lilac-light)
        );

    border: 1px solid var(--horoscope-border);
    border-radius: 18px;

    color: var(--horoscope-purple);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.horoscope-zodiac-button:hover {
    transform: translateY(-2px);

    border-color: rgba(196, 154, 69, 0.45);

    box-shadow:
        0 8px 20px rgba(50, 28, 76, 0.07);
}

.horoscope-zodiac-button.is-active {
    background:
        linear-gradient(
            145deg,
            #4b2873,
            #67408a
        );

    border-color: rgba(196, 154, 69, 0.58);

    color: #fff;

    box-shadow:
        0 9px 24px rgba(63, 36, 104, 0.18);
}

.zodiac-symbol {
    color: var(--horoscope-gold);
    font-size: 1.75rem;
    line-height: 1;
}

.horoscope-zodiac-button.is-active .zodiac-symbol {
    color: var(--horoscope-gold-soft);
}

.zodiac-name {
    font-size: 0.77rem;
    font-weight: 700;
}


/* =========================================================
   RESULT
========================================================= */

.horoscope-result {
    max-width: 940px;
    margin: 0 auto;

    padding: 38px;

    background:
        radial-gradient(
            circle at 95% 5%,
            rgba(196, 154, 69, 0.10),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #faf7fc
        );

    border: 1px solid rgba(196, 154, 69, 0.25);
    border-radius: 27px;

    box-shadow:
        0 16px 45px rgba(50, 28, 76, 0.07);
}


/* =========================================================
   RESULT HEADER
========================================================= */

.horoscope-result-header {
    display: flex;
    align-items: center;
    gap: 20px;

    padding-bottom: 28px;
    margin-bottom: 8px;

    border-bottom: 1px solid var(--horoscope-border);
}

.horoscope-result-zodiac {
    flex: 0 0 auto;

    width: 67px;
    height: 67px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(63, 36, 104, 0.055);

    border: 1px solid rgba(196, 154, 69, 0.34);
    border-radius: 50%;

    color: var(--horoscope-purple);
    font-size: 2rem;
}

.horoscope-result-period {
    margin: 0 0 5px;

    color: var(--horoscope-gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.horoscope-result-heading h2 {
    margin: 0;

    color: var(--horoscope-purple-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
}

.horoscope-result-date {
    margin: 5px 0 0;

    color: var(--horoscope-muted);
    font-size: 0.82rem;
}


/* =========================================================
   LOADING
========================================================= */

.horoscope-loading {
    padding: 50px 20px;
    text-align: center;
}

.horoscope-loading-symbol {
    margin-bottom: 10px;

    color: var(--horoscope-gold);
    font-size: 1.7rem;

    animation: horoscopePulse 1.5s ease-in-out infinite;
}

.horoscope-loading p {
    margin: 0;

    color: var(--horoscope-muted);
    font-size: 0.9rem;
}

@keyframes horoscopePulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }

}


/* =========================================================
   MESSAGE
========================================================= */

.horoscope-message {
    padding: 38px 20px;

    text-align: center;

    color: var(--horoscope-muted);
    line-height: 1.7;
}

.horoscope-message p {
    margin: 0;
}


/* =========================================================
   READING
========================================================= */

.horoscope-result-content {
    padding-top: 10px;
}

.horoscope-reading {
    padding: 25px 0;

    border-bottom: 1px solid var(--horoscope-border);
}

.horoscope-reading:last-child {
    border-bottom: 0;
}

.horoscope-reading-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 9px;
}

.horoscope-reading-title span {
    width: 28px;

    color: var(--horoscope-gold);
    font-size: 1rem;
    text-align: center;
}

.horoscope-reading-title h3 {
    margin: 0;

    color: var(--horoscope-purple);
    font-size: 1rem;
    font-weight: 700;
}

.horoscope-reading p {
    margin: 0;
    padding-left: 38px;

    color: var(--horoscope-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.horoscope-reading-general p {
    color: var(--horoscope-text);
    font-size: 1rem;
}

.horoscope-reading-guidance {
    margin-top: 7px;
    padding: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(238, 231, 245, 0.68),
            rgba(255, 253, 248, 0.92)
        );

    border: 1px solid rgba(196, 154, 69, 0.20);
    border-radius: 18px;
}

.horoscope-reading-guidance p {
    padding-left: 38px;
}


/* =========================================================
   NOTE
========================================================= */

.horoscope-note {
    padding: 0 0 90px;
}

.horoscope-note-inner {
    max-width: 800px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 17px;

    padding: 22px 27px;

    background: rgba(238, 231, 245, 0.48);

    border: 1px solid rgba(63, 36, 104, 0.09);
    border-radius: 20px;
}

.horoscope-note-symbol {
    flex: 0 0 auto;

    color: var(--horoscope-gold);
    font-size: 1.35rem;
}

.horoscope-note p {
    margin: 0;

    color: var(--horoscope-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}


/* =========================================================
   MODAL
========================================================= */

.horoscope-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.horoscope-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.horoscope-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(28, 15, 43, 0.62);
    backdrop-filter: blur(4px);
}

.horoscope-modal-dialog {
    position: relative;
    z-index: 2;

    width: min(570px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow-y: auto;

    padding: 40px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(196, 154, 69, 0.10),
            transparent 30%
        ),
        var(--horoscope-ivory);

    border: 1px solid rgba(196, 154, 69, 0.28);
    border-radius: 27px;

    box-shadow:
        0 30px 80px rgba(25, 12, 39, 0.30);
}

.horoscope-modal-close {
    position: absolute;
    top: 17px;
    right: 18px;

    width: 34px;
    height: 34px;

    background: transparent;
    border: 0;

    color: var(--horoscope-muted);
    font-size: 1.6rem;
    line-height: 1;

    cursor: pointer;
}

.horoscope-modal-symbol {
    width: 48px;
    height: 48px;
    margin-bottom: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(63, 36, 104, 0.055);

    border: 1px solid rgba(196, 154, 69, 0.32);
    border-radius: 50%;

    color: var(--horoscope-purple);
    font-size: 1.3rem;
}

.horoscope-modal-eyebrow {
    margin: 0 0 6px;

    color: var(--horoscope-gold);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.horoscope-modal-dialog > h2 {
    margin: 0 0 25px;

    color: var(--horoscope-purple-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.9rem;
    font-weight: 500;
}

.horoscope-modal-section {
    padding: 17px 0;

    border-top: 1px solid var(--horoscope-border);
}

.horoscope-modal-section h3 {
    margin: 0 0 7px;

    color: var(--horoscope-purple);
    font-size: 0.92rem;
}

.horoscope-modal-section p {
    margin: 0;

    color: var(--horoscope-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.horoscope-modal-button {
    width: 100%;
    margin-top: 16px;
    padding: 13px 20px;

    background: var(--horoscope-purple);

    border: 1px solid var(--horoscope-purple);
    border-radius: 24px;

    color: #fff;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.horoscope-modal-button:hover {
    background: var(--horoscope-purple-deep);
    border-color: var(--horoscope-purple-deep);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .horoscope-zodiac-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .astro-horoscopes-container {
        width: min(
            calc(var(--larghezza-mobile, 100vw) - 32px),
            1100px
        );
    }


    /* HERO */

    .astro-horoscopes-hero {
        padding: 116px 0 65px;
    }

    .astro-horoscopes-back {
        position: static;
        display: inline-block;
        margin-bottom: 27px;
    }

    .astro-horoscopes-hero-symbol {
        width: 57px;
        height: 57px;

        font-size: 1.6rem;
    }

    .astro-horoscopes-hero h1 {
        font-size: 2.45rem;
    }

    .astro-horoscopes-hero-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* EXPERIENCE */

    .horoscope-experience {
        padding: 52px 0 45px;
    }


    /* PERIOD */

    .horoscope-period-section {
        margin-bottom: 45px;
    }

    .horoscope-period-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;

        border-radius: 22px;
    }

    .horoscope-period-button {
        padding: 11px 8px;
    }


    /* SIGN */

    .horoscope-sign-section {
        margin-bottom: 45px;
    }

    .horoscope-sign-heading {
        gap: 15px;
    }

    .horoscope-sign-heading h2 {
        font-size: 1.65rem;
    }

    .horoscope-sign-help {
        margin-bottom: 20px;
    }


    /* ZODIAC */

    .horoscope-zodiac-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .horoscope-zodiac-button {
        min-height: 91px;
        padding: 12px 5px;

        border-radius: 15px;
    }

    .zodiac-symbol {
        font-size: 1.55rem;
    }

    .zodiac-name {
        font-size: 0.7rem;
    }


    /* RESULT */

    .horoscope-result {
        padding: 25px 20px;

        border-radius: 22px;
    }

    .horoscope-result-header {
        gap: 15px;

        padding-bottom: 22px;
    }

    .horoscope-result-zodiac {
        width: 54px;
        height: 54px;

        font-size: 1.6rem;
    }

    .horoscope-result-heading h2 {
        font-size: 1.55rem;
    }

    .horoscope-reading {
        padding: 21px 0;
    }

    .horoscope-reading p {
        padding-left: 0;

        font-size: 0.9rem;
    }

    .horoscope-reading-guidance {
        padding: 20px;
    }

    .horoscope-reading-guidance p {
        padding-left: 0;
    }


    /* NOTE */

    .horoscope-note {
        padding-bottom: 70px;
    }

    .horoscope-note-inner {
        align-items: flex-start;

        padding: 20px;
    }


    /* MODAL */

    .horoscope-modal {
        padding: 15px;
    }

    .horoscope-modal-dialog {
        max-height: calc(100vh - 30px);

        padding: 34px 24px 27px;

        border-radius: 22px;
    }

    .horoscope-modal-dialog > h2 {
        padding-right: 28px;

        font-size: 1.65rem;
    }

}