/*
Singapore Weather Application
Created using Kiro CLI on 28 Dec 2025
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    min-height: 100vh;
    color: #333;
    transition: all 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
}

.header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

body.dark-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
}

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

h1 {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

p {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.forecast-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.forecast-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.forecast-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.forecast-btn.active {
    background: white;
    color: #0984e3;
}

.loading, .error {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.loading {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.hidden {
    display: none;
}

.forecast-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .forecast-section {
    background: #34495e;
    color: #ecf0f1;
}

body.dark-mode .area-card {
    background: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode .area-card:hover {
    background: #1a252f;
}

body.dark-mode .region-item {
    background: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode .day-card {
    background: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode .time-period-section {
    color: #ecf0f1;
}

body.dark-mode .area-name,
body.dark-mode .region-name,
body.dark-mode .day-date {
    color: #3498db !important;
}

body.dark-mode .area-forecast,
body.dark-mode .region-forecast,
body.dark-mode .day-forecast,
body.dark-mode .day-summary {
    color: #bdc3c7 !important;
}

body.dark-mode .forecast-period {
    color: #3498db !important;
}

body.dark-mode .time-period-header {
    background: #2980b9;
}

.forecast-section h2 {
    margin-bottom: 20px;
    color: #0984e3;
    text-align: center;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.area-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border-left: 4px solid #0984e3;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.area-card:hover {
    background: #e9ecef;
}

.area-name {
    font-weight: bold;
    color: #0984e3;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.area-forecast {
    color: #666;
    font-size: 0.85rem;
}

.area-time {
    font-size: 0.9rem;
    color: #999;
}

.general-info {
    background: #1565c0;
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.general-info p {
    margin-bottom: 10px;
}

.general-info h3 {
    margin-bottom: 15px;
}

.time-period-section {
    margin-bottom: 25px;
}

.time-period-header {
    background: #0984e3;
    color: white;
    padding: 10px 15px;
    margin: 0 0 15px 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
}

.regions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.region-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.region-item .region-name {
    font-weight: bold;
    color: #0984e3;
    margin-bottom: 5px;
    text-transform: capitalize;
    font-size: 0.9rem;
}

.region-item .region-forecast {
    color: #666;
    font-size: 0.85rem;
}

.outlook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.day-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.day-date {
    font-weight: bold;
    color: #0984e3;
    margin-bottom: 10px;
}

.day-forecast {
    color: #666;
    margin-bottom: 8px;
}

.day-summary {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
}

.day-temp {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.forecast-period {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #0984e3;
    font-size: 1.1rem;
}

.weather-map {
    height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.layout-toggle {
    text-align: center;
    margin-bottom: 15px;
}

.toggle-btn {
    padding: 8px 16px;
    border: 1px solid #0984e3;
    border-radius: 20px;
    background: white;
    color: #0984e3;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #0984e3;
    color: white;
}

.areas-grid.compact .area-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.areas-grid.compact .area-name {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .forecast-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .forecast-btn {
        width: 200px;
    }
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

body.dark-mode .footer {
    color: rgba(236, 240, 241, 0.7);
}
.acknowledgement {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
}

body.dark-mode .acknowledgement {
    color: rgba(255, 255, 255, 0.5);
}
