/* ═══════════════════════════════════════════════════
   Horoscope Plugin — Light Theme
   ═══════════════════════════════════════════════════ */

:root {
    --horo-bg:          #f5f3ef;
    --horo-white:       #ffffff;
    --horo-border:      #e2ddd6;
    --horo-accent:      #6d4c9e;
    --horo-accent-lt:   #ede8f7;
    --horo-gold:        #b5860a;
    --horo-gold-lt:     #fdf6e3;
    --horo-text:        #2c2438;
    --horo-muted:       #7a6e85;
    --horo-past-bg:     #f0edf7;
    --horo-future-bg:   #fdf6e3;
    --horo-radius:      12px;
    --horo-font:        Georgia, 'Times New Roman', serif;
    --horo-sans:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --horo-shadow:      0 2px 16px rgba(109,76,158,0.10);
}

/* ── Wrapper ── */
.horo-wrapper {
    font-family: var(--horo-font);
    color: var(--horo-text);
    max-width: 860px;
    margin: 0 auto;
    padding: 16px;
    background: var(--horo-bg);
    border-radius: var(--horo-radius);
}

/* ── Card ── */
.horo-form-card,
.horo-results {
    background: var(--horo-white);
    border: 1px solid var(--horo-border);
    border-radius: var(--horo-radius);
    box-shadow: var(--horo-shadow);
    overflow: hidden;
}

/* ── Header ── */
.horo-form-header,
.horo-results-header {
    background: linear-gradient(135deg, #f0edf7 0%, #ede8f7 100%);
    border-bottom: 1px solid var(--horo-border);
    padding: 28px 32px 22px;
    text-align: center;
}

.horo-zodiac-banner {
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--horo-accent);
    opacity: 0.5;
    margin-bottom: 12px;
}

.horo-title,
.horo-results-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--horo-accent);
    margin: 0 0 6px;
}

.horo-subtitle {
    font-family: var(--horo-sans);
    font-size: 0.9rem;
    color: var(--horo-muted);
    margin: 0;
}

/* ── Form ── */
#horo-form {
    padding: 26px 30px;
}

.horo-field-row { margin-bottom: 16px; }

.horo-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.horo-field label {
    display: block;
    font-family: var(--horo-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--horo-muted);
    margin-bottom: 5px;
}

.horo-field input {
    width: 100%;
    background: #faf9f7;
    border: 1px solid var(--horo-border);
    border-radius: 8px;
    color: var(--horo-text);
    padding: 10px 13px;
    font-size: 0.97rem;
    font-family: var(--horo-sans);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.horo-field input:focus {
    outline: none;
    border-color: var(--horo-accent);
    box-shadow: 0 0 0 3px rgba(109,76,158,0.12);
    background: #fff;
}

.horo-field-hint {
    display: block;
    font-family: var(--horo-sans);
    font-size: 0.75rem;
    color: var(--horo-muted);
    margin-top: 4px;
}

/* ── Error ── */
.horo-error {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--horo-sans);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

/* ── Button ── */
.horo-btn {
    width: 100%;
    background: var(--horo-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 1rem;
    font-family: var(--horo-font);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.1s;
}

.horo-btn:hover:not(:disabled) {
    background: #5a3d84;
    transform: translateY(-1px);
}

.horo-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Spinner */
.horo-spinner {
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: horo-spin 0.75s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes horo-spin { to { transform: rotate(360deg); } }

/* ── Disclaimer ── */
.horo-disclaimer {
    font-family: var(--horo-sans);
    font-size: 0.74rem;
    color: #bbb;
    text-align: center;
    padding: 0 28px 18px;
    margin: 0;
    line-height: 1.5;
}

/* ═══ RESULTS ═══════════════════════════════════════ */

/* Summary strip (Sun / Moon / Rising) */
.horo-summary-strip {
    background: var(--horo-accent-lt);
    border-bottom: 1px solid var(--horo-border);
    padding: 16px 28px;
    display: flex;
    justify-content: center;
}

.horo-summary-triad {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.horo-triad-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--horo-border);
    border-radius: 20px;
    padding: 6px 14px;
}

.tp-sym { font-size: 1.1rem; }
.tp-lbl {
    font-family: var(--horo-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--horo-muted);
    letter-spacing: 0.5px;
}
.tp-val {
    font-size: 0.88rem;
    color: var(--horo-accent);
    font-weight: 600;
}
.horo-triad-sep { font-size: 1.1rem; color: var(--horo-border); }

/* ── Language Tabs ── */
.horo-lang-tabs {
    display: flex;
    border-bottom: 2px solid var(--horo-border);
    background: #faf9f7;
    padding: 0 28px;
}

.horo-lang-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--horo-muted);
    cursor: pointer;
    font-family: var(--horo-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 20px;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.horo-lang-tab:hover { color: var(--horo-accent); }
.horo-lang-tab--active {
    color: var(--horo-accent);
    border-bottom-color: var(--horo-accent);
}

/* ── Tab content ── */
.horo-tab-content { padding-bottom: 8px; }

/* Who are you section */
.horo-who-section {
    padding: 24px 28px 0;
}

.horo-summary-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--horo-text);
    margin: 0 0 14px;
}

.horo-life-theme-box {
    background: var(--horo-gold-lt);
    border-left: 3px solid var(--horo-gold);
    border-radius: 0 8px 8px 0;
    padding: 11px 16px;
    margin-bottom: 22px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hlt-label {
    font-family: var(--horo-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--horo-gold);
    letter-spacing: 0.8px;
    margin-right: 8px;
}

.hlt-text { color: var(--horo-text); font-style: italic; }

/* ── Category cards ── */
.horo-categories {
    padding: 0 28px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.horo-cat-card {
    border: 1px solid var(--horo-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.horo-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--horo-border);
    background: #faf9f7;
}

.horo-cat-icon { font-size: 1.25rem; }

.horo-cat-label {
    font-family: var(--horo-sans);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--horo-text);
    flex: 1;
}

.horo-cat-rating {
    font-family: var(--horo-sans);
    font-size: 0.82rem;
    font-weight: 700;
}

.horo-cat-rating em {
    font-style: normal;
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Rating bar */
.horo-bar-row {
    display: flex;
    gap: 3px;
    padding: 7px 16px;
    background: #faf9f7;
    border-bottom: 1px solid var(--horo-border);
}

.horo-bar {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: #e5e0ec;
    transition: background 0.2s;
}

.horo-bar--on { background: #6d4c9e; }

/* Past / Future columns */
.horo-cat-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.horo-cat-half {
    padding: 14px 16px;
}

.horo-cat-past   { background: var(--horo-past-bg); border-right: 1px solid var(--horo-border); }
.horo-cat-future { background: var(--horo-future-bg); }

.horo-half-label {
    display: block;
    font-family: var(--horo-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--horo-muted);
    margin-bottom: 6px;
}

.horo-cat-half p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--horo-text);
}

/* ── Strengths & Challenges ── */
.horo-sq-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 14px 28px 20px;
}

.horo-sq-box {
    border: 1px solid var(--horo-border);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

.horo-sq-box h4 {
    font-family: var(--horo-sans);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--horo-text);
}

.horo-sq-strengths  { border-top: 3px solid #2d7a3a; }
.horo-sq-challenges { border-top: 3px solid #c0392b; }

.horo-sq-box ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.horo-sq-box ul li {
    font-family: var(--horo-sans);
    font-size: 0.86rem;
    color: var(--horo-text);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.horo-sq-strengths ul li::before  { content: '✓'; position: absolute; left: 0; color: #2d7a3a; font-weight: 700; }
.horo-sq-challenges ul li::before { content: '!'; position: absolute; left: 0; color: #c0392b; font-weight: 700; }

/* ── Back button ── */
.horo-actions {
    padding: 0 28px 8px;
}

.horo-btn-back {
    background: none;
    border: 1px solid var(--horo-border);
    border-radius: 8px;
    color: var(--horo-muted);
    cursor: pointer;
    font-family: var(--horo-sans);
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: border-color 0.2s, color 0.2s;
}

.horo-btn-back:hover { border-color: var(--horo-accent); color: var(--horo-accent); }

/* ── Hindi font ── */
.horo-hindi {
    font-family: 'Noto Sans Devanagari', 'Mangal', 'Arial Unicode MS', sans-serif;
    line-height: 1.9;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .horo-two-col        { grid-template-columns: 1fr; }
    .horo-cat-body       { grid-template-columns: 1fr; }
    .horo-cat-past       { border-right: none; border-bottom: 1px solid var(--horo-border); }
    .horo-sq-section     { grid-template-columns: 1fr; }
    .horo-form-header,
    .horo-results-header { padding: 20px 18px 16px; }
    #horo-form,
    .horo-who-section,
    .horo-categories,
    .horo-sq-section,
    .horo-actions        { padding-left: 16px; padding-right: 16px; }
    .horo-lang-tabs      { padding: 0 12px; }
    .horo-summary-strip  { padding: 12px 14px; }
}
