/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Google Ads Banner */
.ad-banner-top {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 10px 0;
    text-align: center;
}

.ad-placeholder {
    display: inline-block;
    background: #374151;
    border: 2px dashed #6b7280;
    padding: 20px 40px;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Header */
.header {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.logo p {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

.location-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: #374151;
    border: 1px solid #4b5563;
    color: #d1d5db;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #4b5563;
    border-color: #60a5fa;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    color: white;
}

/* Main Content */
.main {
    padding: 40px 0;
}

/* Current Weather Summary */
.current-weather {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.weather-summary {
    display: flex;
    align-items: center;
    gap: 40px;
}

.current-temp {
    text-align: center;
}

.temp-value {
    font-size: 4rem;
    font-weight: 700;
    color: #60a5fa;
    display: block;
    line-height: 1;
}

.weather-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 8px;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    min-width: 150px;
}

.detail-item .label {
    color: #94a3b8;
    font-weight: 500;
}

.detail-item .value {
    color: #e2e8f0;
    font-weight: 600;
}

.location-info {
    text-align: right;
}

.location-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.last-updated {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
}

/* Satellite Section */
.satellite-section {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.map-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.control-btn {
    background: #374151;
    border: 1px solid #4b5563;
    color: #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #4b5563;
}

.control-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.satellite-container {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #334155;
}

#satellite-map {
    width: 100%;
    height: 100%;
}

.satellite-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.satellite-info {
    display: flex;
    justify-content: space-between;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #374151;
    border-radius: 50%;
    border-top-color: #60a5fa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Forecast Section */
.forecast-section {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.forecast-container {
    margin-bottom: 25px;
}

.widget-placeholder {
    background: #374151;
    border: 2px dashed #6b7280;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

/* Inline Ad */
.ad-inline {
    margin-top: 25px;
    text-align: center;
}

.ad-inline .ad-placeholder {
    padding: 30px 20px;
    width: 300px;
    height: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Additional Info */
.additional-info {
    margin-bottom: 40px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.info-card h4 {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uv-value, .aqi-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.uv-number, .aqi-number {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
}

.uv-level, .aqi-level {
    font-size: 0.9rem;
    color: #34d399;
    font-weight: 500;
}

.sun-times {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
    color: #e2e8f0;
}

.moon-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.moon-icon {
    font-size: 2rem;
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid #334155;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .current-weather {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .weather-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .location-info {
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .satellite-container {
        height: 400px;
    }
    
    .temp-value {
        font-size: 3rem;
    }
    
    .location-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ad-banner-top {
        padding: 5px 0;
    }
    
    .ad-placeholder {
        padding: 15px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main {
        padding: 20px 0;
    }
    
    .current-weather {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .satellite-section,
    .forecast-section {
        padding: 20px;
    }
    
    .satellite-container {
        height: 300px;
    }
    
    .temp-value {
        font-size: 2.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}


/* Weather Widget Styles */
.weather-widget {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid #6b7280;
    border-radius: 12px;
    padding: 20px;
    color: #f1f5f9;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #6b7280;
}

.widget-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.widget-temp {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
}

.widget-forecast {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forecast-day {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(107, 114, 128, 0.3);
}

.forecast-day:last-child {
    border-bottom: none;
}

.forecast-day .day {
    font-weight: 600;
    color: #e2e8f0;
    min-width: 50px;
}

.forecast-day .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.forecast-day .high {
    font-weight: 700;
    color: #fbbf24;
    text-align: right;
}

.forecast-day .low {
    font-weight: 500;
    color: #94a3b8;
    text-align: right;
}

/* Responsive adjustments for weather widget */
@media (max-width: 768px) {
    .widget-forecast {
        gap: 8px;
    }
    
    .forecast-day {
        gap: 10px;
        padding: 8px 0;
    }
    
    .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .widget-temp {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .forecast-day {
        grid-template-columns: 1fr auto 60px 60px;
        gap: 8px;
    }
    
    .forecast-day .day {
        min-width: auto;
    }
}

