/* ===========================
   FILE: horoscope.css
   Horoscope — uses site theme
   =========================== */

/* ---------- HERO ---------- */
.horoscope-hero {
    padding: 80px 0 50px;
    background:
        radial-gradient(900px 400px at 30% -5%, rgba(255, 37, 37, 0.08), transparent 55%),
        radial-gradient(700px 350px at 80% 20%, rgba(255, 37, 37, 0.05), transparent 55%),
        linear-gradient(180deg, var(--surface), var(--bg));
    text-align: center;
}

.horoscope-hero .lead {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.horoscope-hero-content .kicker {
    font-size: .85rem;
    letter-spacing: .08em;
}

.horoscope-hero h1 {
    font-size: 2.8rem;
    margin-top: 10px;
    color: var(--text);
}

.horoscope-date {
    margin-top: 10px;
    color: var(--muted);
    font-weight: 600;
}


/* ---------- GRID: ALL SIGNS ---------- */
.horoscope-grid-section {
    padding-bottom: 80px;
}

.horoscope-signs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1024px) {
    .horoscope-signs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .horoscope-signs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .horoscope-signs-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- CARD ---------- */
.horoscope-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    cursor: pointer;
    text-decoration: none !important;
    color: var(--text);
}

.horoscope-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    text-decoration: none;
}

.horoscope-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
            rgba(255, 37, 37, 0.04) 0%,
            transparent 50%);
    pointer-events: none;
    transition: opacity .3s ease;
    opacity: 0;
}

.horoscope-card:hover .horoscope-card-glow {
    opacity: 1;
}

.horoscope-card-symbol {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--primary);
    filter: drop-shadow(0 2px 6px rgba(255, 37, 37, 0.15));
    transition: transform .3s ease;
}

.horoscope-card:hover .horoscope-card-symbol {
    transform: scale(1.12);
}

.horoscope-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: var(--text);
}

.horoscope-card-dates {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.horoscope-card-preview {
    font-size: .88rem;
    line-height: 1.5;
    color: var(--muted);
    flex-grow: 1;
}

.horoscope-card-cta {
    margin-top: 14px;
    font-size: .82rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: .02em;
    transition: color .2s ease;
}

.horoscope-card:hover .horoscope-card-cta {
    text-decoration: underline;
}


/* ---------- HOMEPAGE SECTION: SCROLLABLE ROW ---------- */
.section-horoscope {
    padding: 50px 0;
    background: var(--surface-2);
}

.horoscope-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.horoscope-section-head h2 {
    font-size: 1.4rem;
}

.horoscope-section-link {
    color: var(--primary);
    font-weight: 800;
    font-size: .92rem;
}

.horoscope-scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 12px;
    margin-top: -8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.horoscope-scroll-row::-webkit-scrollbar {
    height: 6px;
}

.horoscope-scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.horoscope-scroll-row::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* Mini cards for homepage */
.horoscope-mini-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
    padding: 18px 10px 14px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    cursor: pointer;
    text-decoration: none !important;
    color: var(--text);
}

.horoscope-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    text-decoration: none;
}

.horoscope-mini-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 37, 37, 0.08);
    border: 2px solid rgba(255, 37, 37, 0.18);
    font-size: 1.6rem;
    margin-bottom: 10px;
    transition: border-color .2s ease, transform .3s ease, background .2s ease;
}

.horoscope-mini-card:hover .horoscope-mini-symbol {
    border-color: var(--primary);
    background: rgba(255, 37, 37, 0.12);
    transform: scale(1.06);
}

.horoscope-mini-symbol span {
    color: var(--primary);
}

.horoscope-mini-name {
    font-size: .82rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.horoscope-mini-dates {
    font-size: .65rem;
    color: var(--muted);
    font-weight: 600;
}

/* Mini card horoscope preview text for homepage */
.horoscope-mini-preview {
    font-size: .72rem;
    line-height: 1.4;
    color: var(--muted);
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ---------- DETAIL PAGE ---------- */
.horoscope-detail-hero {
    padding: 80px 0 40px;
    background:
        radial-gradient(900px 400px at 30% -5%, rgba(255, 37, 37, 0.08), transparent 55%),
        radial-gradient(600px 300px at 85% 30%, rgba(255, 37, 37, 0.05), transparent 55%),
        linear-gradient(180deg, var(--surface), var(--bg));
}

.horoscope-back-link {
    display: inline-block;
    color: var(--muted);
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 24px;
    transition: color .2s ease;
}

.horoscope-back-link:hover {
    color: var(--primary);
}

.horoscope-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.horoscope-detail-symbol-wrap {
    flex-shrink: 0;
}

.horoscope-detail-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 37, 37, 0.08);
    border: 3px solid rgba(255, 37, 37, 0.2);
    font-size: 3rem;
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(255, 37, 37, 0.1);
}

.horoscope-detail-info h1 {
    font-size: 2.4rem;
    color: var(--text);
}

.horoscope-detail-dates {
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
}

.horoscope-detail-date-label {
    margin-top: 8px;
    font-size: .88rem;
    color: var(--primary);
    font-weight: 800;
}


/* ---------- READING ---------- */
.horoscope-reading-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 860px) {
    .horoscope-reading-grid {
        grid-template-columns: 1fr;
    }
}

.horoscope-reading-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.horoscope-reading-card h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.horoscope-reading-text {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text);
}

.horoscope-no-data {
    color: var(--muted);
    font-style: italic;
}


/* ---------- SIGN NAV ---------- */
.horoscope-sign-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
}

.horoscope-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 700;
    font-size: .92rem;
    color: var(--text);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    text-decoration: none !important;
}

.horoscope-nav-btn:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.horoscope-nav-symbol {
    font-size: 1.2rem;
}


/* ---------- SIDEBAR ---------- */
.horoscope-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.horoscope-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.horoscope-sidebar-signs {
    display: grid;
    gap: 6px;
}

.horoscope-sidebar-sign {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    transition: background .15s ease, color .15s ease;
    text-decoration: none !important;
}

.horoscope-sidebar-sign:hover {
    background: var(--surface-2);
    text-decoration: none;
}

.horoscope-sidebar-sign.active {
    background: rgba(255, 37, 37, 0.08);
    border: 1px solid rgba(255, 37, 37, 0.2);
    color: var(--primary);
}

.horoscope-sidebar-symbol {
    font-size: 1.15rem;
    width: 28px;
    text-align: center;
}


/* ---------- RESPONSIVE DETAIL ---------- */
@media (max-width: 600px) {
    .horoscope-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .horoscope-detail-symbol {
        width: 80px;
        height: 80px;
        font-size: 2.4rem;
    }

    .horoscope-detail-info h1 {
        font-size: 1.8rem;
    }

    .horoscope-hero h1 {
        font-size: 2rem;
    }

    .horoscope-sign-nav {
        flex-direction: column;
    }

    .horoscope-nav-btn {
        justify-content: center;
    }

    .horoscope-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .horoscope-info-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ---------- QUICK STATS ROW ---------- */
.horoscope-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.horoscope-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, border-color .18s ease;
}

.horoscope-stat:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.stat-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}


/* ---------- INFO PILLS ---------- */
.horo-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: rgba(255, 37, 37, 0.08);
    color: var(--primary);
    border: 1px solid rgba(255, 37, 37, 0.15);
}

.horo-pill-compat {
    background: rgba(220, 50, 100, 0.08);
    color: #d0365c;
    border-color: rgba(220, 50, 100, 0.18);
}

html.theme-dark .horo-pill-compat {
    color: #f06292;
    background: rgba(240, 98, 146, 0.1);
    border-color: rgba(240, 98, 146, 0.2);
}

.horoscope-card-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}


/* ---------- INFO CARDS (Personality & Compatibility) ---------- */
.horoscope-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
}

.horoscope-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.horoscope-info-card h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.horoscope-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.horoscope-sw {
    display: grid;
    gap: 6px;
    font-size: .9rem;
    color: var(--muted);
}

.horoscope-sw strong {
    color: var(--text);
}

.compat-label {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 10px;
}


/* ---------- READING CARDS SPACING ---------- */
.horoscope-reading-main .horoscope-reading-card+.horoscope-reading-card {
    margin-top: 18px;
}