/* ============================================================
   Western Zodiac Hub Page — /zodiac/western-signs
   Standalone CSS (loaded via extra_css block)
   Mirrors the Chinese hub layout with Western-specific tweaks.
   ============================================================ */


/* ── Zodiac Wheel Hero ─────────────────────────────────────── */

.wzh-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: 100vw;
    overflow: hidden;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.wzh-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--color-bg-surface);
    z-index: 0;
}

.wzh-hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.wzh-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.wzh-hero-glow--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.08) 0%, transparent 70%);
}

.wzh-hero-glow--2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -40px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
}

.wzh-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.wzh-hero-text {
    flex: 1;
    min-width: 0;
}

.wzh-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c39bd3;
    margin-bottom: var(--space-sm);
}

.wzh-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.wzh-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 480px;
}


/* ── Mini birthday picker in hero ── */

.wzh-mini-calc {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    max-width: 320px;
}

.wzh-mini-calc-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.wzh-mini-calc-fields {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.wzh-mini-calc-select {
    flex: 1;
    height: 38px;
    padding: 0 10px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.82rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a96b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}

.wzh-mini-calc-select:focus {
    outline: none;
    border-color: #c39bd3;
}

.wzh-mini-calc-btn {
    width: 100%;
    height: 38px;
    padding: 0 20px;
    background: #c39bd3;
    color: #0d0d1a;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.wzh-mini-calc-btn:hover {
    background: #d4aee0;
    transform: translateY(-1px);
}

.wzh-mini-calc-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Calculator result */
.wzh-calc-result {
    margin-top: 10px;
}

.wzh-calc-result-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(155, 89, 182, 0.08);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 10px;
}

.wzh-calc-emoji {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.wzh-calc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wzh-calc-info strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-text-heading);
}

.wzh-calc-dates {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.wzh-calc-go {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #c39bd3;
    text-decoration: none;
    white-space: nowrap;
}

.wzh-calc-go:hover {
    text-decoration: underline;
}


/* ── Zodiac Wheel ─────────────────────────────────────────── */

.wzh-wheel-wrap {
    flex-shrink: 0;
    position: relative;
    width: 360px;
    height: 360px;
}

.wzh-wheel-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(155, 89, 182, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.wzh-wheel-ring--inner {
    inset: 55px;
    border-color: rgba(155, 89, 182, 0.06);
}

.wzh-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.wzh-wheel-sun {
    font-size: 1.8rem;
    line-height: 1;
    opacity: 0.3;
}

.wzh-wheel-hint {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    opacity: 0.6;
}

.wzh-wheel-sign {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    z-index: 2;
}

.wzh-wheel-sign:hover,
.wzh-wheel-sign.is-active {
    border-color: #c39bd3;
    background: rgba(155, 89, 182, 0.1);
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.15);
}

.wzh-wheel-sign-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.wzh-wheel-sign-name {
    font-family: var(--font-body);
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.wzh-wheel-sign:hover .wzh-wheel-sign-name,
.wzh-wheel-sign.is-active .wzh-wheel-sign-name {
    color: #c39bd3;
}


/* ── Current Sign Banner ───────────────────────────────────── */

.wzh-season-banner {
    max-width: 700px;
    margin: var(--space-lg) auto 0;
    padding: 0 var(--space-lg);
}

.wzh-season-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(155, 89, 182, 0.06);
    border: 1px solid rgba(155, 89, 182, 0.15);
    border-radius: 12px;
    transition: border-color 0.3s var(--ease);
}

.wzh-season-card:hover {
    border-color: rgba(155, 89, 182, 0.25);
}

.wzh-season-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.wzh-season-body {
    flex: 1;
}

.wzh-season-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c39bd3;
}

.wzh-season-dates {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 2px 0 4px;
}

.wzh-season-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.wzh-season-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.wzh-action-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: #c39bd3;
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid rgba(195, 155, 211, 0.25);
    border-radius: 100px;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.wzh-action-link:hover {
    background: rgba(195, 155, 211, 0.1);
    border-color: rgba(195, 155, 211, 0.4);
}


/* ── Sign Detail Cards ─────────────────────────────────────── */

.wzh-details {
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    max-width: 960px;
    margin: 0 auto;
}

.wzh-details .hub-section-title {
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
}

.wzh-element-group {
    margin-bottom: var(--space-lg);
}

.wzh-element-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.12);
}

.wzh-element-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wzh-element-dot--fire  { background: #e8735a; }
.wzh-element-dot--earth { background: #b8a44c; }
.wzh-element-dot--air   { background: #6bb8d4; }
.wzh-element-dot--water { background: #5a8ae8; }

.wzh-element-name {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.wzh-element-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.wzh-sign-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 8px 8px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: all 0.25s var(--ease);
}

.wzh-sign-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wzh-sign-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.wzh-sign-card-emoji {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.wzh-sign-card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0;
    line-height: 1.2;
}

.wzh-sign-card-dates {
    font-size: 0.68rem;
    color: #c39bd3;
    opacity: 0.8;
    margin: 0;
}

.wzh-sign-card-tagline {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Attribute rows inside each card — matches Chinese element variant style */
.wzh-attrs {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wzh-attr-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.15s var(--ease);
}

.wzh-attr-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.wzh-attr-icon {
    font-size: 0.65rem;
    line-height: 1;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.wzh-attr-label {
    font-size: 0.68rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wzh-attr-label--fire  { color: #e8735a; }
.wzh-attr-label--earth { color: #b8a44c; }
.wzh-attr-label--air   { color: #6bb8d4; }
.wzh-attr-label--water { color: #5a8ae8; }
.wzh-attr-label--cardinal { color: #c39bd3; }
.wzh-attr-label--fixed    { color: #c39bd3; }
.wzh-attr-label--mutable  { color: #c39bd3; }

.wzh-attr-value {
    font-size: 0.62rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Traits as plain text with dot separators — matches Chinese style */
.wzh-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 6px;
    margin-top: 6px;
    padding: 0 4px;
}

.wzh-trait {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.wzh-trait + .wzh-trait::before {
    content: "\00b7";
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.15);
}

/* Action links */
.wzh-sign-card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--color-border);
    width: 100%;
}


/* ── Go Deeper Funnel ──────────────────────────────────────── */

.wzh-deeper {
    padding: 0 var(--space-lg) var(--space-xl);
    max-width: 960px;
    margin: 0 auto;
}

.wzh-deeper-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.wzh-deeper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.wzh-deeper-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.wzh-deeper-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.wzh-deeper-icon {
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.wzh-deeper-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.wzh-deeper-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.wzh-deeper-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c39bd3;
}


/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .wzh-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .wzh-hero-text {
        text-align: center;
    }

    .wzh-intro {
        margin: 0 auto;
    }

    .wzh-mini-calc {
        margin: var(--space-lg) auto 0;
    }

    .wzh-wheel-wrap {
        width: 320px;
        height: 320px;
    }

    .wzh-deeper-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .wzh-deeper-card {
        flex-direction: row;
        text-align: left;
        gap: var(--space-md);
    }

    .wzh-deeper-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .wzh-season-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .wzh-hero {
        padding: var(--space-lg) var(--space-md);
    }

    .wzh-element-cards {
        gap: 6px;
    }

    .wzh-sign-card {
        padding: 8px 6px 6px;
    }

    .wzh-sign-card-emoji {
        font-size: 1.4rem;
    }

    .wzh-sign-card-name {
        font-size: 0.85rem;
    }

    .wzh-sign-card-tagline {
        display: none;
    }

    .wzh-traits {
        display: none;
    }

    .wzh-attr-row {
        padding: 2px 4px;
    }

    .wzh-attr-label,
    .wzh-attr-value {
        font-size: 0.6rem;
    }

    .wzh-action-link {
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {
    .wzh-title {
        font-size: 1.8rem;
    }

    .wzh-wheel-wrap {
        width: 280px;
        height: 280px;
    }

    .wzh-wheel-sign {
        width: 50px;
        height: 50px;
    }

    .wzh-wheel-sign-emoji {
        font-size: 1.1rem;
    }

    .wzh-wheel-sign-name {
        font-size: 0.48rem;
    }

    .wzh-element-cards {
        gap: 4px;
    }

    .wzh-sign-card {
        padding: 6px 4px 4px;
    }

    .wzh-sign-card-dates {
        display: none;
    }

    .wzh-attrs {
        display: none;
    }

    .wzh-deeper-card {
        flex-direction: column;
        text-align: center;
    }

    .wzh-deeper-icon {
        margin-bottom: var(--space-sm);
    }
}