/* Dashboard Specific Styles */

/* Dashboard Container */
.dashboard-container {
    max-width: 1512px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
}

.hero-content {
    position: relative;
}

.main-aqi-card {
    background: #ea8c34;
    border-radius: 20px;
    padding: 2rem;
    color: white;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aqi-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.aqi-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.aqi-value {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
}

.aqi-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.aqi-status {
    text-align: center;
}

.status-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #ea8c34;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.aqi-details {
    flex: 1;
    margin-left: 2rem;
}

.location-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.live-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #ea8c34;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ea8c34;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* City Cards Section */
.city-cards-section {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.03);
}

.city-cards-container {
    display: flex !important;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    flex-direction: row !important;
}

.city-card {
    background: transparent;
    border-radius: 0;
    padding: 0.75rem 1rem;
    box-shadow: none;
    min-width: 200px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex: 1;
    flex-shrink: 0;
}

.city-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 43.5px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 5%, rgba(49, 52, 61, 0.25) 50%, rgba(0, 0, 0, 0) 95%);
}

.city-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.city-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #31343d;
    font-weight: 400;
    line-height: 1.2;
}

.distance {
    font-size: 0.75rem;
    color: #31343d;
    font-weight: 400;
}

.aqi-badge {
    background: #ea8c34;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.9rem;
    min-width: 75px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.aqi-badge .aqi-value {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
}

.aqi-badge .aqi-label {
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.9;
}

/* Weather Section */
.weather-section {
    margin-bottom: 2rem;
}

.weather-card {
    background: #4ba9ff;
    border-radius: 20px;
    padding: 2rem;
    color: white;
}

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

.weather-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.weather-icon img {
    width: 60px;
    height: 60px;
}

.weather-data {
    display: flex;
    gap: 2rem;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-icon-small img {
    width: 24px;
    height: 24px;
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-value {
    font-size: 1rem;
    font-weight: 600;
}

/* Map Section */
.map-section {
    margin-bottom: 2rem;
}

.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.map-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.map-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #4ba9ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.map-button img {
    width: 16px;
    height: 16px;
}

.map-canvas {
    height: 400px;
    width: 100%;
}

/* AQI Info Section */
.aqi-info-section {
    margin-bottom: 2rem;
}

.aqi-info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aqi-info-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.aqi-ranges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.aqi-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.range-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.range-info {
    display: flex;
    flex-direction: column;
}

.range-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.range-values {
    font-size: 0.8rem;
    color: #666;
}

/* AQI Range Colors */
.good .range-color { background: #59b61f; }
.moderate .range-color { background: #eec732; }
.poor .range-color { background: #ea8c34; }
.unhealthy .range-color { background: #e95478; }
.severe .range-color { background: #b33fba; }
.hazardous .range-color { background: #c92033; }

/* Responsive Design */
@media (max-width: 768px) {
    .main-aqi-card {
        flex-direction: column;
        text-align: center;
    }

    .aqi-details {
        margin-left: 0;
        margin-top: 1rem;
    }

    .weather-data {
        flex-direction: column;
        gap: 1rem;
    }

    .city-cards-container {
        flex-direction: column;
    }

    .aqi-ranges {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0 10px;
    }

    .main-aqi-card {
        padding: 1rem;
        min-height: 300px;
    }

    .aqi-circle {
        width: 150px;
        height: 150px;
    }

    .aqi-value {
        font-size: 3rem;
    }

    .location-title {
        font-size: 1.4rem;
    }

    .weather-card {
        padding: 1rem;
    }

    .aqi-info-card {
        padding: 1rem;
    }
    
    .city-cards-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .city-card {
        min-width: 100%;
        border-bottom: 1px solid rgba(49, 52, 61, 0.1);
        padding: 1rem 0;
    }
    
    .city-card:not(:last-child)::after {
        display: none;
    }
    
    .city-card:last-child {
        border-bottom: none;
    }
}