/* Weather Section Styles */
.weather-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: white;
    padding: 20px;
    min-height: calc(100vh - 70px);
    background: linear-gradient(to bottom, rgba(64, 224, 208, 0.3), rgba(65, 105, 225, 0.3), rgba(128, 0, 128, 0.3));
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.weather-title {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #40E0D0, #4169E1, #800080);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.weather-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.weather-search:hover, .weather-search:focus-within {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.weather-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px 10px;
    width: 200px;
    outline: none;
    font-size: 1rem;
}

.weather-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.weather-search button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.weather-search button:hover {
    transform: scale(1.1);
}

.weather-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.weather-tab {
    padding: 12px 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.weather-tab:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.05);
}

.weather-tab.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.weather-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #40E0D0, #4169E1, #800080);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.weather-content {
    display: none;
    flex: 1;
}

.weather-content.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Current Weather Styles */
.current-weather {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.weather-main {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weather-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.weather-location {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-date {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.weather-temp-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.weather-temp {
    font-size: 4rem;
    font-weight: bold;
    margin-right: 20px;
    background: linear-gradient(45deg, #40E0D0, #4169E1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.weather-icon {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.weather-condition {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: -5px;
}

.temperature-scale-marker {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.temperature-scale-marker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: white;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #40E0D0;
    border-right: 4px solid #4169E1;
    border-bottom: 4px solid #800080;
    width: 60px;
    height: 60px;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 30px auto;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .weather-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .weather-search {
        width: 100%;
    }
    
    .forecast-container {
        overflow-x: auto;
        padding-bottom: 15px;
    }
    
    .forecast-day {
        min-width: 140px;
    }
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, background 0.2s ease;
}

.weather-detail:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.detail-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.4rem;
    font-weight: bold;
}

/* Forecast Styles */
.forecast-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.forecast-day {
    flex: 1;
    min-width: 140px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.forecast-date {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.forecast-icon {
    width: 60px;
    height: 60px;
    margin: 15px auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.forecast-temp {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #40E0D0, #4169E1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.forecast-condition {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Radar Map Styles */
.radar-container {
    flex: 1;
    min-height: 450px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.map-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.map-layers {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.layer-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.layer-option:hover {
    opacity: 0.8;
}

.layer-option input {
    margin-right: 10px;
}

/* Temperature Map Styles */
.temperature-gradient {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.gradient-cold {
    background: linear-gradient(to right, #9164CD, #4B44C4, #3F8FD2, #63B9E7);
    flex: 1;
}

.gradient-warm {
    background: linear-gradient(to right, #63CF6F, #F6E447, #F68847, #E93E3A, #BB2222);
    flex: 1;
}

.gradient-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
}

.temperature-scale-marker {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.temperature-scale-marker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: white;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #40E0D0;
    border-right: 4px solid #4169E1;
    border-bottom: 4px solid #800080;
    width: 60px;
    height: 60px;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 30px auto;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .weather-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .weather-search {
        width: 100%;
    }
    
    .forecast-container {
        overflow-x: auto;
        padding-bottom: 15px;
    }
    
    .forecast-day {
        min-width: 140px;
    }
}