/**
 * Weather modal styles for CryptoExpert Portal
 * Version: 1.0
 * Date: 2025-07-30
 * Weather display and modal components
 */

/* Weather Modal Styles */
.weather-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.weather-modal.hidden {
    display: none;
}

.weather-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-out;
}

.weather-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--crypto-blue));
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.weather-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.weather-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.weather-modal-body {
    padding: 2rem;
}

/* Weather Display Styles */
.weather-current {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--weather-item-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.weather-current-temp {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.weather-current-desc {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.weather-current-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.weather-detail {
    text-align: center;
    padding: 0.5rem;
}

.weather-detail-label {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* Weather Forecast Styles */
.weather-forecast-extended {
    margin-top: 2rem;
}

.weather-forecast-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.weather-forecast-list {
    display: grid;
    gap: 1rem;
}

.weather-forecast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--weather-item-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.weather-forecast-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.weather-forecast-day {
    font-weight: 600;
    color: var(--text-color);
    min-width: 80px;
}

.weather-forecast-icon {
    font-size: 1.5rem;
    margin: 0 1rem;
}

.weather-forecast-desc {
    flex: 1;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: capitalize;
}

.weather-forecast-temps {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.weather-forecast-high {
    font-weight: 600;
    color: var(--text-color);
}

.weather-forecast-low {
    color: var(--text-color);
    opacity: 0.6;
}

/* Weather Icons */
.weather-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.weather-icon.sunny {
    color: #f39c12;
}

.weather-icon.cloudy {
    color: #95a5a6;
}

.weather-icon.rainy {
    color: #3498db;
}

.weather-icon.stormy {
    color: #8e44ad;
}

.weather-icon.snowy {
    color: #ecf0f1;
}

/* Weather Loading State */
.weather-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    opacity: 0.7;
}

.weather-loading i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
    margin-bottom: 1rem;
}

/* Weather Error State */
.weather-error {
    text-align: center;
    padding: 2rem;
    color: var(--danger-color);
}

.weather-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.weather-error-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.weather-retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.weather-retry-btn:hover {
    background: var(--crypto-blue);
    transform: translateY(-2px);
}

/* Responsive Weather Styles */
@media (max-width: 768px) {
    .weather-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .weather-current-temp {
        font-size: 2.5rem;
    }
    
    .weather-current-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weather-forecast-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .weather-forecast-day {
        min-width: auto;
    }
}
