/* ========================================
   날씨 위젯 스타일 (간소화 버전)
   ======================================== */

.weather-info {
    padding: var(--space-2) var(--space-3);
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.1);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
    min-height: 2rem;
    flex-shrink: 0;
}

.weather-loading {
    opacity: 0.8;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

.weather-display {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    flex-shrink: 0;
}

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

.weather-temp {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.weather-description {
    opacity: 0.9;
}

.weather-details {
    display: flex;
    gap: var(--space-2);
    font-size: 0.75rem;
    opacity: 0.8;
    align-items: center;
    flex-wrap: nowrap;
    flex-grow: 1;
    justify-content: flex-end;
}

.weather-details span {
    white-space: nowrap;
}

.weather-details span:last-child {
    margin-left: var(--space-2);
}

.weather-location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.weather-error {
    color: var(--color-danger-600);
    font-size: 0.75rem;
    opacity: 0.9;
    text-align: center;
    line-height: 1.5;
}

/* 위치 권한 안내 박스 */
.weather-permission-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.08)) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    padding: var(--space-4) !important;
}

.weather-permission-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
}

.weather-permission-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.weather-permission-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.weather-permission-text strong {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.weather-permission-text p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.8;
}

.weather-permission-btn {
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.weather-permission-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.weather-permission-btn:active {
    transform: translateY(0);
}

/* 날씨 숨김 옵션 (오류 시 사용) */
.weather-info.hidden {
    display: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .weather-info {
        padding: var(--space-3);
        font-size: 0.75rem;
        width: 100%;
    }
    
    .weather-permission-box {
        padding: var(--space-3) !important;
    }
    
    .weather-permission-icon {
        font-size: 2rem;
    }
    
    .weather-permission-text strong {
        font-size: 0.8125rem;
    }
    
    .weather-permission-text p {
        font-size: 0.7rem;
    }
    
    .weather-display {
        flex-wrap: wrap;
        gap: var(--space-2);
        justify-content: center;
    }
    
    .weather-main {
        gap: var(--space-2);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .weather-icon {
        font-size: 1.5rem;
    }
    
    .weather-temp {
        font-size: 1.125rem;
    }
    
    .weather-description {
        font-size: 0.75rem;
    }
    
    .weather-details {
        gap: var(--space-2);
        font-size: 0.7rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .weather-details span:last-child {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: var(--space-1);
        font-size: 0.65rem;
        opacity: 0.7;
    }
}

/* 날씨별 배경색 */
.weather-info.sunny {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
}

.weather-info.cloudy {
    background: rgba(107, 114, 128, 0.05);
    border-color: rgba(107, 114, 128, 0.2);
}

.weather-info.rainy {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.weather-info.snowy {
    background: rgba(147, 197, 253, 0.05);
    border-color: rgba(147, 197, 253, 0.2);
}
