/* Horoscope Constellation UI Styles */

/* Apply mystical fonts */
.horoscope-read {
    padding: 0;
    background: transparent;
    min-height: 100vh;
    font-family: 'Cinzel', serif;
    position: relative;
    overflow-x: hidden;
}

.horoscope-read > * {
    position: relative;
    z-index: 1;
}

.horoscope-read .container {
    background: transparent !important;
}

.horoscope-read h1,
.horoscope-read h2,
.horoscope-read h3,
.horoscope-read h4,
.horoscope-read .btn {
    font-family: 'Cinzel Decorative', serif;
}

/* Override Bootstrap body and main background */
body {
    background: transparent !important;
    font-family: 'Cinzel', serif;
    position: relative;
    overflow-x: hidden;
}

html {
    background: #121330 !important;
}

#main {
    background: transparent !important;
}

#footer {
    background: rgba(0,0,0,0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Aurora Borealis Layers */
.aurora {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.55;
    animation: aurora-shift ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
    will-change: opacity;
}

.aurora-1 {
    background:
        radial-gradient(ellipse 100% 75% at 50% 50%, rgba(148, 0, 211, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse 90% 65% at 45% 48%, rgba(0, 255, 127, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 85% 60% at 55% 52%, rgba(30, 144, 255, 0.65) 0%, transparent 60%);
    animation-duration: 20s;
    animation-delay: 0s;
}

@keyframes aurora-shift {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.65; }
}

/* Stars */
.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.star-bg {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.star-small-bg {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.star-medium-bg {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(200, 220, 255, 0.5);
}

.star-large-bg {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 1), 0 0 12px rgba(180, 200, 255, 0.7);
}

@keyframes twinkle-bg {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Ambient glow */
.ambient-glow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(138, 43, 226, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(0, 255, 150, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(100, 149, 237, 0.05) 0%, transparent 50%);
    animation: glow-pulse-bg 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes glow-pulse-bg {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.horoscope-read h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-top: 40px;
}

.reading-instructions {
    color: #fff;
}

.reading-instructions .lead {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

#selection-status {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#star-sign-display {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Constellation Sky Section */
.zodiac-wheel-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px 0;
    background: transparent;
}

.constellation-sky {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 700px;
    margin: 0 auto;
    background: transparent;
    border-radius: 20px;
    overflow: visible;
}

/* SVG Constellation Container */
#constellation-svg {
    width: 100%;
    height: 100%;
}

/* Star Styles */
.star {
    fill: #ffffff;
    cursor: pointer;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    transition: all 0.3s ease;
}

.star:hover {
    fill: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 1));
}

/* Constellation Lines */
.constellation-line {
    stroke: rgba(255, 215, 0, 0);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.4s ease;
    pointer-events: stroke;
}

/* Invisible clickable area for constellation */
.constellation-hitbox {
    fill: transparent;
    stroke: none;
    pointer-events: all;
}

/* Constellation Group States */
.constellation-group {
    cursor: pointer;
}

.constellation-group:hover .star {
    fill: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1));
}

.constellation-group:hover .constellation-line {
    stroke: rgba(255, 215, 0, 0.8);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.constellation-group.selected .star {
    fill: #ffd700;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    animation: pulse-star 2s infinite;
}

.constellation-group.selected .constellation-line {
    stroke: rgba(255, 215, 0, 1);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

@keyframes pulse-star {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    }
}

/* Constellation Labels */
.constellation-label {
    font-family: 'Cinzel Decorative', serif;
    fill: #ffd700;
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    text-anchor: middle;
}

.constellation-group:hover .constellation-label,
.constellation-group.selected .constellation-label {
    opacity: 1;
}

.constellation-symbol {
    font-size: 20px;
    fill: #ffd700;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-anchor: middle;
}

.constellation-group:hover .constellation-symbol,
.constellation-group.selected .constellation-symbol {
    opacity: 1;
}

/* Birth Details Section */
.birth-details-section {
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.birth-details-section .card {
    background: rgba(10, 14, 39, 0.92);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.birth-details-section h3 {
    color: #ffd700;
}

.birth-details-section .form-label {
    font-weight: 600;
    color: #ffd700;
}

.birth-details-section .form-control {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: transparent;
    color: #fff;
}

.birth-details-section .form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background: transparent;
    color: #fff;
}

/* Horoscope Result */
.horoscope-result {
    max-width: 900px;
    margin: 30px auto;
    animation: fadeIn 0.5s ease;
}

.horoscope-result .card {
    background: transparent;
    backdrop-filter: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.sign-header {
    text-align: center;
    padding: 20px;
    background: transparent;
    border-radius: 10px;
    color: #fff;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 30px !important;
    width: 100%;
}

.sign-header .sign-emoji {
    font-size: 4rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.sign-header .sign-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffd700;
}

.sign-header .sign-symbol {
    font-size: 1.5rem;
    color: #ffd700;
}

.sign-header .sign-dates {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

#horoscope-content {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff;
}

#horoscope-content h4 {
    color: #ffd700;
    margin-top: 25px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#horoscope-content p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #ffd700;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border-color: #ffd700;
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(102, 126, 234, 0.5);
    cursor: wait;
    transform: none;
}

.btn-secondary {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #ffd700;
}

.loading::after {
    content: "Consulting the stars...";
    font-size: 1.2rem;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .constellation-sky {
        height: 500px;
    }

    .constellation-label {
        font-size: 12px;
    }

    .constellation-symbol {
        font-size: 16px;
    }

    .horoscope-read h1 {
        font-size: 2rem;
    }

    .sign-header .sign-name {
        font-size: 2rem;
    }
}

/* Full-screen result display */
.horoscope-result.fullscreen-result {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    background: #121330;
    padding: 0;
    margin: 0;
}

.horoscope-result.fullscreen-result .card {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    background: rgba(15, 20, 40, 0.95);
    border: none;
    border-radius: 0;
}

.fullscreen-result .card-body {
    padding: 3rem;
}

.return-button-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Share Button Styles */
.btn-share {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid rgba(16, 185, 129, 0.6);
    color: #fff;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-family: 'Cinzel Decorative', serif;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-share:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.btn-share:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Interpretation Tabs */
.interpretation-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 0 !important;
    flex-wrap: wrap;
    padding: 20px;
    background: transparent;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    width: 100%;
}

.tab-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    color: #ffd700;
    font-family: 'Cinzel Decorative', serif;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.tab-btn.active {
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

.tab-icon {
    font-size: 1.8rem;
}

.tab-label {
    font-size: 0.85rem;
}

/* Interpretation Content */
.interpretation-content {
    position: relative;
    min-height: 300px;
}

.section-content {
    display: none;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    animation: sectionFade 0.5s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-content.active {
    display: block;
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content[data-section="daily"] {
    border-left: 4px solid #60a5fa;
}

.section-content[data-section="love"] {
    border-left: 4px solid #f472b6;
}

.section-content[data-section="career"] {
    border-left: 4px solid #a78bfa;
}

.section-content[data-section="wellness"] {
    border-left: 4px solid #fbbf24;
}

.section-content[data-section="lucky"] {
    border-left: 4px solid #10b981;
}

.section-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}