:root {
    --bg-dark: #0a0e27;
    --bg-darker: #050810;
    --text-light: #e8e6e3;
    --text-muted: #a8a6a3;
    --accent-gold: #d4a574;
    --accent-amber: #f6ab0e;
    --accent-hover: #ffbd2e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Casa Pedro background image - positioned at bottom */
body::before {
    content: '';
    position: fixed;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 70%;
    background: url('../images/casa-background.jpeg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 0.4;
    /* Gradient mask to blend the top into stars */
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
}

/* Static stars background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    z-index: 0;
    /* Limit stars to upper 60% of screen where sky is visible */
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%);
    box-shadow: 
        178px 456px #fff, 1456px 234px #fff, 234px 1789px #fff, 1823px 567px #fff,
        567px 1234px #fff, 1345px 678px #fff, 789px 345px #fff, 2345px 1123px #fff,
        345px 890px #fff, 1567px 1456px #fff, 678px 123px #fff, 1234px 2345px #fff,
        890px 678px #fff, 2456px 890px #fff, 123px 1567px #fff, 1678px 123px #fff,
        456px 2234px #fff, 2234px 456px #fff, 789px 1890px #fff, 1890px 789px #fff,
        234px 567px #fff, 1123px 1678px #fff, 567px 234px #fff, 2567px 1234px #fff,
        890px 1456px #fff, 1456px 890px #fff, 123px 2789px #fff, 2789px 123px #fff,
        678px 567px #fff, 1234px 345px #fff, 345px 1123px #fff, 1567px 2456px #fff,
        456px 1890px #fff, 1890px 456px #fff, 789px 234px #fff, 2234px 1567px #fff,
        234px 2890px #fff, 1678px 567px #fff, 567px 1234px #fff, 2456px 789px #fff,
        890px 2345px #fff, 1123px 890px #fff, 345px 1456px #fff, 1456px 2567px #fff,
        678px 2123px #fff, 2123px 678px #fff, 123px 345px #fff, 1234px 1890px #fff,
        456px 567px #fff, 1567px 234px #fff, 789px 1678px #fff, 2345px 2234px #fff,
        234px 890px #fff, 1890px 1123px #fff, 567px 2456px #fff, 2567px 567px #fff,
        890px 123px #fff, 1123px 2789px #fff, 345px 1234px #fff, 1234px 678px #fff,
        678px 2567px #fff, 2456px 345px #fff, 123px 1890px #fff, 1678px 2123px #fff,
        456px 234px #fff, 2234px 1456px #fff, 789px 2890px #fff, 1567px 890px #fff,
        234px 1123px #fff, 2789px 2456px #fff, 567px 678px #fff, 1456px 234px #fff,
        890px 1567px #fff, 1234px 2123px #fff, 345px 2234px #fff, 2567px 1890px #fff,
        678px 1678px #fff, 2123px 567px #fff, 123px 2345px #fff, 1890px 2567px #fff,
        300px 600px #fff, 900px 1200px #fff, 1500px 300px #fff, 600px 1800px #fff,
        1200px 900px #fff, 1800px 600px #fff, 400px 1400px #fff, 1000px 400px #fff,
        1600px 1000px #fff, 700px 200px #fff, 1300px 1600px #fff, 200px 700px #fff,
        800px 1100px #fff, 1400px 800px #fff, 500px 1500px #fff, 1100px 500px #fff,
        1700px 1300px #fff, 300px 2000px #fff, 900px 300px #fff, 1500px 900px #fff;
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Shooting stars - bright meteor head */
.shooting-star {
    position: fixed;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, white, rgba(255, 255, 255, 0.8));
    border-radius: 50%;
    box-shadow: 
        0 0 8px 4px rgba(255, 255, 255, 1),
        0 0 15px 8px rgba(255, 255, 255, 0.6),
        0 0 25px 12px rgba(255, 255, 255, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

/* Persistent glowing trail left behind */
.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 200, 150, 0.9) 20%,
        rgba(255, 220, 180, 0.7) 40%,
        rgba(255, 240, 200, 0.4) 70%,
        rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 0 4px rgba(255, 200, 150, 0.6);
}

/* Trail positioning based on direction */
.shooting-star::before {
    right: 5px;
    transform-origin: right center;
}

.shooting-star.reverse::before {
    right: auto;
    left: 5px;
    transform-origin: left center;
    background: linear-gradient(270deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 200, 150, 0.9) 20%,
        rgba(255, 220, 180, 0.7) 40%,
        rgba(255, 240, 200, 0.4) 70%,
        rgba(255, 255, 255, 0.1) 100%);
}

/* Fireball variant - orange/yellow plasma head */
.shooting-star.fireball {
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #ffeb3b, #ff9800, #ff5722);
    box-shadow: 
        0 0 12px 6px rgba(255, 152, 0, 1),
        0 0 25px 12px rgba(255, 152, 0, 0.7),
        0 0 40px 20px rgba(255, 87, 34, 0.4);
}

.shooting-star.fireball::before {
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 152, 0, 0) 0%,
        rgba(255, 152, 0, 0.95) 15%,
        rgba(255, 193, 7, 0.8) 35%,
        rgba(255, 235, 59, 0.5) 65%,
        rgba(255, 255, 200, 0.2) 100%);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.8);
}

.shooting-star.fireball.reverse::before {
    background: linear-gradient(270deg, 
        rgba(255, 152, 0, 0) 0%,
        rgba(255, 152, 0, 0.95) 15%,
        rgba(255, 193, 7, 0.8) 35%,
        rgba(255, 235, 59, 0.5) 65%,
        rgba(255, 255, 200, 0.2) 100%);
}

/* Trail grows and fades as meteor moves */
@keyframes growTrail {
    0% {
        width: 0;
        opacity: 1;
    }
    50% {
        width: 200px;
        opacity: 0.9;
    }
    100% {
        width: 250px;
        opacity: 0.3;
    }
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(-400px) translateY(400px);
        opacity: 0;
    }
}

@keyframes shootReverse {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(400px) translateY(400px);
        opacity: 0;
    }
}

/* Create multiple shooting stars with different delays and positions */
.shooting-star:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-duration: 3s;
    animation-delay: 2s;
}

.shooting-star:nth-child(2) {
    top: 30%;
    right: 30%;
    animation-duration: 2.5s;
    animation-delay: 5s;
}

.shooting-star:nth-child(3) {
    top: 20%;
    right: 50%;
    animation-duration: 3.5s;
    animation-delay: 8s;
}

.shooting-star:nth-child(4) {
    top: 40%;
    right: 20%;
    animation-duration: 2.8s;
    animation-delay: 11s;
}

.shooting-star:nth-child(5) {
    top: 15%;
    right: 60%;
    animation-duration: 3.2s;
    animation-delay: 14s;
}

.shooting-star:nth-child(6) {
    top: 50%;
    right: 40%;
    animation-duration: 2.7s;
    animation-delay: 17s;
}

/* Remove old star divs */
.stars, .stars2, .stars3 {
    display: none;
}

/* Header */
.site-header {
    position: relative;
    z-index: 100;
    padding: 2rem 4rem;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(246, 171, 14, 0.3);
}

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

.nav-link {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--accent-hover);
}

.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.external {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 4rem;
    animation: fadeInUp 1s ease;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 
        0 12px 40px var(--shadow),
        0 0 20px rgba(212, 165, 116, 0.3),
        inset 0 0 60px rgba(212, 165, 116, 0.1);
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(246, 171, 14, 0.5));
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.4s ease;
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.admin-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 2rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
}

/* Planet Visibility Display */
#planet-visibility {
    position: relative;
    z-index: 10;
    max-width: 500px;
    margin: 2rem auto;
}

.planet-display {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-light);
}

.planet-display-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.planet-display-date {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

.planet-sky {
    position: relative;
    height: 250px;
    background: linear-gradient(to bottom, 
        rgba(10, 20, 50, 0.9) 0%,
        rgba(30, 40, 70, 0.8) 50%,
        rgba(50, 60, 80, 0.6) 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.horizon-line {
    position: absolute;
    bottom: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(212, 165, 116, 0.6) 20%, 
        rgba(212, 165, 116, 0.6) 80%, 
        transparent);
}

.compass-markers {
    position: absolute;
    bottom: calc(50% - 25px);
    left: 0;
    right: 0;
    height: 20px;
}

.compass-mark {
    position: absolute;
    transform: translateX(-50%);
    color: rgba(212, 165, 116, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.planet-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.planet-dot:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.planet-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    white-space: nowrap;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.planet-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.planet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-size: 0.85rem;
}

.planet-name {
    font-weight: 600;
    color: var(--accent-gold);
    min-width: 120px;
}

.planet-desc {
    flex: 1;
    color: var(--text-muted);
    text-align: center;
}

.planet-time {
    color: var(--accent-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    min-width: 100px;
    text-align: right;
}

.planet-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.planet-display-none {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

@media (max-width: 768px) {
    .planet-info {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .planet-name,
    .planet-time {
        min-width: auto;
    }
}

/* Cloud Forecast Display */
#cloud-forecast {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 2rem auto;
}

.cloud-forecast {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-light);
}

.cloud-forecast-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.cloud-forecast-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

.cloud-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.cloud-hour {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cloud-hour.current {
    background: rgba(212, 165, 116, 0.1);
    border-radius: 4px;
    padding: 0.25rem;
}

.cloud-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.cloud-bar-container {
    width: 100%;
    height: 120px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.cloud-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.cloud-bar.clear {
    background: linear-gradient(to top, #4CAF50, #66BB6A);
}

.cloud-bar.partly {
    background: linear-gradient(to top, #FFC107, #FFD54F);
}

.cloud-bar.mostly {
    background: linear-gradient(to top, #FF9800, #FFB74D);
}

.cloud-bar.overcast {
    background: linear-gradient(to top, #9E9E9E, #BDBDBD);
}

.cloud-percent {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.cloud-emoji {
    font-size: 1.2rem;
}

.cloud-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.legend-color.clear {
    background: linear-gradient(to top, #4CAF50, #66BB6A);
}

.legend-color.partly {
    background: linear-gradient(to top, #FFC107, #FFD54F);
}

.legend-color.mostly {
    background: linear-gradient(to top, #FF9800, #FFB74D);
}

.legend-color.overcast {
    background: linear-gradient(to top, #9E9E9E, #BDBDBD);
}

.cloud-note {
    font-size: 0.95rem;
    color: var(--accent-gold);
    text-align: center;
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.cloud-forecast-error {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

@media (max-width: 768px) {
    .cloud-chart {
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .cloud-time {
        font-size: 0.65rem;
    }
    
    .cloud-percent {
        font-size: 0.65rem;
    }
    
    .cloud-emoji {
        font-size: 1rem;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
}

/* Cloud Cover Display */
#cloud-cover {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 2rem auto;
}

.cloud-display {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-light);
}

.cloud-display-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin: 0 0 0.3rem 0;
    text-align: center;
}

.cloud-display-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

.cloud-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cloud-avg {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.cloud-avg-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Montserrat', sans-serif;
}

.cloud-avg-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.cloud-conditions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.conditions-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.conditions-value {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.cloud-conditions.excellent {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.cloud-conditions.good {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.cloud-conditions.fair {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.cloud-conditions.poor {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.cloud-conditions.very-poor {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.cloud-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 4px;
}

.cloud-hour {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cloud-bar-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.cloud-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.cloud-bar:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.cloud-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cloud-bar.excellent {
    background: linear-gradient(to top, #27ae60, #2ecc71);
}

.cloud-bar.good {
    background: linear-gradient(to top, #2980b9, #3498db);
}

.cloud-bar.fair {
    background: linear-gradient(to top, #f39c12, #f1c40f);
}

.cloud-bar.poor {
    background: linear-gradient(to top, #d35400, #e67e22);
}

.cloud-bar.very-poor {
    background: linear-gradient(to top, #c0392b, #e74c3c);
}

.cloud-hour-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.cloud-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.excellent-bg {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.good-bg {
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.fair-bg {
    background: linear-gradient(to bottom, #f1c40f, #f39c12);
}

.poor-bg {
    background: linear-gradient(to bottom, #e67e22, #d35400);
}

.very-poor-bg {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.cloud-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.cloud-error {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

@media (max-width: 768px) {
    .cloud-summary {
        grid-template-columns: 1fr;
    }
    
    .cloud-chart {
        gap: 2px;
        padding: 0.5rem;
    }
    
    .cloud-value {
        font-size: 0.6rem;
    }
    
    .cloud-hour-label {
        font-size: 0.65rem;
    }
    
    .legend-item {
        font-size: 0.7rem;
    }
}

/* AllSky Camera Display */
#allsky-camera {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 2rem auto;
}

.allsky-display {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-light);
}

.allsky-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.allsky-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin: 0 0 0.5rem 0;
}

.allsky-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.allsky-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.allsky-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.allsky-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 165, 116, 0.3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.allsky-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.allsky-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.status-text {
    color: #2ecc71;
    font-weight: 600;
    font-size: 0.9rem;
}

.allsky-timestamp {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.allsky-timestamp span:first-child {
    color: var(--text-muted);
}

.allsky-timestamp span:last-child {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

.allsky-actions {
    text-align: center;
}

.allsky-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #c4a876);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.allsky-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.allsky-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0 0 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .allsky-display {
        padding: 1rem;
    }
    
    .allsky-title {
        font-size: 1.2rem;
    }
    
    .allsky-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .allsky-image-container {
        aspect-ratio: 1;
    }
}
