/* Weather Page Styles */

:root {
    --teko-primary: #ff6600;
}

.weather-search-form .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.weather-search-form .form-control {
    border: 2px solid #dee2e6;
    padding: 12px 16px;
    font-size: 1rem;
}

.weather-search-form .form-control:focus {
    border-color: var(--teko-primary, #ff6600);
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25);
}

.weather-search-form .btn {
    padding: 12px 24px;
    font-weight: 500;
}

#geoLocationStatus {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* Current Weather Card */
.weather-current-card {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.3);
}

.weather-main-icon {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.weather-temp-main {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
}

.weather-temp-main .temp-value {
    font-size: 4rem;
}

.weather-temp-main .temp-unit {
    font-size: 2rem;
    margin-left: 4px;
}

.weather-desc-main {
    font-size: 1.2rem;
    text-transform: capitalize;
}

.weather-city {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.weather-detail-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s;
}

.weather-detail-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.weather-detail-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.weather-detail-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

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

/* Weather Sections */
.weather-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.weather-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--teko-primary, #ff6600);
}

/* Hourly Forecast */
.hourly-forecast-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.hourly-forecast-container::-webkit-scrollbar {
    height: 6px;
}

.hourly-forecast-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.hourly-forecast-container::-webkit-scrollbar-thumb {
    background: var(--teko-primary, #ff6600);
    border-radius: 3px;
}

.hourly-forecast-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.hourly-item {
    flex: 0 0 auto;
    width: 70px;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hourly-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hourly-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.hourly-icon {
    width: 40px;
    height: 40px;
    margin: 0.25rem 0;
}

.hourly-temp {
    font-size: 1rem;
    font-weight: 600;
    color: var(--teko-primary, #ff6600);
}

/* Daily Forecast */
.daily-forecast-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.daily-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.2s, box-shadow 0.2s;
}

.daily-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.daily-day {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.daily-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.daily-icon {
    width: 50px;
    height: 50px;
    margin: 0.25rem 0;
}

.daily-temps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.daily-temp-max {
    font-weight: 600;
    color: #333;
}

.daily-temp-min {
    color: #6c757d;
}

.daily-desc {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Weather Footer */
.weather-footer {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
}

/* Empty State */
.weather-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.weather-empty-icon {
    font-size: 5rem;
    color: var(--teko-primary, #ff6600);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.weather-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.weather-empty-text {
    color: #6c757d;
    max-width: 400px;
    margin: 0 auto;
}

.suggested-city-btn {
    transition: all 0.2s;
}

.suggested-city-btn:hover {
    background: var(--teko-primary, #ff6600);
    color: white;
    border-color: var(--teko-primary, #ff6600);
}

/* Responsive Design */
@media (max-width: 992px) {
    .daily-forecast-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .daily-item:nth-child(n+5) {
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .weather-current-card {
        padding: 1.5rem;
    }

    .weather-main-icon {
        width: 100px;
        height: 100px;
    }

    .weather-temp-main .temp-value {
        font-size: 3rem;
    }

    .weather-temp-main .temp-unit {
        font-size: 1.5rem;
    }

    .weather-city {
        font-size: 1.5rem;
    }

    .daily-forecast-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .daily-item:nth-child(n+4) {
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
        margin-top: 0.5rem;
    }

    .hourly-item {
        width: 60px;
        padding: 0.5rem 0.25rem;
    }

    .hourly-icon {
        width: 35px;
        height: 35px;
    }
}

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

    .daily-item:nth-child(n+3) {
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
        margin-top: 0.5rem;
    }

    .hourly-item {
        width: 55px;
    }

    .weather-detail-card {
        padding: 0.75rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.weather-current-card,
.weather-section {
    animation: fadeIn 0.5s ease-out;
}

/* Loading State */
.weather-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.weather-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--teko-primary, #ff6600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
