/**
 * Hava Durumu Page Styles
 * E-Manşet Frontend
 */

/* Page Container */
.weather-detail-page {
    padding: 30px 0 60px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: calc(100vh - 200px);
    color: #fff;
}

/* City Selector */
.weather-city-selector {
    position: relative;
    max-width: 400px;
    margin: 0 auto 30px;
}

.weather-city-select {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weather-city-select:hover,
.weather-city-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.weather-city-select option {
    background: #1a1a2e;
    color: #fff;
}

.weather-city-select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.7);
}

/* Weather Hero Section */
.weather-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* Current Weather Card */
.weather-current {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-current-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-current-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.weather-current-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.weather-current-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.weather-current-icon svg {
    color: #f39c12;
}

.weather-current-temp {
    display: flex;
    align-items: flex-start;
}

.weather-temp-value {
    font-size: 72px;
    font-weight: 300;
    line-height: 1;
}

.weather-temp-unit {
    font-size: 24px;
    font-weight: 300;
    margin-top: 8px;
}

.weather-current-condition {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-condition-text {
    font-size: 20px;
    font-weight: 500;
}

.weather-condition-feels {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

/* Weather Details Grid */
.weather-current-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.weather-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.weather-detail-item svg {
    color: #f39c12;
    flex-shrink: 0;
    margin-top: 2px;
}

.weather-detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-detail-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.weather-detail-value {
    font-size: 14px;
    font-weight: 500;
}

.weather-current-minmax {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 13px;
}

.weather-current-minmax span:first-child {
    color: rgba(255, 255, 255, 0.6);
}

.weather-current-minmax span:last-child {
    font-weight: 600;
    color: #e63946;
}

/* Weather Map */
.weather-map {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
}

.weather-map-placeholder svg {
    color: rgba(255, 255, 255, 0.3);
}

.weather-map-placeholder p {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 7-Day Forecast Grid */
.weather-forecast-5day {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.weather-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.weather-forecast-day:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.weather-forecast-day-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.weather-forecast-day-icon svg {
    color: #f39c12;
}

.weather-forecast-day-temp {
    font-size: 24px;
    font-weight: 600;
}

.weather-forecast-day-temp sup {
    font-size: 14px;
    font-weight: 400;
}

/* Weather Forecast Section with Title */
.weather-forecast-section {
    margin-bottom: 40px;
}

.weather-forecast-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

/* Forecast Card - Condition */
.weather-forecast-day-condition {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
}

/* Forecast Card - Min/Max Temps */
.weather-forecast-day-temps {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.weather-forecast-temp-max {
    color: #f39c12;
    font-weight: 600;
}

.weather-forecast-temp-min {
    color: rgba(255, 255, 255, 0.5);
}

/* Forecast Day Icon - Image Support */
.weather-forecast-day-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Current Weather Icon - Image Support */
.weather-current-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* No Weather Data State */
.weather-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.weather-no-data svg {
    color: rgba(255, 255, 255, 0.3);
}

.weather-no-data h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.weather-no-data p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 400px;
}

/* Hourly Forecast Sections */
.weather-hourly-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.weather-hourly-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.weather-hourly-day {
    color: rgba(255, 255, 255, 0.6);
}

.weather-hourly-day.highlight {
    color: #f39c12;
    font-weight: 600;
}

.weather-hourly-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.weather-hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.weather-hourly-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.weather-hourly-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.weather-hourly-icon svg {
    color: #f39c12;
}

.weather-hourly-temp {
    font-size: 15px;
    font-weight: 500;
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 991px) {
    .weather-hero {
        grid-template-columns: 1fr;
    }

    .weather-map {
        min-height: 200px;
    }

    .weather-forecast-5day {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .weather-hourly-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .weather-detail-page {
        padding: 20px 0 40px;
    }

    .weather-city-selector {
        max-width: 100%;
    }

    .weather-city-select {
        padding: 12px 40px 12px 16px;
        font-size: 14px;
    }

    .weather-current {
        padding: 20px;
    }

    .weather-current-main {
        flex-wrap: wrap;
        gap: 16px;
    }

    .weather-temp-value {
        font-size: 56px;
    }

    .weather-current-details {
        grid-template-columns: 1fr;
    }

    .weather-forecast-5day {
        grid-template-columns: repeat(3, 1fr);
    }

    .weather-forecast-day {
        padding: 14px 10px;
    }

    .weather-forecast-day-name {
        font-size: 12px;
    }

    .weather-forecast-day-temp {
        font-size: 20px;
    }

    .weather-hourly-section {
        padding: 16px;
    }

    .weather-hourly-title {
        font-size: 16px;
    }

    .weather-hourly-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .weather-hourly-item {
        padding: 12px 6px;
    }

    .weather-hourly-time {
        font-size: 11px;
    }

    .weather-hourly-temp {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .weather-forecast-5day {
        grid-template-columns: repeat(2, 1fr);
    }

    .weather-hourly-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .weather-current-icon svg {
        width: 60px !important;
        height: 60px !important;
    }

    .weather-temp-value {
        font-size: 48px;
    }
}
