/* === THEME TOGGLE BUTTON === */
#theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(10px);
    color: #FFD700;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* === LANGUAGE TOGGLE BUTTON === */
#lang-toggle-btn {
    position: fixed;
    top: 20px;
    right: 75px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(10px);
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Open Sans', sans-serif;
}

#lang-toggle-btn:hover {
    transform: scale(1.1);
    border-color: #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.light-theme #lang-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
    color: #495057;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.light-theme #lang-toggle-btn:hover {
    border-color: #6c757d;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* === DARK THEME (DEFAULT) === */
.dark-theme,
body:not(.light-theme) {
    background: #0d0d0d !important;
}

/* Override gradient backgrounds for pure dark */
.dark-theme .gradient-bg,
body:not(.light-theme) .gradient-bg,
.dark-theme header,
body:not(.light-theme) header {
    background: linear-gradient(180deg, #0d0d0d 0%, #121218 50%, #0d0d0d 100%) !important;
}

.dark-theme section,
body:not(.light-theme) section {
    background: transparent !important;
}

.dark-theme .bg-slate-900,
body:not(.light-theme) .bg-slate-900 {
    background: #0d0d0d !important;
}

.dark-theme footer,
body:not(.light-theme) footer {
    background: #0a0a0a !important;
}

/* === LIGHT THEME STYLES === */
.light-theme {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%) !important;
}

.light-theme #theme-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
    color: #495057;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.light-theme #theme-toggle-btn:hover {
    border-color: #6c757d;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.light-theme nav {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.light-theme nav a,
.light-theme nav span,
.light-theme nav button {
    color: #343a40 !important;
}

.light-theme nav a.text-yellow-400,
.light-theme nav a:hover {
    color: #c9a227 !important;
}

.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme h6 {
    color: #212529 !important;
}

.light-theme p,
.light-theme span,
.light-theme li,
.light-theme label {
    color: #495057 !important;
}

.light-theme .text-white {
    color: #212529 !important;
}

.light-theme .text-gray-300,
.light-theme .text-gray-400,
.light-theme .text-gray-500 {
    color: #6c757d !important;
}

.light-theme .text-yellow-400 {
    color: #c9a227 !important;
}

.light-theme section,
.light-theme .bg-slate-800,
.light-theme .bg-slate-900 {
    background: rgba(255, 255, 255, 0.6) !important;
}

.light-theme .gradient-bg,
.light-theme header {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 50%, #ced4da 100%) !important;
}

.light-theme footer {
    background: #f1f3f5 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .zodiac-card,
.light-theme .news-card,
.light-theme .social-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light-theme .zodiac-card:hover,
.light-theme .news-card:hover,
.light-theme .social-card:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.light-theme .constellation-star {
    fill: #c9a227 !important;
    filter: drop-shadow(0 0 3px rgba(201, 162, 39, 0.5));
}

.light-theme .constellation-line {
    stroke: rgba(201, 162, 39, 0.4) !important;
}

.light-theme #constellation-container {
    opacity: 0.5;
}

.light-theme .gold-gradient {
    background: linear-gradient(135deg, #c9a227 0%, #a88a1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-theme input,
.light-theme textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #212529 !important;
}

.light-theme input::placeholder,
.light-theme textarea::placeholder {
    color: #adb5bd !important;
}

.light-theme .bg-gradient-to-br,
.light-theme [class*="from-purple"],
.light-theme [class*="from-slate"] {
    background: rgba(248, 249, 250, 0.95) !important;
}

/* === CONSTELLATION CONTAINER === */
#constellation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.constellation {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    opacity: 0.85;
}

.constellation-star {
    fill: #FFD700;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.9));
}

.constellation-line {
    stroke: rgba(255, 215, 0, 0.4);
    stroke-width: 0.8;
}

/* === CONSTELLATION ANIMATIONS === */
@keyframes constellationFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -15px) rotate(1deg);
    }

    50% {
        transform: translate(-8px, 8px) rotate(-0.5deg);
    }

    75% {
        transform: translate(12px, 10px) rotate(0.5deg);
    }
}

@keyframes constellationFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 0.85;
        transform: scale(1);
    }
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 1;
        r: 2.5;
    }

    50% {
        opacity: 0.6;
        r: 2;
    }
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.4;
        stroke-width: 0.8;
    }

    50% {
        opacity: 0.7;
        stroke-width: 1.2;
    }
}

/* === HIDE OLD STAR ANIMATIONS === */
.stars-bg {
    background-image: none !important;
    animation: none !important;
}

.float-star,
.shooting-star {
    display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #theme-toggle-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .constellation {
        width: 120px !important;
        height: 120px !important;
    }
}