/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #b8b8d1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #74b9ff;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
    border-radius: 1px;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #b8b8d1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 1.25rem;
}

.dropdown-item.active {
    background: rgba(74, 144, 226, 0.2);
    color: #74b9ff;
    border-left: 3px solid #74b9ff;
}

/* Sky Status Indicator */
.sky-status-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1rem;
    z-index: 999;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sky-status-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Clickable sky status indicator */
.clickable-status:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 50px rgba(74, 144, 226, 0.3);
    border-color: rgba(74, 144, 226, 0.6);
}

.clickable-status:active {
    transform: translateY(-1px) scale(0.98);
}

.click-hint-small {
    font-size: 0.6rem;
    color: rgba(74, 144, 226, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

.clickable-status:hover .click-hint-small {
    opacity: 1;
}

/* Pulse animation for updates */
.sky-status-indicator.updating {
    animation: skyStatusPulse 0.6s ease-in-out;
}

@keyframes skyStatusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sky-status-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9393b3;
    text-align: center;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.sky-status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sky-status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sky-status-text {
    flex: 1;
    min-width: 0;
}

.sky-status-rating {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.sky-status-subtitle {
    font-size: 0.75rem;
    color: #9393b3;
    line-height: 1;
}

.sky-status-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    text-align: center;
}

.sky-status-score {
    font-size: 0.85rem;
    color: #b8b8d1;
    font-weight: 500;
}

#sky-status-score-value {
    font-weight: 700;
    font-size: 1rem;
}

/* Sky Status Color Classes */
.sky-status-excellent {
    border-color: rgba(46, 213, 115, 0.4);
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), rgba(20, 20, 40, 0.95));
}

.sky-status-excellent .sky-status-rating {
    color: #2ed573;
}

.sky-status-excellent #sky-status-score-value {
    color: #2ed573;
}

.sky-status-good {
    border-color: rgba(255, 159, 67, 0.4);
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.1), rgba(20, 20, 40, 0.95));
}

.sky-status-good .sky-status-rating {
    color: #ff9f43;
}

.sky-status-good #sky-status-score-value {
    color: #ff9f43;
}

.sky-status-fair {
    border-color: rgba(255, 206, 84, 0.4);
    background: linear-gradient(135deg, rgba(255, 206, 84, 0.1), rgba(20, 20, 40, 0.95));
}

.sky-status-fair .sky-status-rating {
    color: #ffce54;
}

.sky-status-fair #sky-status-score-value {
    color: #ffce54;
}

.sky-status-poor {
    border-color: rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(20, 20, 40, 0.95));
}

.sky-status-poor .sky-status-rating {
    color: #ff6b6b;
}

.sky-status-poor #sky-status-score-value {
    color: #ff6b6b;
}

/* Mobile Responsiveness for Sky Status */
@media (max-width: 768px) {
    .sky-status-indicator {
        top: 5rem;
        right: 0.5rem;
        min-width: 160px;
        padding: 0.75rem;
    }
    
    .sky-status-header {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }
    
    .sky-status-content {
        gap: 0.5rem;
    }
    
    .sky-status-icon {
        font-size: 1.3rem;
    }
    
    .sky-status-rating {
        font-size: 0.85rem;
    }
    
    .sky-status-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .sky-status-indicator {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem;
        width: calc(100% - 2rem);
        min-width: auto;
    }
    
    .sky-status-header {
        font-size: 0.7rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="0.5" fill="white" opacity="0.2"/><circle cx="40" cy="70" r="1.5" fill="white" opacity="0.1"/><circle cx="90" cy="80" r="1" fill="white" opacity="0.15"/><circle cx="10" cy="90" r="0.8" fill="white" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.site-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.slogan {
    font-size: 1.3rem;
    color: #b0b0b0;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.viewer-counter-overlay .eye-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-counter-overlay .eye-outer {
    width: 35px;
    height: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.viewer-counter-overlay .eye-inner {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

.viewer-counter-overlay .viewer-count {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    min-width: 15px;
    text-align: center;
}

.viewer-counter-overlay .viewer-text {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Eye animation for overlay */
.viewer-counter-overlay .eye-outer::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 6px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.viewer-counter-overlay:hover .eye-outer {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.viewer-counter-overlay:hover .eye-inner {
    animation: blink 0.5s ease;
}

@keyframes blink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

/* All-Sky Camera Section */
.allsky-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.3);
    position: relative;
    z-index: 2;
}

.allsky-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    z-index: 3;
}

.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.image-wrapper {
    position: relative;
    width: 90%;
    max-width: 1200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.allsky-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.time-overlay {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.click-hint {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Viewer Counter Overlay */
.viewer-counter-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.viewer-counter-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.camera-info {
    text-align: center;
    max-width: 600px;
}

.camera-description {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 10px;
}

.refresh-info {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 15px;
}

.last-updated {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.camera-actions {
    text-align: center;
    margin-top: 20px;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.detections-btn, .targets-btn {
    display: inline-block;
    padding: 12px 24px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 160px;
    max-width: 200px;
}

.detections-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.targets-btn {
    background: linear-gradient(135deg, #2ed573 0%, #17b978 100%);
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

.detections-btn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    color: #ffffff;
}

.targets-btn:hover {
    background: linear-gradient(135deg, #17b978 0%, #0f9960 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.4);
    color: #ffffff;
}

.detections-btn:active, .targets-btn:active {
    transform: translateY(0);
}

/* Astronomical Timeline Section */
.astro-timeline-section {
    padding: 80px 0;
    background: rgba(15, 15, 35, 0.5);
}

.astro-timeline-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-date {
    font-size: 1.1rem;
    color: #4a90e2;
    margin: 0.5rem 0;
    font-weight: 500;
}

.timeline-subtitle {
    color: #b8b8d1;
    font-size: 1rem;
    margin: 0;
}

/* Sunset/Sunrise Indicators */
.sun-times-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1.5rem 0;
    padding: 0 2rem;
    position: relative;
}

.sun-times-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 140, 0, 0.6) 0%,
        rgba(255, 140, 0, 0.2) 20%,
        rgba(74, 144, 226, 0.3) 50%,
        rgba(255, 140, 0, 0.2) 80%,
        rgba(255, 140, 0, 0.6) 100%
    );
    border-radius: 1px;
    z-index: 1;
}

.sun-time-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 15, 35, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.sun-time-indicator:hover {
    background: rgba(15, 15, 35, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sunset-indicator {
    border-left: 4px solid #ff8c42;
}

.sunrise-indicator {
    border-left: 4px solid #ffa500;
}

.sun-icon {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sunset-icon {
    animation: sunsetGlow 3s ease-in-out infinite alternate;
}

.sunrise-icon {
    animation: sunriseGlow 3s ease-in-out infinite alternate;
}

@keyframes sunsetGlow {
    0% { text-shadow: 0 0 5px rgba(255, 140, 66, 0.5); }
    100% { text-shadow: 0 0 15px rgba(255, 140, 66, 0.8), 0 0 25px rgba(255, 107, 53, 0.4); }
}

@keyframes sunriseGlow {
    0% { text-shadow: 0 0 5px rgba(255, 165, 0, 0.5); }
    100% { text-shadow: 0 0 15px rgba(255, 165, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.4); }
}

.sun-time-info {
    text-align: center;
}

.sun-time-label {
    font-size: 0.8rem;
    color: #b8b8d1;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sun-time-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Mobile responsiveness for timeline section */
@media (max-width: 768px) {
    /* Timeline section adjustments */
    .astro-timeline-section {
        padding: 60px 0;
    }
    
    .astro-timeline-section h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .timeline-header {
        margin-bottom: 2rem;
    }
    
    .timeline-date {
        font-size: 1rem;
    }
    
    .timeline-subtitle {
        font-size: 0.9rem;
    }
    
    /* Sun times responsive */
    .sun-times-container {
        margin: 1.5rem 0 1rem 0;
        padding: 0 1rem;
    }
    
    .sun-times-container::before {
        width: 70%;
    }
    
    .sun-time-indicator {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .sun-icon {
        font-size: 1.5rem;
    }
    
    .sun-time-value {
        font-size: 1rem;
    }
    
    .sun-time-label {
        font-size: 0.7rem;
    }
    
    /* Timeline container mobile optimization */
    .timeline-container {
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 0;
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(15, 15, 35, 0.4);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .astro-timeline-section .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Celestial objects mobile layout */
    .celestial-objects {
        gap: 1rem;
        padding: 0;
        width: 100%;
    }
    
    .celestial-object {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(25, 25, 50, 0.6);
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    /* Timeline bars for tablet mobile */
    .object-timeline {
        width: calc(100% + 3rem);
        margin: 0.75rem -1.5rem;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .object-info {
        min-width: auto;
        margin-bottom: 0.75rem;
    }
    
    .object-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .object-name {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .object-extra {
        font-size: 0.8rem;
    }
    
    .object-timeline {
        height: 25px;
        margin: 0.5rem 0;
    }
    
    .visibility-bar {
        height: 6px;
    }
    
    .rise-marker, .set-marker {
        width: 8px;
        height: 8px;
    }
    
    .object-times {
        gap: 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Timeline legend mobile */
    .timeline-legend {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-color {
        width: 12px;
        height: 12px;
    }
    
    /* Timeline info mobile */
    .timeline-info {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .timeline-info p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Clean mobile timeline layout */
    .astro-timeline-section {
        padding: 30px 0;
        width: 100%;
        margin: 0;
        position: relative;
        left: 0;
        right: 0;
    }
    
    .astro-timeline-section .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        left: 0;
        transform: none;
    }
    
    .astro-timeline-section h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .timeline-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .timeline-date {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-subtitle {
        font-size: 0.8rem;
        color: #888;
    }
    
    /* Clean sun times grid */
    .sun-times-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
    }
    
    .sun-times-container::before {
        display: none;
    }
    
    .sun-time-indicator {
        padding: 1rem;
        text-align: center;
        border-radius: 12px;
        background: rgba(25, 25, 50, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sun-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .sun-time-info {
        text-align: center;
    }
    
    .sun-time-label {
        font-size: 0.7rem;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }
    
    .sun-time-value {
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
    }
    
    /* Completely hide timeline on mobile */
    .timeline-container {
        background: transparent;
        padding: 0;
        margin: 1rem 0;
        border: none;
        width: 100%;
        max-width: 100%;
        position: static;
        transform: none;
        overflow: hidden;
        left: 0;
        right: 0;
    }
    
    .time-axis {
        display: none !important;
    }
    
    .time-labels {
        display: none !important;
    }
    
    .time-line {
        display: none !important;
    }
    
    .current-time-indicator {
        display: none !important;
    }
    
    .night-indicator {
        display: none !important;
    }
    
    /* Clean celestial objects list */
    .celestial-objects {
        gap: 1rem;
        margin: 1rem 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
    }
    
    .celestial-object {
        padding: 1.25rem;
        border-radius: 12px;
        background: rgba(25, 25, 50, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.15);
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        overflow: hidden;
    }
    
    .celestial-object::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(25, 25, 50, 0.05));
        pointer-events: none;
        z-index: 0;
    }
    
    .celestial-object > * {
        position: relative;
        z-index: 1;
    }
    
    .object-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
        margin: 0;
    }
    
    .object-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .object-details {
        flex: 1;
        min-width: 0;
    }
    
    .object-name {
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0 0 0.125rem 0;
        color: #ffffff;
    }
    
    .object-extra {
        font-size: 0.65rem;
        margin: 0;
        color: #b8b8d1;
        line-height: 1.2;
    }
    
    /* Mobile-specific timeline bar */
    .object-timeline {
        width: calc(100% + 2rem);
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        position: relative;
        margin: 0.5rem -1rem;
    }
    
    .object-timeline .visibility-bar {
        height: 100%;
        border-radius: 0;
        position: relative;
        width: 100%;
    }
    
    /* Show rise/set markers on the timeline */
    .object-timeline .rise-marker,
    .object-timeline .set-marker {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 12px;
        background: #ffffff;
        border-radius: 1px;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
    }
    
    /* Clean times display - overridden below */
    
    /* Hide current time indicator on mobile */
    .current-time-indicator {
        display: none;
    }
    
    /* Simplified legend */
    .timeline-legend {
        display: none; /* Hide on mobile for simplicity */
    }
    
    /* Clean timeline info - overridden below */
    
    /* Clean timeline info styling */
    .timeline-info {
        text-align: center;
        margin-top: 2rem;
        padding: 1rem;
        background: rgba(25, 25, 50, 0.4);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: auto;
        position: static;
        transform: none;
        box-sizing: border-box;
    }
    
    .timeline-info p {
        font-size: 0.8rem;
        margin: 0.5rem 0;
        color: #888;
        line-height: 1.4;
    }
    
    .timeline-info p:first-child {
        color: #fff;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }
    
    .timeline-info p:last-child {
        color: #4a90e2;
        margin-top: 0.75rem;
        margin-bottom: 0;
    }
    
    /* Clean styling for missing elements */
    .object-name {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #ffffff;
    }
    
    .object-extra {
        font-size: 0.75rem;
        color: #888;
        line-height: 1.3;
        margin: 0;
    }
    
    /* Hide visibility status on mobile */
    .visibility-status {
        display: none;
    }
    
    /* Clean time display - show actual times as text */
    .object-times {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
        align-items: flex-end;
        justify-content: center;
        margin: 0;
        flex-shrink: 0;
        min-width: 85px;
    }
    
    .rise-time, .set-time {
        white-space: nowrap;
        padding: 0.4rem 0.6rem;
        background: rgba(74, 144, 226, 0.15);
        border-radius: 8px;
        font-size: 0.8rem;
        color: #ffffff;
        text-align: center;
        min-width: 70px;
        margin: 0;
        border: 1px solid rgba(74, 144, 226, 0.3);
        font-weight: 500;
    }
    
    .set-time {
        background: rgba(255, 118, 117, 0.15);
        border-color: rgba(255, 118, 117, 0.3);
    }
    
    /* Hide the arrow icons that are causing confusion */
    .rise-time::before,
    .set-time::before {
        display: none !important;
        content: none !important;
    }
    
    /* Force clean text-only times - override any icons */
    .object-times .rise-time,
    .object-times .set-time {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 8px !important;
        text-align: center !important;
        min-width: 75px !important;
        position: relative !important;
    }
    
    /* Remove ALL potential icon content */
    .object-times .rise-time::before,
    .object-times .rise-time::after,
    .object-times .set-time::before,
    .object-times .set-time::after {
        display: none !important;
        content: none !important;
        visibility: hidden !important;
    }
    
    /* Hide any generated icons that might appear */
    .object-times span[class*="icon"],
    .object-times .telescope-icon,
    .object-times .moon-icon,
    .object-times [data-icon] {
        display: none !important;
    }
}

.timeline-container {
    background: rgba(15, 15, 35, 0.6);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.time-axis {
    margin-bottom: 2rem;
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr 120px 140px;
    gap: 1rem;
    padding: 0 1rem;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    grid-column: 2;
}

.time-label {
    color: #7a7a9a;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-line {
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255, 140, 0, 0.3) 0%,     /* Sunset */
        rgba(25, 25, 60, 0.8) 25%,     /* Night */
        rgba(25, 25, 60, 0.8) 75%,     /* Night */
        rgba(255, 140, 0, 0.3) 100%    /* Sunrise */
    );
    border-radius: 2px;
    position: relative;
    grid-column: 2;
}

.current-time-indicator {
    position: absolute;
    top: -8px;
    z-index: 10;
    transform: translateX(-50%);
}

.current-time-line {
    width: 2px;
    height: 20px;
    background: #ff4757;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

.current-time-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.night-indicator {
    position: absolute;
    top: 0;
    height: 4px;
    pointer-events: none;
}

.night-overlay {
    height: 100%;
    background: rgba(25, 25, 60, 0.4);
    border-radius: 2px;
}

.celestial-objects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.celestial-object {
    display: grid;
    grid-template-columns: 200px 1fr 120px 140px;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.celestial-object:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Clickable celestial objects */
.clickable-object {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.clickable-object:hover {
    border-color: rgba(74, 144, 226, 0.5);
    background: rgba(74, 144, 226, 0.1);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.clickable-object:active {
    transform: translateY(-1px) scale(0.98);
}

.details-hint {
    font-size: 0.65rem;
    color: rgba(74, 144, 226, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
    font-weight: normal;
}

.clickable-object:hover .details-hint {
    opacity: 1;
}

.object-info {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.object-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.object-details {
    flex: 1;
    min-width: 0;
}

.object-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.object-extra {
    font-size: 0.75rem;
    color: #b8b8d1;
    line-height: 1.2;
    word-wrap: break-word;
}

.object-timeline {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.visibility-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.visibility-bar.below-horizon {
    background: rgba(255, 255, 255, 0.1);
}

.visibility-bar.always-visible {
    background: linear-gradient(90deg, #4a90e2, #74b9ff, #4a90e2);
    border: 2px solid rgba(74, 144, 226, 0.5);
    position: relative;
}

.visibility-bar.always-visible::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.3), transparent);
    border-radius: 12px;
    z-index: -1;
}

.rise-set-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.object-current-time {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 30px;
    background: #ff4757;
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(255, 71, 87, 0.8);
    z-index: 10;
    transform: translateX(-50%);
}

.rise-marker, .set-marker {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 30px;
    background: #ffffff;
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.rise-marker::after, .set-marker::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.object-times {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-size: 0.8rem;
    color: #b8b8d1;
    text-align: right;
}

.rise-time, .set-time {
    margin: 1px 0;
    white-space: nowrap;
}

.rise-time::before {
    content: '↗ ';
    color: #4a90e2;
}

.set-time::before {
    content: '↘ ';
    color: #ff7675;
}

.visibility-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-size: 0.8rem;
    color: #b8b8d1;
    text-align: right;
    white-space: nowrap;
}

.loading-timeline {
    text-align: center;
    padding: 3rem 0;
    color: #b8b8d1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8b8d1;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 6px;
}

.legend-color.visible {
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
}

.legend-color.below-horizon {
    background: rgba(255, 255, 255, 0.2);
}

.legend-color.night-time {
    background: rgba(25, 25, 60, 0.8);
}

.timeline-info {
    text-align: center;
    margin-top: 1.5rem;
    color: #7a7a9a;
    font-size: 0.9rem;
}

.timeline-info p {
    margin: 0.25rem 0;
}

/* Observatory Section */
.observatory-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.3);
}

.observatory-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    font-weight: 600;
}

.observatory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.info-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: #c0c0c0;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 100%);
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    color: #b0b0b0;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* Timeline Legend and Info */
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8b8d1;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 6px;
}

.legend-color.visible {
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
}

.legend-color.below-horizon {
    background: rgba(255, 255, 255, 0.2);
}

.legend-color.night-time {
    background: rgba(25, 25, 60, 0.8);
}

/* Clear Sky Conditions Section */
.clear-sky-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sky-conditions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sky-conditions-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.conditions-subtitle {
    font-size: 1.1rem;
    color: #b8b8d1;
    margin-bottom: 1rem;
}

.last-updated-weather {
    font-size: 0.9rem;
    color: #9393b3;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.condition-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.condition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.condition-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(74, 144, 226, 0.3);
}

.condition-card:hover::before {
    opacity: 1;
}

.featured-card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(116, 185, 255, 0.10));
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.featured-card::before {
    opacity: 1;
    background: linear-gradient(90deg, #4a90e2, #74b9ff, #4a90e2);
}

.condition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.condition-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.condition-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.condition-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.metric-unit {
    font-size: 1rem;
    color: #b8b8d1;
    font-weight: 500;
}

.rating-display {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-text {
    font-size: 1.2rem;
    color: #b8b8d1;
    font-weight: 500;
    margin-left: 0.5rem;
}

.condition-detail {
    font-size: 0.9rem;
    color: #9393b3;
    margin-bottom: 0.5rem;
}

.condition-bar {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
    border-radius: 3px;
    transition: width 0.8s ease;
    width: 0%;
}

.condition-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Astronomy Cards - Special styling for Seeing and Transparency */
.astronomy-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(186, 85, 211, 0.12));
    border: 1px solid rgba(186, 85, 211, 0.4);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.1);
}

.astronomy-card::before {
    opacity: 1;
    background: linear-gradient(90deg, #8a2be2, #ba55d3, #9370db);
    height: 4px;
}

.astronomy-card:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(186, 85, 211, 0.18));
    border-color: rgba(186, 85, 211, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.2);
}

.astronomy-card .condition-header h3 {
    background: linear-gradient(135deg, #ba55d3, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2rem;
}

.astronomy-card .condition-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(186, 85, 211, 0.4));
}

.astronomy-card .metric-value {
    background: linear-gradient(135deg, #ba55d3, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2.8rem;
}

.astronomy-card .progress-fill {
    background: linear-gradient(90deg, #8a2be2, #ba55d3, #9370db);
    box-shadow: 0 0 12px rgba(186, 85, 211, 0.4);
}

.condition-description {
    font-size: 0.8rem;
    color: #b8b0d3;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.status-excellent {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.status-good {
    background: rgba(255, 159, 67, 0.2);
    color: #ff9f43;
    border: 1px solid rgba(255, 159, 67, 0.3);
}

.status-fair {
    background: rgba(255, 206, 84, 0.2);
    color: #ffce54;
    border: 1px solid rgba(255, 206, 84, 0.3);
}

.status-poor {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Weather Alerts */
.weather-alerts {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.alert-header {
    margin-bottom: 1rem;
}

.alert-header h3 {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin: 0;
}

.alert-content {
    color: #ffcdd2;
    line-height: 1.5;
}

/* Hourly Sky Quality Forecast */
.hourly-forecast-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

.hourly-forecast-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forecast-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.hourly-forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.loading-forecast {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0;
    color: #b8b8d1;
}

.hourly-forecast-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hourly-forecast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hourly-forecast-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(74, 144, 226, 0.3);
}

.hourly-forecast-item:hover::before {
    opacity: 1;
}

.forecast-date {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(74, 144, 226, 0.15));
    border: 1px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.forecast-time {
    font-size: 0.9rem;
    color: #9393b3;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.forecast-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.forecast-score {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.forecast-rating {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.forecast-details {
    font-size: 0.75rem;
    color: #9393b3;
    line-height: 1.3;
}

.forecast-detail-item {
    margin-bottom: 0.25rem;
}

/* Hourly Forecast Status Colors */
.hourly-forecast-item.forecast-excellent::before {
    background: linear-gradient(90deg, #2ed573, #54a0ff);
    opacity: 1;
}

.hourly-forecast-item.forecast-excellent .forecast-score {
    color: #2ed573;
}

.hourly-forecast-item.forecast-excellent .forecast-rating {
    color: #2ed573;
}

.hourly-forecast-item.forecast-good::before {
    background: linear-gradient(90deg, #ff9f43, #ffce54);
    opacity: 1;
}

.hourly-forecast-item.forecast-good .forecast-score {
    color: #ff9f43;
}

.hourly-forecast-item.forecast-good .forecast-rating {
    color: #ff9f43;
}

.hourly-forecast-item.forecast-fair::before {
    background: linear-gradient(90deg, #ffce54, #feca57);
    opacity: 1;
}

.hourly-forecast-item.forecast-fair .forecast-score {
    color: #ffce54;
}

.hourly-forecast-item.forecast-fair .forecast-rating {
    color: #ffce54;
}

.hourly-forecast-item.forecast-poor::before {
    background: linear-gradient(90deg, #ff6b6b, #ff5252);
    opacity: 1;
}

.hourly-forecast-item.forecast-poor .forecast-score {
    color: #ff6b6b;
}

.hourly-forecast-item.forecast-poor .forecast-rating {
    color: #ff6b6b;
}

/* Current Time Indicator */
.hourly-forecast-item.current-time {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(116, 185, 255, 0.15));
    border: 2px solid rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    position: relative;
}

.hourly-forecast-item.current-time::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #4a90e2, #74b9ff, #4a90e2);
    border-radius: 16px;
    z-index: -1;
    animation: currentTimePulse 2s ease-in-out infinite;
}

@keyframes currentTimePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hourly-forecast-item.current-time .forecast-date {
    color: #4a90e2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hourly-forecast-item.current-time .forecast-time {
    color: #ffffff;
    font-weight: 600;
}

/* Special time period styling for forecast */
.hourly-forecast-item.sunset-period {
    border-left: 4px solid #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 0, 0.05));
}

.hourly-forecast-item.sunrise-period {
    border-left: 4px solid #ffa500;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.hourly-forecast-item.midnight-period {
    border-left: 4px solid #4a4a8a;
    background: linear-gradient(135deg, rgba(74, 74, 138, 0.1), rgba(25, 25, 60, 0.05));
}

.forecast-special-time {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #666;
    text-align: center;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness for Hourly Forecast */
@media (max-width: 768px) {
    .hourly-forecast-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .hourly-forecast-item {
        padding: 1rem;
    }
    
    .forecast-icon {
        font-size: 1.5rem;
    }
    
    .forecast-score {
        font-size: 1.5rem;
    }
    
    .forecast-rating {
        font-size: 0.7rem;
    }
    
    .forecast-details {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hourly-forecast-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hourly-forecast-section {
        padding: 1.5rem;
        margin-top: 0;
        margin-bottom: 2rem;
    }
}

/* Viewing Recommendations */
.viewing-recommendations {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
}

.viewing-recommendations h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.viewing-recommendations h3::before {
    content: '🔭';
    font-size: 1.2rem;
}

.recommendations-content {
    color: #b8b8d1;
    line-height: 1.6;
}

.loading-recommendations {
    text-align: center;
    padding: 2rem 0;
    color: #b8b8d1;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.recommendation-item.excellent {
    border-left-color: #2ed573;
}

.recommendation-item.good {
    border-left-color: #ff9f43;
}

.recommendation-item.fair {
    border-left-color: #ffce54;
}

.recommendation-item.poor {
    border-left-color: #ff6b6b;
}

.recommendation-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.recommendation-text {
    flex: 1;
}

.recommendation-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.recommendation-description {
    font-size: 0.9rem;
    color: #9393b3;
}

/* Responsive Design for Clear Sky Section */
@media (max-width: 768px) {
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-card {
        grid-column: span 1;
    }
    
    .sky-conditions-header h2 {
        font-size: 2rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .rating-display {
        font-size: 2.5rem;
    }
    
    .condition-card {
        padding: 1.25rem;
    }
    
    .viewing-recommendations {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .clear-sky-section {
        padding: 3rem 0;
    }
    
    .condition-header h3 {
        font-size: 1rem;
    }
    
    .metric-value {
        font-size: 1.8rem;
    }
    
    .rating-display {
        font-size: 2rem;
    }
}

/* Responsive Design */
/* Large screens (PC) - 1200px and up */
@media (min-width: 1200px) {
    .image-wrapper {
        width: 90%;
        max-width: 1400px;
    }
}

/* Desktop and large tablets - 992px to 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    .image-wrapper {
        width: 90%;
        max-width: 1000px;
    }
}

/* Tablets - 768px to 991px */
@media (max-width: 991px) and (min-width: 768px) {
    .image-wrapper {
        width: 90%;
        max-width: 800px;
    }
    
    .site-title {
        font-size: 3rem;
    }
    
    .slogan {
        font-size: 1.2rem;
    }
    
    .viewer-counter-overlay {
        bottom: 12px;
        right: 12px;
        padding: 6px 10px;
    }
    
    .viewer-counter-overlay .eye-outer {
        width: 32px;
        height: 20px;
    }
    
    .viewer-counter-overlay .eye-inner {
        width: 20px;
        height: 20px;
    }
    
    .viewer-counter-overlay .viewer-count {
        font-size: 0.7rem;
    }
    
    .viewer-counter-overlay .viewer-text {
        font-size: 0.7rem;
    }
}

/* Small tablets and large phones - 576px to 767px */
@media (max-width: 767px) and (min-width: 576px) {
    .site-title {
        font-size: 2.5rem;
    }
    
    .slogan {
        font-size: 1.1rem;
    }
    
    .image-wrapper {
        width: 92%;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .allsky-section,
    .astro-timeline-section,
    .observatory-section {
        padding: 50px 0;
    }
    
    /* Timeline improvements for medium mobile screens */
    .astro-timeline-section {
        padding: 50px 0;
        overflow-x: hidden;
    }
    
    .astro-timeline-section h2 {
        font-size: 2.2rem;
    }
    
    .timeline-container {
        padding: 1.5rem;
        margin: 0 0.25rem;
    }
    
    .time-axis {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .time-labels {
        grid-column: 1;
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .time-line {
        grid-column: 1;
        margin-bottom: 1.5rem;
    }
    
    .celestial-objects {
        gap: 1rem;
    }
    
    .celestial-object {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .object-info {
        min-width: auto;
        margin-right: 0;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .object-icon {
        font-size: 1.3rem;
        width: 38px;
        height: 38px;
    }
    
    .object-name {
        font-size: 1.05rem;
    }
    
    .object-extra {
        font-size: 0.8rem;
    }
    
    .object-timeline {
        margin: 0.5rem 0;
        height: 28px;
    }
    
    .visibility-bar {
        height: 7px;
    }
    
    .object-times {
        align-items: center;
        flex-direction: row;
        justify-content: space-around;
        min-width: auto;
        gap: 1rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .timeline-legend {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .legend-item {
        font-size: 0.85rem;
    }
    
    .timeline-info {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .timeline-info p {
        font-size: 0.9rem;
    }
    
    .observatory-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile phones - 575px and below */
@media (max-width: 575px) {
    .site-title {
        font-size: 2rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .image-wrapper {
        width: 95%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .allsky-section,
    .astro-timeline-section,
    .observatory-section {
        padding: 40px 0;
    }
    
    .observatory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Adjust overlay text for mobile */
    .time-overlay {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .click-hint {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Mobile viewer counter overlay */
    .viewer-counter-overlay {
        bottom: 10px;
        right: 10px;
        padding: 5px 8px;
        gap: 6px;
    }
    
    .viewer-counter-overlay .eye-outer {
        width: 28px;
        height: 18px;
    }
    
    .viewer-counter-overlay .eye-inner {
        width: 18px;
        height: 18px;
    }
    
    .viewer-counter-overlay .viewer-count {
        font-size: 0.65rem;
    }
    
    .viewer-counter-overlay .viewer-text {
        font-size: 0.65rem;
    }
    
    .viewer-counter-overlay .eye-outer::before {
        top: 1px;
        left: 5px;
        width: 3px;
        height: 3px;
    }
    
    /* Mobile camera actions */
    .camera-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .detections-btn, .targets-btn {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Enhanced Lightbox Styles with Fullscreen Support */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
}

/* Force remove any browser default fullscreen borders */
.lightbox-modal:fullscreen,
.lightbox-modal:-webkit-full-screen,
.lightbox-modal:-moz-full-screen,
.lightbox-modal.fullscreen-active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* More aggressive border removal for all fullscreen elements */
.lightbox-modal:fullscreen *,
.lightbox-modal:-webkit-full-screen *,
.lightbox-modal:-moz-full-screen *,
.lightbox-modal.fullscreen-active * {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Force fullscreen image to be truly edge-to-edge */
.lightbox-modal:fullscreen .lightbox-image,
.lightbox-modal:-webkit-full-screen .lightbox-image,
.lightbox-modal:-moz-full-screen .lightbox-image,
.lightbox-modal.fullscreen-active .lightbox-image {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    object-fit: cover !important;
    z-index: 10000 !important;
}

.lightbox-modal.fullscreen-active {
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: none;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.lightbox-modal:fullscreen {
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: none;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.lightbox-modal:-webkit-full-screen {
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: none;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.lightbox-modal:-moz-full-screen {
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: none;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

/* Ensure body has no margins in fullscreen */
body:has(.lightbox-modal.fullscreen-active),
body:has(.lightbox-modal:fullscreen),
body:has(.lightbox-modal:-webkit-full-screen),
body:has(.lightbox-modal:-moz-full-screen) {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.lightbox-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Fullscreen modal alignment */
.lightbox-modal.fullscreen-active.active,
.lightbox-modal:fullscreen.active,
.lightbox-modal:-webkit-full-screen.active,
.lightbox-modal:-moz-full-screen.active {
    align-items: stretch;
    justify-content: stretch;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fullscreen content container */
.lightbox-modal.fullscreen-active .lightbox-content,
.lightbox-modal:fullscreen .lightbox-content,
.lightbox-modal:-webkit-full-screen .lightbox-content,
.lightbox-modal:-moz-full-screen .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10001;
}

/* Fullscreen close button positioning */
.lightbox-modal.fullscreen-active .lightbox-close,
.lightbox-modal:fullscreen .lightbox-close,
.lightbox-modal:-webkit-full-screen .lightbox-close,
.lightbox-modal:-moz-full-screen .lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10003;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.6;
    transition: opacity 1s ease, background 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

/* Simplified auto-hide close button in fullscreen */
.lightbox-modal.fullscreen-active.hide-ui .lightbox-close {
    opacity: 0 !important;
    /* Keep pointer events enabled so button remains clickable when hidden */
    pointer-events: auto !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui) .lightbox-close {
    opacity: 0.6 !important;
    pointer-events: auto !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui):hover .lightbox-close,
.lightbox-modal.fullscreen-active:not(.hide-ui) .lightbox-close:hover {
    opacity: 1 !important;
    background: rgba(255, 0, 0, 0.8) !important;
    transform: scale(1.1) !important;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    max-width: 100%;
    max-height: calc(95vh - 80px);
}

.lightbox-modal.fullscreen-active .lightbox-image-container,
.lightbox-modal:fullscreen .lightbox-image-container,
.lightbox-modal:-webkit-full-screen .lightbox-image-container,
.lightbox-modal:-moz-full-screen .lightbox-image-container {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
}

.lightbox-modal.fullscreen-active .lightbox-image,
.lightbox-modal:fullscreen .lightbox-image,
.lightbox-modal:-webkit-full-screen .lightbox-image,
.lightbox-modal:-moz-full-screen .lightbox-image {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.3s ease;
    cursor: grab;
}

.lightbox-image:active {
    cursor: grabbing;
}

.lightbox-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

/* Fullscreen overlay positioning */
.lightbox-modal.fullscreen-active .lightbox-overlay,
.lightbox-modal:fullscreen .lightbox-overlay,
.lightbox-modal:-webkit-full-screen .lightbox-overlay,
.lightbox-modal:-moz-full-screen .lightbox-overlay {
    position: fixed;
    top: 30px;
    left: 30px;
    right: 30px;
    z-index: 10002;
    opacity: 0.8;
    transition: opacity 1s ease;
}

/* Simplified auto-hide overlay in fullscreen */
.lightbox-modal.fullscreen-active.hide-ui .lightbox-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui) .lightbox-overlay {
    opacity: 0.8 !important;
    pointer-events: auto !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui):hover .lightbox-overlay {
    opacity: 1 !important;
}

.lightbox-timestamp {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auto-update-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    animation: pulse 2s infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.lightbox-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Fullscreen controls positioning */
.lightbox-modal.fullscreen-active .lightbox-controls,
.lightbox-modal:fullscreen .lightbox-controls,
.lightbox-modal:-webkit-full-screen .lightbox-controls,
.lightbox-modal:-moz-full-screen .lightbox-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.6;
    transition: opacity 1s ease;
}

/* Simplified auto-hide controls in fullscreen */
.lightbox-modal.fullscreen-active.hide-ui .lightbox-controls {
    opacity: 0 !important;
    pointer-events: none !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui) .lightbox-controls {
    opacity: 0.6 !important;
    pointer-events: auto !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui):hover .lightbox-controls,
.lightbox-modal.fullscreen-active:not(.hide-ui) .lightbox-controls:hover {
    opacity: 1 !important;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    min-width: 55px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.zoom-btn:active {
    transform: translateY(0);
}

.lightbox-help {
    margin-top: 15px;
    text-align: center;
    opacity: 0.8;
}

/* Fullscreen help positioning */
.lightbox-modal.fullscreen-active .lightbox-help,
.lightbox-modal:fullscreen .lightbox-help,
.lightbox-modal:-webkit-full-screen .lightbox-help,
.lightbox-modal:-moz-full-screen .lightbox-help {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 10002;
    opacity: 0.8;
    transition: opacity 1s ease;
}

/* Simplified auto-hide system for fullscreen UI */
.lightbox-modal.fullscreen-active.hide-ui .lightbox-help {
    opacity: 0 !important;
    pointer-events: none !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui) .lightbox-help {
    opacity: 0.8 !important;
    pointer-events: auto !important;
}

.lightbox-modal.fullscreen-active:not(.hide-ui):hover .lightbox-help {
    opacity: 1 !important;
}

.lightbox-help p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile navigation and lightbox adjustments */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide nav menu by default on mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
        z-index: 1000;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Show nav menu when active */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 2rem;
    }
    
    /* Mobile dropdown styling */
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
    
    /* Mobile dropdown menu */
    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown-item {
        padding: 0.75rem 2.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .dropdown-arrow {
        font-size: 0.7rem;
    }

    /* Enhanced mobile lightbox controls for better touch experience */
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 3.5rem;
        height: 3.5rem;
        line-height: 3.5rem;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
    }
    
    .lightbox-close:active {
        transform: scale(0.95);
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .lightbox-controls {
        padding: 1rem;
        gap: 0.75rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(15px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .zoom-btn {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        min-width: 3.5rem;
        min-height: 3.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .zoom-btn:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
    
    .lightbox-timestamp {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .lightbox-help {
        padding: 0.75rem 1rem;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .lightbox-help p {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Improved touch targets for mobile */
    .lightbox-image {
        touch-action: pan-x pan-y pinch-zoom;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        -webkit-user-drag: none;
    }
    
    /* Better mobile fullscreen experience */
    .lightbox-modal.fullscreen-active {
        background: #000000 !important;
    }
    
    .lightbox-modal.fullscreen-active .lightbox-image {
        max-width: 100vw !important;
        max-height: 100vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }
    
    /* Mobile-specific fullscreen controls positioning */
    .lightbox-modal.fullscreen-active .lightbox-controls {
        bottom: 2rem;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .lightbox-modal.fullscreen-active .zoom-btn {
        min-width: 4rem;
        min-height: 4rem;
        font-size: 1.3rem;
    }
    
    .lightbox-modal.fullscreen-active .lightbox-close {
        width: 4rem;
        height: 4rem;
        font-size: 2.2rem;
        line-height: 4rem;
    }
    
    .lightbox-modal.fullscreen-active .lightbox-help {
        bottom: 8rem;
        padding: 1rem 1.5rem;
    }
}

/* Weather Icon Overlay System */
.icon-stack {
    position: relative;
    display: inline-block;
    width: 2.2em;
    height: 2.2em;
    font-size: 2em; /* Make the whole icon bigger */
}

.base-icon {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-size: 1em;
}

.cloud-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;   /* Center vertically */
    justify-content: center; /* Center horizontally */
    font-size: 1.2em;      /* Make the cloud bigger */
    z-index: 2;
    opacity: 0.85;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    pointer-events: none;
    transition: font-size 0.2s;
}

.cloud-overlay.heavy {
    opacity: 0.9;
    font-size: 0.8em;
}

.cloud-overlay.light {
    opacity: 0.7;
    font-size: 0.6em;
}

.base-icon.dimmed {
    opacity: 0.4;
    filter: brightness(0.6);
}

/* Forecast icon adjustments */
.forecast-icon .icon-stack {
    font-size: 1.8rem;
}

/* Sky status icon adjustments */
.sky-status-icon .icon-stack {
    font-size: 1.2rem;
}

/* Timeline Error States */
.timeline-error {
    text-align: center;
    padding: 2rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    margin: 1rem 0;
}

.timeline-error .error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeline-error p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.retry-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: #357abd;
}

/* Enhanced celestial object visibility status */
.visibility-status.visible {
    color: #4ecdc4;
    font-weight: 600;
}

.visibility-status.below-horizon {
    color: #666;
    font-style: italic;
}

.no-rise-set {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

/* Rise/set time styling improvements */
.rise-time, .set-time {
    font-size: 0.85rem;
    font-weight: 500;
}

.rise-time {
    color: #4ecdc4;
}

.set-time {
    color: #ff9f40;
}

/* Solar System Pages Styles */
.planets-section, .moons-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.3);
    position: relative;
    z-index: 2;
}

.planets-section h2, .moons-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    z-index: 3;
}

.planets-grid, .moons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.planet-card, .moon-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.planet-card::before, .moon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.planet-card:hover, .moon-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.planet-card:hover::before, .moon-card:hover::before {
    opacity: 1;
}

.planet-header, .moon-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.planet-symbol, .moon-symbol {
    font-size: 3.5rem;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.planet-info, .moon-info {
    flex: 1;
    min-width: 0;
}

.planet-name, .moon-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.planet-type {
    font-size: 0.9rem;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    background: rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    display: inline-block;
}

.moon-parent {
    font-size: 0.9rem;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.planet-description, .moon-description {
    color: #b8b8d1;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}

/* New organized stats layout */
.planet-stats {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-group:last-child {
    margin-bottom: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item.rings {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-label {
    color: #9393b3;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.planet-facts, .moon-facts {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.planet-facts h4, .moon-facts h4 {
    color: #4a90e2;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.planet-facts h4::before, .moon-facts h4::before {
    content: '💡';
    font-size: 1.1rem;
}

.planet-facts ul, .moon-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.planet-facts li, .moon-facts li {
    color: #b8b8d1;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 1.5rem;
}

.planet-facts li:last-child, .moon-facts li:last-child {
    border-bottom: none;
}

.planet-facts li::before, .moon-facts li::before {
    content: '✦';
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Planet link styling */
.planet-link {
    text-align: center;
    padding: 1rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.planet-card:hover .planet-link {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateY(-2px);
}

.link-text {
    color: #4a90e2;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loading-planets, .loading-moons {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: #b8b8d1;
}

.loading-planets .loading-spinner, .loading-moons .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Moons List Styles */
.moons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.moon-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.moon-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 144, 226, 0.3);
}

.moon-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.moon-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.moon-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.moon-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.moon-stat .stat-label {
    font-size: 0.85rem;
    color: #b8b8d1;
    font-weight: 500;
}

.moon-stat .stat-value {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.moon-discovery {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9393b3;
    margin-top: 0.25rem;
}

.discovery-date {
    font-weight: 600;
    color: #4a90e2;
}

.discoverer {
    font-style: italic;
}

/* Responsive Design for Solar System Pages */
@media (max-width: 768px) {
    .planets-grid, .moons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .planet-card, .moon-card {
        padding: 1.5rem;
    }
    
    .planet-header, .moon-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .planet-symbol, .moon-symbol {
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }
    
    .planet-name, .moon-name {
        font-size: 1.5rem;
    }
    
    .stat-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .moon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .moon-stats {
        justify-content: center;
        width: 100%;
    }
    
    .moon-discovery {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .planets-section, .moons-section {
        padding: 60px 0;
    }
    
    .planet-card, .moon-card {
        padding: 1.25rem;
    }
    
    .planet-symbol, .moon-symbol {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .planet-name, .moon-name {
        font-size: 1.2rem;
    }
    
    .planet-facts, .moon-facts {
        padding: 1rem;
    }
}