/* 
 * 14-Day Forecast Cards - Improved Design
 * Square cards with proper border radius and compact layout
 */

/* ============================================
   FORECAST SECTION - ENHANCED
   ============================================ */

.forecast-section {
    margin: 48px 0;
}

.forecast-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forecast-section h2::before {
    content: "📅";
    font-size: 32px;
}

/* Forecast Grid - Shows all 14 days */
.forecast-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

/* Individual Forecast Card - SQUARE DESIGN */
.forecast-simple-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.25s ease;
    overflow: hidden;
    
    /* Make cards square */
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.forecast-simple-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
}

/* Day Header */
.fday-name {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.fday-date {
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 8px;
}

/* Weather Icon - Compact */
.fday-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
}

.fday-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Condition Text - Compact */
.fday-condition {
    font-size: 12px;
    color: #4B5563;
    text-align: center;
    line-height: 1.3;
    margin: 6px 0;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Temperature Display - Prominent */
.fday-temps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 8px 0 6px;
}

.ftemp-max {
    font-size: 22px;
    font-weight: 800;
    color: #EF4444;
    line-height: 1;
}

.ftemp-min {
    font-size: 22px;
    font-weight: 800;
    color: #3B82F6;
    line-height: 1;
}

.ftemp-sep {
    font-size: 18px;
    color: #D1D5DB;
    font-weight: 300;
}

/* Rain Probability - Compact */
.fday-rain {
    font-size: 12px;
    color: #6B7280;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.fday-rain::before {
    content: "💧";
    font-size: 14px;
}

/* ============================================
   RESPONSIVE - MOBILE OPTIMIZATION
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .forecast-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .forecast-simple-card {
        padding: 14px;
    }
    
    .fday-icon img {
        width: 42px;
        height: 42px;
    }
    
    .ftemp-max,
    .ftemp-min {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .forecast-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .forecast-simple-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .fday-name {
        font-size: 11px;
    }
    
    .fday-date {
        font-size: 10px;
    }
    
    .fday-icon img {
        width: 36px;
        height: 36px;
    }
    
    .fday-condition {
        font-size: 11px;
        min-height: 28px;
    }
    
    .ftemp-max,
    .ftemp-min {
        font-size: 18px;
    }
    
    .fday-rain {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .forecast-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .forecast-section h2 {
        font-size: 22px;
    }
}

/* ============================================
   7-DAY vs 14-DAY TOGGLE (Optional)
   ============================================ */

.forecast-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.forecast-toggle button {
    padding: 10px 20px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
}

.forecast-toggle button:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.forecast-toggle button.active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

/* ============================================
   ALTERNATIVE LAYOUT - COMPACT 2 ROWS
   ============================================ */

.forecast-compact-layout .forecast-simple-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.forecast-compact-layout .forecast-simple-card {
    aspect-ratio: 0.9 / 1;
}

/* Show 2 rows of 7 days each for 14-day forecast */
@media (min-width: 1024px) {
    .forecast-14day .forecast-simple-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* ============================================
   HOVER EFFECTS - ENHANCED
   ============================================ */

.forecast-simple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.forecast-simple-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   LOADING STATE
   ============================================ */

.forecast-simple-card.loading {
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   FIRST DAY HIGHLIGHT (Today)
   ============================================ */

.forecast-simple-card:first-child {
    border-color: #3B82F6;
    background: linear-gradient(135deg, #DBEAFE 0%, #ffffff 100%);
}

.forecast-simple-card:first-child .fday-name {
    color: #3B82F6;
}

/* ============================================
   WEEKEND HIGHLIGHT
   ============================================ */

.forecast-simple-card.weekend {
    background: linear-gradient(135deg, #FEF3C7 0%, #ffffff 100%);
}

.forecast-simple-card.weekend:hover {
    border-color: #F59E0B;
}
