/* Zodiac Fortune Timeline Styles */

body {
    font-family: 'Liberation Sans', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e6e6fa;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

#zodiac-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #ffd700;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    font-family: 'Liberation Serif', serif;
}

/* Lunar Ghost Veil Section */
.lunar-veil-section {
    margin: 18px 0 18px 0;
    padding: 18px;
    border: 2px solid #8be;
    border-radius: 12px;
    background: rgba(138, 43, 226, 0.08);
    color: #8be;
    text-align: center;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.moon-phase-large {
    font-size: 48pt;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.moon-phase-name {
    font-size: 16pt;
    font-weight: bold;
    margin: 8px 0;
}

.moon-phase-meaning {
    margin: 8px 0 8px 0;
    font-style: italic;
}

.astronomical-events {
    border: 1px solid #8be;
    margin: 10px 0;
    padding: 10px;
    background: rgba(138, 43, 226, 0.08);
    border-radius: 8px;
}

.no-events-message {
    color: #8be;
    font-style: italic;
    margin-top: 8px;
}

.moon-gravity, .moon-gravity-meaning, .veil-description {
    font-size: 10pt;
    margin-top: 10px;
}

.veil-description {
    color: #b4aaff;
}

/* Horoscope Section */
.horoscope-section {
    margin-top: 15px;
    padding: 15px;
    border: 2px solid #9370db;
    border-radius: 8px;
    background: rgba(147, 112, 219, 0.1);
    color: #dda0dd;
    font-size: 11pt;
    text-align: center;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.3);
}

.horoscope-header {
    font-size: 14pt;
    font-weight: bold;
    color: #dda0dd;
    margin-bottom: 6px;
}

.horoscope-title {
    font-size: 15pt;
    font-weight: bold;
    color: #ffd700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.horoscope-message {
    text-align: left;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto;
}

.horoscope-message p {
    margin: 0 0 0.7em 0;
}

.horoscope-closing {
    text-align: center;
    font-style: italic;
    color: #c9a0f0;
}

.horoscope-trace {
    margin-top: 12px;
    text-align: left;
    border: 1px dashed rgba(147, 112, 219, 0.55);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 9pt;
    color: #b9a8e8;
}

.horoscope-trace summary {
    cursor: pointer;
    color: #c9b8ff;
    font-size: 9.5pt;
}

.horoscope-trace-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 3px 0;
    border-bottom: 1px dotted rgba(147, 112, 219, 0.3);
}

.horoscope-trace-row:last-child {
    border-bottom: none;
}

.horoscope-trace-claim {
    color: #e0d4ff;
    font-weight: bold;
}

.horoscope-trace-value {
    color: #ffd700;
}

.horoscope-trace-source {
    color: #9c8ec8;
    font-style: italic;
}

.horoscope-footer {
    margin-top: 10px;
    color: #b8a0e8;
    font-style: italic;
    font-size: 10pt;
}

/* Planetary Order Section */
.planetary-order-section {
    margin-top: 15px;
    padding: 12px;
    border: 2px solid #ff6600;
    border-radius: 8px;
    background: rgba(255, 102, 0, 0.08);
    color: #ffaa44;
    font-size: 10pt;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

/* Cosmic Configuration Matrix */
.cosmic-matrix {
    margin-bottom: 12px;
    padding: 10px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 50, 0.3) 0%, rgba(25, 25, 75, 0.3) 50%, rgba(0, 0, 50, 0.3) 100%);
    position: relative;
}

.cosmic-header {
    color: #ffd700;
    font-weight: bold;
    font-size: 12pt;
    margin-bottom: 8px;
    text-align: center;
}

.visual-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.matrix-item {
    text-align: center;
    min-width: 120px;
}

.matrix-label {
    color: #ffd700;
    font-size: 8pt;
    font-weight: bold;
    margin-bottom: 4px;
}

.matrix-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #ffd700;
}

.matrix-value {
    color: #ffecb3;
    font-size: 7pt;
    margin-top: 2px;
}

.cosmic-status-bar {
    margin-top: 8px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7pt;
    color: #f0f8ff;
}

.energy-indicator {
    position: absolute;
    top: 4px;
    right: 8px;
    opacity: 0.6;
    font-size: 8pt;
    color: #ffd700;
}

.energy-indicator-bottom {
    position: absolute;
    bottom: 4px;
    left: 8px;
    opacity: 0.6;
    font-size: 8pt;
    color: #ffd700;
}

/* Planetary Details */
.planetary-detail {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 5px;
    background: rgba(255, 165, 0, 0.05);
}

.detail-header {
    color: #ffa500;
    font-weight: bold;
    margin-bottom: 4px;
}

.detail-content {
    color: #ffd700;
    font-size: 9pt;
}

.detail-meta {
    font-size: 8pt;
    color: #ffffe0;
    margin-top: 2px;
}

.detail-ritual {
    font-size: 8pt;
    color: #fffacd;
    margin-top: 3px;
    font-style: italic;
}

/* Jupiter-Saturn Dynamics */
.jupiter-saturn-section {
    margin-bottom: 10px;
    padding: 8px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 5px;
    background: rgba(255, 215, 0, 0.1);
}

.jupiter-saturn-header {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 4px;
}

.jupiter-saturn-phase {
    color: #ffff99;
    font-size: 9pt;
}

.jupiter-saturn-energy {
    font-size: 8pt;
    color: #ffffcc;
    margin-top: 2px;
    font-style: italic;
}

.jupiter-saturn-manifestation {
    font-size: 8pt;
    color: #fff8dc;
    margin-top: 2px;
}

.jupiter-saturn-powers {
    font-size: 8pt;
    color: #f0f8ff;
    margin-top: 3px;
}

.jupiter-saturn-balance {
    font-size: 8pt;
    color: #e6e6fa;
    margin-top: 2px;
    font-style: italic;
}

/* Visible Planets */
.visible-planets-section {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 5px;
    background: rgba(0, 255, 255, 0.05);
}

.visible-planets-header {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 4px;
}

.planet-item {
    margin-bottom: 4px;
    padding: 4px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 3px;
}

.planet-name {
    color: #87ceeb;
}

.planet-constellation {
    font-size: 8pt;
    color: #b0e0e6;
}

.planet-significance {
    font-size: 8pt;
    color: #f0f8ff;
    font-style: italic;
}

/* Zodiac Echoes */
.zodiac-echoes-section {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 20, 147, 0.4);
    border-radius: 5px;
    background: rgba(255, 20, 147, 0.05);
}

.zodiac-echoes-header {
    color: #ff1493;
    font-weight: bold;
    margin-bottom: 4px;
}

.echo-item {
    margin-bottom: 4px;
    padding: 4px;
    background: rgba(255, 20, 147, 0.05);
    border-radius: 3px;
}

.echo-type {
    color: #ff69b4;
    font-size: 9pt;
}

.echo-source {
    font-size: 8pt;
    color: #ffb6c1;
}

.echo-influence {
    font-size: 8pt;
    color: #ffc0cb;
    font-style: italic;
}

/* Fixed Star */
.fixed-star-section {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 5px;
    background: rgba(255, 215, 0, 0.05);
}

.fixed-star-header {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 4px;
}

.fixed-star-name {
    color: #ffff99;
}

.fixed-star-coordinates {
    font-size: 8pt;
    color: #ffffcc;
    margin-top: 2px;
}

.fixed-star-magnitude {
    font-size: 8pt;
    color: #fffff0;
    margin-top: 2px;
}

.fixed-star-influence {
    font-size: 8pt;
    color: #fffacd;
    margin-top: 3px;
    font-style: italic;
}

.fixed-star-timing {
    font-size: 8pt;
    color: #ffefd5;
    margin-top: 2px;
}

/* Galactic Context */
.galactic-section {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 5px;
    background: rgba(138, 43, 226, 0.05);
}

.galactic-header {
    color: #8a2be2;
    font-weight: bold;
    margin-bottom: 4px;
}

.galactic-center {
    color: #9370db;
    font-size: 9pt;
}

.galactic-direction {
    font-size: 8pt;
    color: #dda0dd;
    margin-top: 2px;
}

.galactic-significance {
    font-size: 8pt;
    color: #e6e6fa;
    margin-top: 2px;
    font-style: italic;
}

.galactic-motion {
    font-size: 8pt;
    color: #f0f0ff;
    margin-top: 2px;
}

/* Current Astrological Power */
.power-section {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 5px;
    background: rgba(255, 165, 0, 0.05);
}

.power-header {
    color: #ffa500;
    font-weight: bold;
    margin-bottom: 4px;
}

.power-primary {
    color: #ffd700;
    font-size: 9pt;
}

.power-meta {
    font-size: 8pt;
    color: #ffffe0;
    margin-top: 2px;
}

.power-ritual {
    font-size: 8pt;
    color: #fffacd;
    margin-top: 3px;
    font-style: italic;
}

/* Zodiac Influence */
.zodiac-influence {
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed #ffd700;
    color: #ffd700;
    font-size: 10pt;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.zodiac-influence-header {
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 8px;
    font-size: 14pt;
}

.spirit-guide-section {
    margin-bottom: 8px;
    padding: 6px;
    border: 1px dotted rgba(255, 200, 0, 0.4);
    border-radius: 3px;
    background: rgba(255, 200, 0, 0.03);
}

.spirit-guide-label {
    color: #ccaa00;
    font-size: 8pt;
    font-weight: bold;
}

.spirit-guide-content {
    margin-top: 4px;
}

.spirit-guide-resonance {
    color: #ddbb22;
    font-size: 8pt;
    margin-top: 4px;
    font-style: italic;
}

.spirit-guide-glyph {
    color: #eebb44;
    font-size: 8pt;
    margin-top: 4px;
    font-weight: bold;
}

.current-year-section {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(100, 255, 100, 0.3);
    border-radius: 5px;
    background: rgba(100, 255, 100, 0.05);
}

.current-year-header {
    color: #66ff66;
    font-weight: bold;
    margin-bottom: 3px;
}

.current-year-content {
    margin-top: 3px;
}

.current-year-traits {
    color: #88ff88;
    font-size: 9pt;
    margin-top: 3px;
}

.current-year-element {
    color: #ccffcc;
    font-size: 8pt;
    margin-top: 2px;
}

.western-section {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    background: rgba(255, 215, 0, 0.05);
}

.western-header {
    color: #ffaa00;
    font-weight: bold;
    margin-bottom: 3px;
}

.western-content {
    margin-top: 3px;
}

.western-traits {
    color: #ffecb3;
    font-size: 9pt;
    margin-top: 3px;
}

.birth-year-section {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 5px;
    background: rgba(255, 107, 107, 0.05);
}

.birth-year-header {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 3px;
}

.birth-year-content {
    margin-top: 3px;
}

.birth-year-element {
    color: #ffe4e1;
    font-size: 8pt;
    margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .visual-display {
        flex-direction: column;
        gap: 12px;
    }

    .matrix-item {
        min-width: 100%;
    }

    .cosmic-status-bar {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    h1 {
        font-size: 2em;
    }

    .moon-phase-large {
        font-size: 36pt;
    }
}

/* Planet keyword pills */
.planet-keywords {
    margin-top: 6px;
}
.keyword-pill {
    display: inline-block;
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 2px 6px;
    margin-right: 6px;
    border-radius: 12px;
    font-size: 9px;
}

/* ============================================================
 * THE GALLERY OVERHAUL (owner ruling 2026-08-24)
 * ------------------------------------------------------------
 * Midnight-indigo + cream serif scheme (the old scheme was hard
 * to read); the generated gallery images in every pane; the
 * horoscope is now the finale at the END of the oracle.
 * ============================================================ */

body {
    font-family: 'Liberation Serif', Georgia, serif;
    background: linear-gradient(160deg, #070b24 0%, #0c1230 55%, #060818 100%);
    color: #f2ead8;
}

h1 {
    font-family: 'Liberation Sans', Arial, sans-serif;
    letter-spacing: 2px;
}

/* the horoscope — the finale */
.horoscope-section {
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    padding: 16px;
    background: rgba(20, 24, 58, 0.55);
    margin-top: 18px;
}

.horoscope-message {
    color: #f2ead8;
    font-family: 'Liberation Serif', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.65;
}

.horoscope-closing {
    color: #c9b8ff;
}

/* the visible-planets rows — text left, the ethereal image right */
.planet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
    padding: 8px 12px;
    background: rgba(13, 18, 46, 0.5);
    border: 1px solid rgba(120, 150, 240, 0.4);
    border-radius: 10px;
}

.planet-item-text {
    flex: 1 1 auto;
    min-width: 0;
}

.planet-item-img {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 12px rgba(120, 150, 240, 0.35);
}

.planet-name {
    color: #f2ead8;
    font-size: 12pt;
}

.planet-constellation,
.planet-significance {
    color: #a9b4e8;
    font-size: 9.5pt;
}

.planet-source {
    color: #8a94c8;
}

.visible-planets-header {
    color: #ffd700;
    text-align: center;
    margin: 8px 0;
}

/* the prominent fixed star — right-justified with its image */
.fixed-star-section {
    border: 1px solid rgba(255, 255, 230, 0.45);
    border-radius: 10px;
    background: rgba(16, 20, 50, 0.5);
    padding: 12px 14px;
}

.fixed-star-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fixed-star-text {
    flex: 1 1 auto;
    min-width: 240px;
    text-align: left;
}

.fixed-star-img {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 14px rgba(255, 230, 150, 0.4);
}

/* the galactic pane */
.galactic-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.galactic-figure {
    margin: 0;
    text-align: center;
}

.galactic-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 14px rgba(130, 110, 240, 0.4);
}

.galactic-figure figcaption {
    margin-top: 6px;
    font-size: 10pt;
    font-style: italic;
    color: #c9b8ff;
}

/* the Current Astrological Power — the deity image beneath */
.power-section {
    border: 1px solid rgba(255, 130, 120, 0.45);
    border-radius: 10px;
    background: rgba(40, 14, 18, 0.4);
    text-align: center;
    padding: 12px 14px;
}

.power-img {
    display: block;
    margin: 12px auto 0 auto;
    max-width: 440px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 18px rgba(255, 160, 130, 0.35);
}

/* the Chinese + Western sign images */
.zodiac-sign-img {
    display: block;
    margin: 0 auto 8px auto;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 14px rgba(130, 110, 240, 0.4);
}

@media (max-width: 640px) {
    .planet-item {
        flex-direction: column;
        text-align: center;
    }

    .planet-item-img {
        flex: 0 0 auto;
        width: 120px;
        height: 120px;
    }

    .fixed-star-row {
        justify-content: center;
    }

    .fixed-star-text {
        text-align: center;
    }
}
