/* Celestial Details Page Styles */

.observatory-notes {
    padding: 1rem 0 3rem;
}

.observatory-notes h2,
.observatory-notes h3 {
    margin: 0 0 0.6rem;
}

.observatory-notes p,
.observatory-notes li {
    line-height: 1.5;
}

.observatory-notes ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.observatory-notes a {
    color: #7fd3ff;
}

/* Dark space background for entire page */
body {
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 40%, #1a1a2e 100%);
    min-height: 100vh;
    color: #ffffff;
}

.celestial-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 2rem 0;
    margin-top: 80px;
    position: relative;
}

.celestial-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.3"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.5"/><circle cx="40" cy="60" r="0.8" fill="white" opacity="0.4"/><circle cx="90" cy="80" r="0.6" fill="white" opacity="0.3"/><circle cx="10" cy="90" r="0.4" fill="white" opacity="0.6"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white;
}

.object-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.object-icon-large {
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.object-info h1 {
    margin: 0;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.object-type {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
}

/* Current Status Section */
.current-status-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.8) 0%, rgba(22, 33, 62, 0.6) 100%);
    position: relative;
}

.current-status-section::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 200 200"><circle cx="50" cy="50" r="1" fill="white" opacity="0.2"/><circle cx="150" cy="80" r="0.5" fill="white" opacity="0.3"/><circle cx="80" cy="120" r="0.8" fill="white" opacity="0.2"/><circle cx="180" cy="160" r="0.6" fill="white" opacity="0.3"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.status-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-card .status-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.status-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.status-values {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.status-card.primary .status-item {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.status-item:last-child {
    border-bottom: none;
}

.status-item .label {
    font-weight: 500;
    opacity: 0.8;
}

.status-item .value {
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* Distance display styling */
.distance-primary {
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    line-height: 1.2;
}

.distance-secondary {
    font-weight: 400;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    opacity: 0.7;
    font-size: 0.85em;
    line-height: 1.2;
    margin-top: 2px;
}

/* Schedule Section */
.schedule-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.4) 0%, rgba(15, 15, 35, 0.8) 100%);
    position: relative;
}

.schedule-section::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 150 150"><circle cx="30" cy="30" r="0.8" fill="white" opacity="0.2"/><circle cx="120" cy="60" r="0.4" fill="white" opacity="0.4"/><circle cx="60" cy="90" r="0.6" fill="white" opacity="0.3"/><circle cx="130" cy="120" r="0.5" fill="white" opacity="0.2"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.schedule-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.schedule-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.loading-schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.schedule-table-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.schedule-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.schedule-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    color: #ffffff;
}

.schedule-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.schedule-table .date-cell {
    font-weight: 500;
}

.schedule-table .time-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.schedule-table .duration-cell {
    font-weight: 500;
    color: #007bff;
}

.schedule-table .altitude-cell {
    font-weight: 500;
    color: #28a745;
}

.schedule-table .distance-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    text-align: center;
    font-size: 0.85em;
    color: #ffc649;
    font-weight: 500;
}

.schedule-table .illumination-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    text-align: center;
    font-size: 0.9em;
    color: #c0c0c0;
    font-weight: 500;
}

.schedule-table .full-moon-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.schedule-table .full-moon-row td {
    color: #ffe4b5 !important;
    font-weight: 600;
}

.schedule-table .full-moon-info-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.schedule-table .full-moon-info {
    text-align: center !important;
    font-style: italic;
    color: #ffd700 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
}

.schedule-table .new-moon-row {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 40, 0.3) 100%) !important;
    border: 1px solid rgba(100, 100, 150, 0.2);
}

.schedule-table .new-moon-row td {
    color: #c8c8dc !important;
    font-weight: 500;
}

.schedule-table .new-moon-info-row {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(20, 20, 40, 0.15) 100%);
}

.schedule-table .new-moon-info {
    text-align: center !important;
    font-style: italic;
    color: #a0a0c0 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-bottom: 1px solid rgba(100, 100, 150, 0.2) !important;
}

/* Hide moon-only columns by default, but show when needed */
.moon-only {
    display: none;
}

/* Force show moon-only elements when on moon page */
body.moon-page .moon-only {
    display: table-cell !important;
}

/* Properties Section */
.properties-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(22, 33, 62, 0.7) 100%);
    position: relative;
}

.properties-section::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 180 180"><circle cx="40" cy="40" r="0.7" fill="white" opacity="0.2"/><circle cx="140" cy="70" r="0.5" fill="white" opacity="0.3"/><circle cx="70" cy="110" r="0.9" fill="white" opacity="0.2"/><circle cx="160" cy="140" r="0.4" fill="white" opacity="0.4"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.property-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.property-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.property-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.property-item:last-child {
    border-bottom: none;
}

.property-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.property-value {
    font-weight: 600;
    color: #ffffff;
    text-align: right;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    flex: 1;
}

/* Chart Section */
.chart-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.7) 0%, rgba(22, 33, 62, 0.9) 100%);
    position: relative;
}

.chart-section::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 160 160"><circle cx="35" cy="35" r="0.6" fill="white" opacity="0.2"/><circle cx="125" cy="65" r="0.4" fill="white" opacity="0.4"/><circle cx="65" cy="95" r="0.8" fill="white" opacity="0.3"/><circle cx="145" cy="125" r="0.5" fill="white" opacity="0.2"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.chart-container {
    margin-top: 2rem;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-time-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-time-label {
    color: #ffffff;
    font-weight: 500;
    margin-right: 0.5rem;
}

.time-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.time-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.current-time {
    background: rgba(0, 123, 255, 0.2);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.chart-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.chart-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.visible {
    background: #28a745;
}

.legend-color.optimal {
    background: #007bff;
}

.legend-color.below {
    background: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .object-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .object-info h1 {
        font-size: 2rem;
    }
    
    .object-icon-large {
        font-size: 3rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .schedule-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .chart-time-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .schedule-table {
        font-size: 0.8rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .celestial-hero {
        padding: 1rem 0;
    }
    
    .object-info h1 {
        font-size: 1.5rem;
    }
    
    .status-card,
    .property-card {
        padding: 1.5rem;
    }
    
    .chart-wrapper {
        padding: 1rem;
    }
}

/* Animation for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Special styling for Moon phases */
.moon-phase-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.moon-phase-icon {
    font-size: 1.2rem;
}

/* Planet-specific styling */
.planet-mercury { color: #8c7853; }
.planet-venus { color: #ffc649; }
.planet-mars { color: #cd5c5c; }
.planet-jupiter { color: #d8ca9d; }
.planet-saturn { color: #fab27b; }
.planet-uranus { color: #4fd0e7; }
.planet-neptune { color: #4b70dd; }
.planet-moon { color: #c0c0c0; }

/* Highlight today's row in schedule */
.schedule-table .today-row {
    background: rgba(0, 123, 255, 0.1);
    font-weight: 500;
}

.schedule-table .today-row td {
    border-color: rgba(0, 123, 255, 0.3);
}

/* Jupiter Moons Section */
.jupiter-moons-section {
    background: rgba(26, 35, 126, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.moons-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.moons-diagram {
    position: relative;
    height: 120px;
    background: linear-gradient(180deg, rgba(26, 35, 126, 0.1), rgba(0, 0, 0, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.jupiter-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.jupiter-icon {
    font-size: 3rem;
    color: #d2691e;
    text-shadow: 0 0 20px rgba(210, 105, 30, 0.5);
    display: block;
}

.jupiter-label {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-top: 0.5rem;
    display: block;
}

.moons-orbits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.moon-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.moon-dot.io {
    background: #ffff99;
    border-color: #ffff99;
}

.moon-dot.europa {
    background: #add8e6;
    border-color: #add8e6;
}

.moon-dot.ganymede {
    background: #daa520;
    border-color: #daa520;
}

.moon-dot.callisto {
    background: #696969;
    border-color: #696969;
}

.moon-dot.behind {
    opacity: 0.3;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.moon-dot.transit {
    border: 3px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.moon-dot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 10;
}

.moon-label {
    font-size: 10px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 5;
}

.moons-data {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.moons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.moon-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.moon-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.moon-card[data-moon="io"]:hover {
    border-color: #ffff99;
    box-shadow: 0 4px 12px rgba(255, 255, 153, 0.2);
}

.moon-card[data-moon="europa"]:hover {
    border-color: #add8e6;
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.2);
}

.moon-card[data-moon="ganymede"]:hover {
    border-color: #daa520;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2);
}

.moon-card[data-moon="callisto"]:hover {
    border-color: #696969;
    box-shadow: 0 4px 12px rgba(105, 105, 105, 0.2);
}

.moon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.moon-name {
    font-weight: bold;
    color: #e2e8f0;
}

.moon-distance {
    font-size: 0.85rem;
    color: #94a3b8;
}

.moon-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.moon-position {
    font-size: 0.9rem;
}

.position-label {
    color: #94a3b8;
}

.moon-notes {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
}

.position-indicator {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.position-indicator.east {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
}

.position-indicator.west {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.position-indicator.behind {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.3);
}

.position-indicator.transit {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Jupiter Controls Section */
.jupiter-controls-section {
    margin: 2rem 0;
}

.jupiter-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.time-controls-card,
.grs-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.card-title {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
}

.time-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.current-jupiter-time {
    background: rgba(210, 105, 30, 0.2);
    color: #ffa500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(210, 105, 30, 0.3);
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.time-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.time-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.time-btn.now-btn {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-weight: 600;
}

.time-btn.now-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
}



/* Viewing Modes */
.viewing-modes {
    margin: 2rem 0;
}

.mode-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: rgba(210, 105, 30, 0.3);
    border-color: rgba(210, 105, 30, 0.6);
    box-shadow: 0 0 20px rgba(210, 105, 30, 0.3);
}

.mode-compass {
    position: relative;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.compass-n, .compass-e, .compass-w, .compass-s {
    position: absolute;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
}

.compass-n {
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-e {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-w {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-s {
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.mode-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.mode-info strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.mode-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.moons-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.moons-legend .legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.legend-dot.east {
    background: #4ade80;
    border-color: #4ade80;
}

.legend-dot.west {
    background: #f59e0b;
    border-color: #f59e0b;
}

.legend-dot.behind {
    background: #64748b;
    border-color: #64748b;
    opacity: 0.5;
}

.legend-dot.transit {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.legend-note {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Saturn Ring System Styles */
.saturn-content {
    margin: 2rem 0;
}

.saturn-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.saturn-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.saturn-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1c40f;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ring-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ring-status-row,
.ring-opening-row,
.ring-visibility-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ring-status-row:last-child,
.ring-opening-row:last-child,
.ring-visibility-row:last-child {
    border-bottom: none;
}

.ring-label {
    color: #e2e8f0;
    font-weight: 500;
}

.ring-tilt {
    color: #f1c40f;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.ring-opening {
    color: #3498db;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.ring-visibility {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ring-visibility.excellent {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.ring-visibility.good {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.ring-visibility.fair {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.ring-visibility.poor {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.ring-visibility.edge-on {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.ring-timeline {
    color: #e2e8f0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.ring-diagram {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.ring-visual {
    margin: 2rem 0;
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    border-radius: 8px;
}

.saturn-rings {
    position: relative;
    display: inline-block;
}

.saturn-planet {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #f1c40f, #f39c12, #e67e22);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.5), inset -3px -3px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(241, 196, 15, 0.3);
}

.ring-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.ring {
    border: 4px solid rgba(241, 196, 15, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

.ring.a-ring {
    width: 180px;
    height: 180px;
    border-color: rgba(241, 196, 15, 0.9);
    border-width: 5px;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.ring.b-ring {
    width: 200px;
    height: 200px;
    border-color: rgba(241, 196, 15, 0.8);
    border-width: 6px;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.35);
}

.ring.c-ring {
    width: 160px;
    height: 160px;
    border-color: rgba(241, 196, 15, 0.6);
    border-width: 3px;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.25);
}

.ring-description {
    color: #94a3b8;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Saturn Time Controls */
.saturn-time-controls {
    margin: 2rem 0;
}

.saturn-time-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.saturn-time-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.current-saturn-time {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
}

.animation-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.animation-btn {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    color: #1a1a1a;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.animation-btn:hover {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.ring-visual.animating {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-visual.animating .ring {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive design for Jupiter moons */
@media (max-width: 768px) {
    /* Jupiter Controls Mobile Layout */
    .jupiter-controls-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .time-controls-card {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .time-buttons {
        gap: 0.4rem;
    }
    
    .current-jupiter-time {
        font-size: 0.8rem;
        min-width: 100px;
        padding: 0.4rem 0.8rem;
    }
    
    .time-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    

    
    .mode-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .moons-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .moons-diagram {
        height: 100px;
    }
    
    .jupiter-icon {
        font-size: 2.5rem;
    }
    
    .moons-grid {
        grid-template-columns: 1fr;
    }
    
    .moons-legend .legend-items {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Saturn Ring System Mobile Styles */
    .saturn-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .saturn-card {
        padding: 1rem;
    }
    
    .saturn-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .ring-info {
        gap: 0.5rem;
    }
    
    .ring-status-row,
    .ring-opening-row,
    .ring-visibility-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.4rem 0;
    }
    
    .ring-timeline {
        font-size: 0.9rem;
    }
    
    .ring-diagram {
        padding: 1.5rem;
    }
    
    .ring-visual {
        height: 200px;
        margin: 1.5rem 0;
    }
    
    .saturn-planet {
        width: 60px;
        height: 60px;
    }
    
    .ring.a-ring {
        width: 130px;
        height: 130px;
        border-width: 4px;
    }
    
    .ring.b-ring {
        width: 150px;
        height: 150px;
        border-width: 5px;
    }
    
    .ring.c-ring {
        width: 110px;
        height: 110px;
        border-width: 2px;
    }
    
    /* Saturn Time Controls Mobile */
    .saturn-time-card {
        padding: 1rem;
    }
    
    .saturn-time-buttons {
        gap: 0.3rem;
    }
    
    .current-saturn-time {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .animation-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .animation-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
} 