/* ═══════════════════════════════════════════════════════
   Horoscope Plugin — Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
    --horo-bg:           #0f0c1a;
    --horo-card:         #1a1530;
    --horo-card-border:  #2e2650;
    --horo-accent:       #a78bfa;
    --horo-accent2:      #f59e0b;
    --horo-text:         #e2e0f0;
    --horo-muted:        #9490b5;
    --horo-past:         #6d4caa;
    --horo-future:       #c47d11;
    --horo-radius:       14px;
    --horo-font:         'Georgia', serif;
}

/* ── Wrapper ── */
.horo-wrapper {
    font-family: var(--horo-font);
    color: var(--horo-text);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

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

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

.horo-zodiac-banner {
    font-size: 1.3rem;
    letter-spacing: 6px;
    opacity: 0.4;
    margin-bottom: 14px;
}

.horo-title,
.horo-results-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(167,139,250,0.4);
}

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

/* ── Form ── */
#horo-form {
    padding: 28px 32px;
}

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

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

.horo-field label {
    display: block;
    font-size: 0.82rem;
    font-family: sans-serif;
    font-weight: 600;
    color: var(--horo-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.horo-field input {
    width: 100%;
    background: #0f0c1a;
    border: 1px solid var(--horo-card-border);
    border-radius: 8px;
    color: var(--horo-text);
    padding: 10px 14px;
    font-size: 1rem;
    font-family: var(--horo-font);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.horo-field input:focus {
    outline: none;
    border-color: var(--horo-accent);
    box-shadow: 0 0 0 3px rgba(167,139,250,0.15);
}

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

/* ── Error ── */
.horo-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: sans-serif;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ── Button ── */
.horo-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-family: var(--horo-font);
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}

.horo-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.horo-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.horo-btn-secondary {
    background: transparent;
    border: 1px solid var(--horo-card-border);
    color: var(--horo-muted);
    font-size: 0.9rem;
    width: auto;
    padding: 10px 20px;
}

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

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

/* ── Disclaimer ── */
.horo-disclaimer {
    font-family: sans-serif;
    font-size: 0.78rem;
    color: var(--horo-muted);
    text-align: center;
    padding: 0 32px 20px;
    margin: 0;
    line-height: 1.5;
    opacity: 0.7;
}

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

.horo-section {
    padding: 24px 32px;
    border-bottom: 1px solid var(--horo-card-border);
}

.horo-section h3 {
    font-size: 1.05rem;
    color: var(--horo-accent);
    margin: 0 0 16px;
    letter-spacing: 1px;
}

/* ── Planet grid ── */
.horo-planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.horo-planet-card {
    background: #0f0c1a;
    border: 1px solid var(--horo-card-border);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    transition: border-color 0.2s;
}

.horo-planet-card:hover { border-color: var(--horo-accent); }

.horo-planet-symbol {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 4px;
}

.horo-planet-name {
    display: block;
    font-family: sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--horo-muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.horo-planet-sign {
    display: block;
    font-size: 0.88rem;
    color: var(--horo-text);
    margin-bottom: 2px;
}

.horo-planet-detail {
    display: block;
    font-family: sans-serif;
    font-size: 0.72rem;
    color: var(--horo-muted);
}

/* ── Triad ── */
.horo-triad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg,rgba(124,58,237,0.15),rgba(245,158,11,0.1));
    border: 1px solid var(--horo-card-border);
    border-radius: 12px;
    padding: 16px 24px;
}

.horo-triad-item {
    text-align: center;
    padding: 0 12px;
}

.horo-triad-symbol { display: block; font-size: 1.4rem; }

.horo-triad-label {
    display: block;
    font-family: sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--horo-muted);
    letter-spacing: 0.5px;
    margin: 2px 0;
}

.horo-triad-sign { font-size: 0.95rem; color: var(--horo-accent); }

.horo-triad-divider { font-size: 1.5rem; color: var(--horo-card-border); }

/* ── Core summary ── */
.horo-body-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--horo-text);
    margin: 0;
}

/* ── Life theme ── */
.horo-life-theme {
    padding: 20px 32px;
    border-bottom: 1px solid var(--horo-card-border);
}

.horo-life-theme-inner {
    background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(245,158,11,0.08));
    border-left: 3px solid var(--horo-accent2);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.horo-life-theme-label {
    font-family: sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--horo-accent2);
    letter-spacing: 1px;
    white-space: nowrap;
    margin-top: 2px;
}

.horo-life-theme-text {
    font-size: 0.98rem;
    color: var(--horo-text);
    line-height: 1.6;
    font-style: italic;
}

/* ── Two panels ── */
.horo-two-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--horo-card-border);
}

.horo-panel {
    padding: 24px 28px;
}

.horo-panel:first-child {
    border-right: 1px solid var(--horo-card-border);
}

.horo-panel h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.horo-past-panel h3   { color: #c084fc; }
.horo-future-panel h3 { color: var(--horo-accent2); }
.horo-strengths-panel h3  { color: #4ade80; }
.horo-challenges-panel h3 { color: #f87171; }

.horo-panel-desc {
    font-family: sans-serif;
    font-size: 0.78rem;
    color: var(--horo-muted);
    margin: 0 0 14px;
    line-height: 1.4;
}

/* ── Statement list ── */
.horo-statement-list {
    list-style: none;
    padding: 0; margin: 0;
}

.horo-statement-item {
    position: relative;
    padding: 10px 10px 10px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    opacity: 0;
    transform: translateY(8px);
    animation: horo-fadein 0.4s ease forwards;
}

.horo-statement-item:last-child { border-bottom: none; }

.horo-past-panel   .horo-statement-item::before { content:''; position:absolute; left:4px; top:15px; width:6px; height:6px; border-radius:50%; background:#c084fc; }
.horo-future-panel .horo-statement-item::before { content:''; position:absolute; left:4px; top:15px; width:6px; height:6px; border-radius:50%; background:var(--horo-accent2); }

@keyframes horo-fadein {
    to { opacity:1; transform:translateY(0); }
}

/* ── Tag list ── */
.horo-tag-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.horo-tag {
    font-family: sans-serif;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.horo-tag-strength  { background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.3); color: #86efac; }
.horo-tag-challenge { background: rgba(248,113,113,0.15); border: 1px solid rgba(248,113,113,0.3); color: #fca5a5; }

/* ── Aspects ── */
.horo-aspects-section { border-bottom: 1px solid var(--horo-card-border); }

.horo-aspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.horo-aspect-card {
    background: #0f0c1a;
    border: 1px solid var(--horo-card-border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.horo-aspect-sym    { display:block; font-size:1.4rem; }
.horo-aspect-planets{ display:block; font-size:0.8rem; color:var(--horo-text); margin:3px 0; }
.horo-aspect-name   { display:block; font-family:sans-serif; font-size:0.7rem; color:var(--horo-muted); text-transform:uppercase; letter-spacing:0.5px; }

/* ── Actions ── */
.horo-actions {
    padding: 20px 32px;
    display: flex;
    justify-content: flex-start;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .horo-two-col, .horo-two-panels {
        grid-template-columns: 1fr;
    }
    .horo-panel:first-child { border-right: none; border-bottom: 1px solid var(--horo-card-border); }
    .horo-form-header, .horo-results-header, #horo-form, .horo-section, .horo-panel { padding-left: 18px; padding-right: 18px; }
    .horo-triad { flex-direction: column; gap: 4px; }
    .horo-triad-divider { transform: rotate(90deg); }
    .horo-planets-grid { grid-template-columns: repeat(3, 1fr); }
}
