/* Weather Widget Styles (aynı stil CPU temp için de kullanılıyor) */
.weather-widget,
.cpu-temp-widget {
    position: relative;
    min-width: 140px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.weather-widget:hover,
.cpu-temp-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 220, 130, 0.3);
    transform: translateY(-2px);
}

/* Light Mode Styles */
[data-theme="light"] .weather-widget,
[data-theme="light"] .cpu-temp-widget {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .weather-widget:hover,
[data-theme="light"] .cpu-temp-widget:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(0, 220, 130, 0.4);
}

[data-theme="light"] .weather-temp {
    color: #0f172a;
}

[data-theme="light"] .weather-location {
    color: #475569;
}

[data-theme="light"] .weather-popup-desc {
    color: #475569;
}

.weather-widget.loading {
    opacity: 0.6;
    pointer-events: none;
}

.weather-widget.error {
    border-color: rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.05);
}

.weather-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.weather-info {
    flex: 1;
    min-width: 0;
}

.weather-temp {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1px;
}

.weather-location {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    line-height: 1.2;
}

.weather-details {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

.weather-widget-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 360px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.weather-widget-popup.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.weather-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .weather-popup-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.weather-popup-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

[data-theme="light"] .weather-popup-title {
    color: #0f172a;
}

.weather-popup-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="light"] .weather-popup-close {
    color: #64748b;
}

[data-theme="light"] .weather-popup-close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.weather-city-selector {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-city-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.weather-city-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.weather-city-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 220, 130, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 220, 130, 0.1);
}

.weather-city-input::placeholder {
    color: #64748b;
}

.weather-city-search-btn {
    padding: 10px 16px;
    background: rgba(0, 220, 130, 0.1);
    border: 1px solid rgba(0, 220, 130, 0.3);
    border-radius: 12px;
    color: #00dc82;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.weather-city-search-btn:hover {
    background: rgba(0, 220, 130, 0.2);
    border-color: rgba(0, 220, 130, 0.5);
    transform: scale(1.05);
}

.weather-use-location-btn {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

[data-theme="light"] .weather-use-location-btn {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #475569;
}

.weather-use-location-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-theme="light"] .weather-use-location-btn:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

.weather-popup-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .weather-popup-main {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.weather-popup-icon {
    font-size: 4.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.weather-popup-temp {
    flex: 1;
}

.weather-popup-temp-main {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 6px;
}

[data-theme="light"] .weather-popup-temp-main {
    color: #0f172a;
}

.weather-popup-desc {
    font-size: 1rem;
    color: #94a3b8;
    text-transform: capitalize;
    line-height: 1.4;
}

.weather-popup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.weather-stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.weather-stat-icon {
    font-size: 1.5rem;
    color: #00dc82;
    flex-shrink: 0;
    margin-top: 2px;
}

.weather-stat-info {
    flex: 1;
    min-width: 0;
}

.weather-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    line-height: 1.2;
}

.weather-stat-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

[data-theme="light"] .weather-stat-value {
    color: #0f172a;
}

[data-theme="light"] .weather-stat-label {
    color: #64748b;
}

[data-theme="light"] .weather-stat {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
    .weather-widget,
    .cpu-temp-widget {
        min-width: auto;
        padding: 6px 10px;
    }
    
    .weather-content {
        gap: 6px;
    }
    
    .weather-icon {
        font-size: 1.2rem;
    }
    
    .weather-temp {
        font-size: 0.9rem;
    }
    
    .weather-location {
        font-size: 0.65rem;
        max-width: 80px;
    }
    
    .weather-widget-popup {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
        padding: 20px;
    }
    
    .weather-popup-main {
        gap: 16px;
    }
    
    .weather-popup-icon {
        font-size: 3.5rem;
    }
    
    .weather-popup-temp-main {
        font-size: 2.5rem;
    }
    
    .weather-popup-stats {
        gap: 12px;
    }
    
    .weather-stat {
        padding: 10px;
        gap: 10px;
    }
}

