/* ============================================================
   Chinese Zodiac Hub Page — /zodiac/chinese
   Standalone CSS (loaded via extra_css block)
   ============================================================ */


/* ── Zodiac Wheel Hero ─────────────────────────────────────── */

.czh-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);
}

.czh-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--color-bg-surface);
    z-index: 0;
}

.czh-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;
}

.czh-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.czh-hero-glow--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
}

.czh-hero-glow--2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -40px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.06) 0%, transparent 70%);
}

.czh-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.czh-hero-text {
    flex: 1;
    min-width: 0;
}

.czh-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.czh-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;
}

.czh-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 480px;
}


/* ── Mini calculator in hero ── */

.czh-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;
}

.czh-mini-calc-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.czh-mini-calc-fields {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.czh-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;
}

.czh-mini-calc-select--sm {
    flex: 0.7;
    padding: 0 6px;
    font-size: 0.78rem;
}

.czh-mini-calc-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.czh-mini-calc-btn {
    width: 100%;
    height: 38px;
    padding: 0 20px;
    background: var(--color-accent);
    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);
}

.czh-mini-calc-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.czh-mini-calc-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Calculator result card */
.czh-calc-result {
    margin-top: 10px;
}

.czh-calc-result-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 10px;
}

.czh-calc-emoji {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.czh-calc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.czh-calc-info strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-text-heading);
}

.czh-calc-element {
    font-size: 0.75rem;
    font-weight: 600;
}

.czh-calc-go {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
}

.czh-calc-go:hover {
    text-decoration: underline;
}


/* ── Zodiac Wheel ─────────────────────────────────────────── */

.czh-wheel-wrap {
    flex-shrink: 0;
    position: relative;
    width: 580px;
    height: 580px;
}

.czh-wheel-ring {
    position: absolute;
    inset: 4px;  /* ring sits right at the outer edge of the badges */
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.czh-wheel-ring--inner {
    /* Hidden — was creating visual clutter in the middle */
    display: none;
}

.czh-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.czh-wheel-yin-yang {
    font-size: 2.6rem;
    line-height: 1;
    opacity: 0.3;
}

.czh-wheel-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    opacity: 0.6;
}

.czh-wheel-animal {
    position: absolute;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.25);
    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;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.czh-wheel-animal:hover,
.czh-wheel-animal.is-active {
    border-color: var(--color-accent);
    background: rgba(201, 168, 76, 0.1);
    transform: scale(1.04);
    box-shadow: 0 0 24px rgba(201, 168, 76, 0.25);
    z-index: 3;
}

.czh-wheel-animal-icon {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.czh-wheel-animal-name {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    background: rgba(13, 13, 26, 0.92);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.czh-wheel-animal:hover .czh-wheel-animal-name,
.czh-wheel-animal:focus-visible .czh-wheel-animal-name,
.czh-wheel-animal.is-active .czh-wheel-animal-name {
    opacity: 1;
}


/* ── Year Banner ───────────────────────────────────────────── */

.czh-year-banner {
    max-width: 700px;
    margin: var(--space-lg) auto 0;
    padding: 0 var(--space-lg);
}

.czh-year-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.czh-year-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
}

.czh-year-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.czh-year-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.czh-year-body {
    flex: 1;
}

.czh-year-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.czh-year-dates {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 2px 0 4px;
}

.czh-year-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.czh-year-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}


/* ── Animal Detail Cards ───────────────────────────────────── */

.czh-details {
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    max-width: 960px;
    margin: 0 auto;
}

.czh-details .hub-section-title {
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
}

.czh-trine-group {
    margin-bottom: var(--space-lg);
}

.czh-trine-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.czh-trine-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.czh-trine-dot--action    { background: #e8735a; }
.czh-trine-dot--patience  { background: #5ab88a; }
.czh-trine-dot--courage   { background: #5a9de8; }
.czh-trine-dot--harmony   { background: #d478a8; }

.czh-trine-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);
}

.czh-trine-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.czh-animal-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;
    text-decoration: none;
    transition: all 0.25s var(--ease);
    scroll-margin-top: 100px;
}

.czh-animal-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);
}

.czh-animal-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.czh-animal-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.czh-animal-card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 2px 0 0;
    line-height: 1.2;
}

.czh-animal-card-tagline {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0;
    line-height: 1.3;
}

/* Element variant rows inside each card */
.czh-variants {
    width: 100%;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.czh-variant-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s var(--ease);
    min-height: 22px;
    position: relative;
}

.czh-variant-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.czh-variant-icon {
    font-size: 0.65rem;
    line-height: 1;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.czh-variant-name {
    font-size: 0.68rem;
    font-weight: 600;
    flex-shrink: 0;
}

.czh-variant-years {
    font-size: 0.62rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "View" CTA appears on hover next to years */
.czh-variant-cta {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-left: auto;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s var(--ease);
}

.czh-variant-row:hover .czh-variant-cta {
    opacity: 1;
}

.czh-animal-card-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 2px;
}

/* Main clickable area of the card */
.czh-animal-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

/* Action links row at bottom of card — simple text links */
.czh-animal-card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.czh-action-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.15s var(--ease);
    white-space: nowrap;
}

.czh-action-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}


/* ── Go Deeper Funnel ──────────────────────────────────────── */

.czh-deeper {
    padding: 0 var(--space-lg) var(--space-2xl);
    max-width: 960px;
    margin: 0 auto;
}

.czh-deeper-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.czh-deeper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.czh-deeper-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.czh-deeper-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.czh-deeper-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.czh-deeper-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
}

.czh-deeper-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.czh-deeper-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
}


/* ── How It Works (reuse existing hub-context styles) ──────── */
/* These are already in main.css so we just use the existing classes */


/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .czh-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .czh-hero-text {
        text-align: center;
    }

    .czh-intro {
        margin: 0 auto;
    }

    .czh-mini-calc {
        margin: var(--space-lg) auto 0;
    }

    .czh-wheel-wrap {
        width: 460px;
        height: 460px;
    }

    .czh-deeper-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .czh-deeper-card {
        flex-direction: row;
        text-align: left;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .czh-deeper-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .czh-year-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .czh-hero {
        padding: var(--space-lg) var(--space-md);
    }

    .czh-trine-cards {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        /* Hide scrollbar but keep function */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .czh-trine-cards::-webkit-scrollbar {
        display: none;
    }

    .czh-animal-card {
        flex: 0 0 72%;
        max-width: 280px;
        min-width: 200px;
        scroll-snap-align: start;
        padding: 10px 10px 8px;
    }

    .czh-animal-card-icon {
        width: 36px;
        height: 36px;
    }

    .czh-animal-card-name {
        font-size: 0.85rem;
    }

    .czh-animal-card-tagline {
        font-size: 0.68rem;
    }

    .czh-variant-years {
        display: none;
    }

    .czh-variant-row {
        padding: 4px 8px;
        min-height: 28px;
    }

    .czh-variant-cta {
        opacity: 1;
        font-size: 0.58rem;
    }

    .czh-action-link {
        font-size: 0.68rem;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .czh-title {
        font-size: 1.8rem;
    }

    .czh-wheel-wrap {
        width: 340px;
        height: 340px;
    }

    .czh-wheel-animal {
        width: 70px;
        height: 70px;
    }

    .czh-wheel-animal-icon {
        width: 64px;
        height: 64px;
    }

    .czh-wheel-animal-name {
        font-size: 0.62rem;
        padding: 2px 8px;
    }

    .czh-animal-card {
        flex: 0 0 78%;
        min-width: 180px;
        padding: 8px 8px 6px;
    }

    .czh-animal-card-icon {
        width: 32px;
        height: 32px;
    }

    .czh-animal-card-name {
        font-size: 0.78rem;
    }

    .czh-animal-card-tagline {
        display: none;
    }

    .czh-variant-name {
        font-size: 0.6rem;
    }

    .czh-variant-icon {
        font-size: 0.55rem;
    }

    .czh-deeper-card {
        flex-direction: column;
        text-align: center;
    }

    .czh-deeper-icon {
        margin-bottom: var(--space-sm);
    }
}