/* =================================
   STELLIUM GUIDE PAGE STYLES
   Extracted from stellium_guide.html, tokenized with design-tokens.css variables.
   ================================= */

/* --- Local Variables (scoped to this page) --- */
.stellium-page {
    --stellium-light: #eef2ff; /* Light indigo background */
}

/* --- Layout --- */
.stellium-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Hero Section --- */
.stellium-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--surface-dark) 0%, #312e81 100%);
}

.stellium-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.6;
}

.stellium-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(30, 27, 75, 0.95));
}

.stellium-hero h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stellium-hero .sanskrit-term {
    color: var(--color-secondary-dark);
    font-style: italic;
}

.stellium-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* --- Featured Snippet Box --- */
.featured-snippet-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-indigo-600);
}

.featured-snippet-box h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: var(--surface-dark);
}

.definition-highlight {
    background: rgba(212, 175, 55, 0.15);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
}

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--surface-dark);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
}

.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table tr:nth-child(even) {
    background: rgba(79, 70, 229, 0.04);
}

/* --- Interactive Checker --- */
.interactive-checker {
    background: linear-gradient(135deg, var(--surface-dark) 0%, #312e81 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: white;
}

.interactive-checker h3 {
    color: var(--color-secondary-dark);
    margin-top: 0;
    font-size: 1.5rem;
}

/* --- Stellium Result Cards --- */
.stellium-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.stellium-result.has-stellium {
    border: 2px solid var(--color-secondary-dark);
}

.stellium-result.no-stellium {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* --- Stellium Badge --- */
.stellium-badge {
    display: inline-block;
    background: var(--color-secondary-dark);
    color: var(--surface-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* --- Planet List --- */
.planet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.planet-chip {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* --- Graha Yuddha Alert --- */
.graha-yuddha-alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- House Cards --- */
.house-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.house-card:hover {
    border-color: var(--color-indigo-600);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.house-card h4 {
    color: var(--surface-dark);
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.house-card .focus-area {
    color: var(--color-secondary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.house-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Content Sections --- */
.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    color: var(--surface-dark);
    border-bottom: 2px solid var(--color-secondary-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* --- Info Box --- */
.stellium-page .info-box {
    background: var(--stellium-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.stellium-page .info-box h3,
.stellium-page .info-box h4 {
    margin-top: 0;
    color: var(--surface-dark);
}

/* --- Contextual CTA Box --- */
.contextual-cta-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contextual-cta-box h4 {
    color: var(--surface-dark);
    margin-bottom: 0.75rem;
}

/* --- Action Button Gold --- */
.action-button-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, #c9a227 100%);
    color: var(--surface-dark) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.action-button-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* --- Trust Signals --- */
.stellium-page .trust-signals {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    color: rgba(26, 54, 93, 0.6);
    font-size: 0.85rem;
}

/* --- Table of Contents --- */
.toc-box {
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.toc-box h3 {
    margin-top: 0;
    color: var(--surface-dark);
}

.toc-box ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.toc-box li {
    margin-bottom: 0.5rem;
}

.toc-box a {
    color: var(--color-indigo-600);
    text-decoration: none;
}

.toc-box a:hover {
    text-decoration: underline;
}

/* --- Classical Reference --- */
.classical-reference {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--color-secondary-dark);
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.classical-reference cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--surface-dark);
}

/* --- Mobile Responsive --- */
@media (max-width: 640px) {
    .stellium-hero h1 {
        font-size: 1.5rem;
    }

    .stellium-hero-content {
        padding: 1rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .stellium-page .trust-signals {
        flex-direction: column;
        gap: 0.5rem;
    }
}
