/* =================================================================
   STATIONS PAGE - Responsive Web Design
   Adapted from mobile Figma design to multi-column web layout
   ================================================================= */

/* Base Container */
.stations-page {
    background: linear-gradient(180deg, #F0F4F8 0%, #E8EDF2 100%);
    min-height: 100vh;
    padding: 24px;
}

.stations-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Location Title Card */
.location-title-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.location-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location-city {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.96);
    letter-spacing: 0.5px;
}

.location-area {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.72);
}

.location-date-controls {
    display: flex;
    gap: 8px;
}

.date-input-wrapper {
    flex: 1;
    border: 1px solid rgba(28, 28, 30, 0.12);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.date-input-text {
    flex: 1;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(28, 28, 30, 0.54);
    letter-spacing: 0.5px;
}

.date-input-icon {
    width: 24px;
    height: 24px;
}

/* Air Quality Current State Card */
.air-quality-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .air-quality-card {
        grid-column: span 8;
    }
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.96);
    margin: 0;
}

.info-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.pollutant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 16px;
}

.pollutant-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pollutant-status {
    background: rgba(2, 219, 92, 0.16);
    border-radius: 8px;
    padding-top: 30px;
    padding-bottom: 0;
    display: flex;
    align-items: flex-start;
}

.pollutant-slider {
    background: #02DB5C;
    width: 8px;
    height: 100%;
    border-radius: 8px;
}

.pollutant-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0;
    flex: 1;
}

.pollutant-label {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    line-height: 14px;
    color: rgba(0, 0, 0, 0.72);
}

.pollutant-value {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.96);
    letter-spacing: 0.1px;
}

/* Forecast Section */
.forecast-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.forecast-label {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.85);
}

.forecast-cards {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.forecast-cards::-webkit-scrollbar {
    display: none;
}

.forecast-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 44px;
}

.forecast-time {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 8px;
    line-height: 8px;
    color: rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
    text-align: center;
}

.forecast-icon {
    padding: 4px;
}

.forecast-icon img {
    width: 16px;
    height: 16px;
}

.forecast-aqi {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: right;
}

.forecast-aqi-value {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.96);
    letter-spacing: -0.5px;
}

.forecast-aqi-label {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 8px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
}

/* Slider Indicator */
.slider-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: #D1D5DB;
}

.slider-dot.active {
    width: 20px;
    height: 6px;
    background: #1882FF;
}

/* Weather Card */
.weather-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 20px 12px;
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .weather-card {
        grid-column: span 4;
    }
}

.weather-current {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.weather-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-now {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    line-height: 10px;
    color: rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.weather-condition {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.96);
    letter-spacing: 0.5px;
}

.weather-feels-like {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    line-height: 14px;
    color: rgba(0, 0, 0, 0.72);
}

.weather-temp-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.weather-temp-value {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.96);
    letter-spacing: 0.5px;
}

.weather-temp-unit {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    line-height: 14px;
    color: rgba(0, 0, 0, 0.72);
}

.weather-icon-large {
    width: 48px;
    height: 48px;
}

.weather-hourly {
    display: flex;
    gap: 4px;
    padding: 8px 0 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.weather-hourly::-webkit-scrollbar {
    display: none;
}

.weather-hourly-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.06);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 56px;
}

.weather-hourly-time {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 8px;
    line-height: 8px;
    color: rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
    text-align: center;
}

.weather-hourly-icon {
    width: 32px;
    height: 32px;
}

.weather-hourly-temp {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
}

.weather-hourly-temp-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.96);
    letter-spacing: -0.5px;
}

.weather-hourly-temp-unit {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 8px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
}

/* Map Section */
.map-section {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 1024px) {
    .map-section {
        grid-column: span 6;
    }
}

.map-title {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    line-height: 14px;
    color: rgba(0, 0, 0, 0.72);
}

.map-container {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.map-overlay {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    opacity: 0.6;
}

.map-markers {
    position: absolute;
    inset: 0;
    padding: 5px 14.802px;
}

.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.map-pin-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-pin-value {
    position: absolute;
    inset: 29.17% 12.5% 37.5% 12.5%;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 8px;
    line-height: 8px;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AQ Forecast Chart */
.aqi-forecast-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .aqi-forecast-card {
        grid-column: span 6;
    }
}

.forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forecast-title-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forecast-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.96);
    margin: 0;
}

.forecast-subtitle {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    line-height: 14px;
    color: rgba(0, 0, 0, 0.72);
}

.forecast-dropdown-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

.forecast-dropdown-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #1882FF;
    letter-spacing: 0.36px;
    text-transform: capitalize;
}

.forecast-dropdown-icon {
    width: 28px;
    height: 28px;
}

.forecast-chart-container {
    position: relative;
    width: 100%;
    height: 166px;
}

.forecast-chart-bg {
    background: #FFFFFF;
    border-radius: 8px;
    width: 100%;
    height: 150px;
}

.forecast-chart-weeks {
    display: flex;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 14px;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-top: 8px;
}

.forecast-chart-weeks > span {
    width: 40px;
    margin-left: 12px;
}

.forecast-chart-weeks > span:first-child {
    margin-left: 28px;
}

.forecast-chart-data {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 96px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.forecast-data-point {
    position: relative;
    width: 32px;
    height: 32px;
}

.forecast-data-value {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 10px;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: -0.5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* AQ History - Same structure as Forecast */
.aqi-history-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .aqi-history-card {
        grid-column: span 6;
    }
}

/* Weather Forecast List */
.station-weather-forecast-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .station-weather-forecast-card {
        grid-column: span 6;
    }
}

.weather-forecast-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0 0;
}

.weather-forecast-item {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.06);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.weather-forecast-date {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-forecast-date-main {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    color: rgba(0, 0, 0, 0.96);
    text-transform: uppercase;
}

.weather-forecast-date-label {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 8px;
    line-height: 8px;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.weather-forecast-temps {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.weather-forecast-temp {
    display: flex;
    align-items: center;
    gap: 4px;
}

.weather-forecast-temp-value {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.96);
    letter-spacing: -0.5px;
}

.weather-forecast-temp-unit {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 8px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
}

.weather-forecast-temp-indicator {
    width: 4px;
    height: 6px;
}

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

/* Health Recommendations */
.health-recommendations {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
}

.recommendations-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.72);
    letter-spacing: 0.5px;
}

.recommendations-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.recommendations-scroller::-webkit-scrollbar {
    display: none;
}

.recommendation-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 12px 12px 12px 8px;
    display: flex;
    gap: 4px;
    min-width: 192px;
}

.recommendation-icon {
    padding: 4px;
}

.recommendation-icon img {
    width: 16px;
    height: 16px;
}

.recommendation-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(0, 0, 0, 0.72);
}

.recommendation-category {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

.recommendation-text {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 10px;
    line-height: 14px;
}

.recommendation-more {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.72);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .stations-page {
        padding: 32px;
    }
    
    .pollutant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .stations-page {
        padding: 40px;
    }
    
    .stations-container {
        gap: 32px;
    }
}

/* Utility Classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 2px;
}

.gap-4 {
    gap: 4px;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}
