/* ============================================
   WEATHER INFORMATION PORTAL - BEAUTIFUL UI
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wip-weather-portal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 40px;
    background: #f0f4f8;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.wip-header {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 40%, #4a1a7a 100%);
    padding: 50px 48px 40px;
    border-radius: 32px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 26, 62, 0.3);
}

.wip-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
    animation: wipPulse 15s ease-in-out infinite;
}

.wip-header::after {
    content: '';
    position: absolute;
    bottom: -80%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
}

@keyframes wipPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
}

.wip-header h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.wip-header h1 .wip-icon {
    display: inline-block;
    animation: wipFloat 3s ease-in-out infinite;
}

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

.wip-header p {
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    font-weight: 400;
    position: relative;
    margin-bottom: 24px;
}

/* ========== SEARCH ========== */
.wip-search-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.wip-search-box {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 60px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.wip-search-box:focus-within {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.25);
}

.wip-search-box input {
    flex: 1;
    padding: 15px 28px;
    border: none;
    border-radius: 60px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    color: #1a1a2e;
    font-weight: 500;
    transition: all 0.3s;
}

.wip-search-box input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.wip-search-box input::placeholder {
    color: #a0a0b0;
    font-weight: 400;
}

.wip-search-btn {
    padding: 15px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 60px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.wip-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.45);
}

.wip-search-btn:active {
    transform: translateY(0);
}

.wip-autocomplete-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    padding: 6px 0;
}

.wip-autocomplete-list.active {
    display: block;
    animation: wipSlideDown 0.25s ease;
}

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

.wip-autocomplete-list::-webkit-scrollbar {
    width: 4px;
}

.wip-autocomplete-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.wip-autocomplete-item {
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f5;
}

.wip-autocomplete-item:last-child {
    border-bottom: none;
}

.wip-autocomplete-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

.wip-autocomplete-item .wip-ac-name {
    font-weight: 600;
    color: #1a1a2e;
}

.wip-autocomplete-item .wip-ac-country {
    color: #888;
    font-size: 13px;
}

/* ========== POPULAR SEARCHES ========== */
.wip-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    position: relative;
}

.wip-popular-label {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wip-popular-btn {
    padding: 6px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wip-popular-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ========== MAIN GRID ========== */
.wip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ========== LEFT COLUMN ========== */
.wip-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ========== RIGHT COLUMN ========== */
.wip-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ========== WEATHER CARD ========== */
.wip-weather-card {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border-radius: 28px;
    padding: 32px 34px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.wip-weather-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.wip-weather-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.wip-location-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.wip-location {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.wip-location span {
    opacity: 0.7;
    font-weight: 400;
}

.wip-temp-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 12px 0 4px;
    position: relative;
    z-index: 1;
}

.wip-temp {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.wip-condition {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 500;
}

.wip-feels {
    font-size: 15px;
    opacity: 0.75;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.wip-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

.wip-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.wip-detail-icon {
    font-size: 16px;
    opacity: 0.8;
}

.wip-detail-label {
    opacity: 0.7;
    font-weight: 400;
}

.wip-detail-value {
    font-weight: 600;
    margin-left: auto;
}

/* ========== CARDS ========== */
.wip-card {
    background: white;
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.wip-card:hover {
    box-shadow: 0 8px 35px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.wip-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== AIR QUALITY ========== */
.wip-aqi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wip-aqi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9fc;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
}

.wip-aqi-item:hover {
    background: #f0f2f8;
}

.wip-aqi-label {
    color: #666;
    font-weight: 500;
}

.wip-aqi-value {
    font-weight: 700;
    color: #1a1a2e;
}

/* ========== 7-DAY FORECAST ========== */
.wip-forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.wip-forecast-day {
    text-align: center;
    padding: 12px 6px;
    background: #f8f9fc;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: default;
}

.wip-forecast-day:hover {
    background: #f0f4ff;
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.wip-forecast-today {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 2px solid #667eea;
}

.wip-f-day {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.wip-f-icon {
    font-size: 30px;
    margin: 4px 0;
}

.wip-f-temp {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ========== FARMING ADVISORY ========== */
.wip-farming-grid {
    display: grid;
    gap: 10px;
}

.wip-farming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fc;
    border-radius: 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wip-farming-item:hover {
    background: #f0f2f8;
    transform: translateX(4px);
}

.wip-farming-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.wip-farming-text {
    flex: 1;
    color: #1a1a2e;
}

.wip-farming-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.wip-badge-good {
    background: #d4edda;
    color: #155724;
}

.wip-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.wip-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ========== REGIONAL ========== */
.wip-regional-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.wip-region {
    text-align: center;
    padding: 16px 10px;
    background: #f8f9fc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.wip-region:hover {
    background: #f0f4ff;
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.wip-region-name {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.wip-region-icon {
    font-size: 28px;
    margin: 4px 0;
}

.wip-region-temp {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ========== ALERTS ========== */
.wip-alerts-grid {
    display: grid;
    gap: 10px;
}

.wip-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.wip-alert:hover {
    transform: translateX(4px);
}

.wip-alert-danger {
    background: #fff5f5;
    border-color: #ff6b6b;
}

.wip-alert-warning {
    background: #fffbf0;
    border-color: #fcc419;
}

.wip-alert-info {
    background: #f0f8ff;
    border-color: #4dabf7;
}

.wip-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.wip-alert-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

.wip-alert-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* ========== MAP ========== */
.wip-map-container {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
}

.wip-map-container .wip-map-inner {
    height: 320px;
    background: #e8ecf1;
    position: relative;
}

.wip-map-container #wip-leaflet-map {
    width: 100% !important;
    height: 100% !important;
}

.wip-map-controls {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.wip-map-btn {
    padding: 7px 16px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wip-map-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.wip-map-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* ========== LOADING ========== */
.wip-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px;
    color: rgba(255,255,255,0.8);
}

.wip-loading.active {
    display: flex;
}

.wip-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: wipSpin 0.8s linear infinite;
}

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

.wip-error {
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
    padding: 10px 18px;
    border-radius: 12px;
    margin-top: 10px;
    display: none;
    font-size: 14px;
    font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .wip-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .wip-forecast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .wip-regional-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wip-weather-portal {
        padding: 0 16px 30px;
    }
    
    .wip-header {
        padding: 30px 20px 28px;
        border-radius: 24px;
    }
    
    .wip-header h1 {
        font-size: 28px;
    }
    
    .wip-header p {
        font-size: 15px;
    }
    
    .wip-search-box {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    
    .wip-search-box input {
        border-radius: 30px;
        padding: 14px 20px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    
    .wip-search-btn {
        justify-content: center;
        padding: 14px 20px;
        border-radius: 30px;
    }
    
    .wip-temp {
        font-size: 42px;
    }
    
    .wip-weather-card {
        padding: 24px 20px;
    }
    
    .wip-forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wip-regional-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wip-details-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wip-aqi-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wip-card {
        padding: 18px 16px;
    }
    
    .wip-popular {
        gap: 6px;
    }
    
    .wip-popular-btn {
        font-size: 12px;
        padding: 5px 14px;
    }
    
    .wip-map-container .wip-map-inner {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .wip-header {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }
    
    .wip-header h1 {
        font-size: 22px;
    }
    
    .wip-header p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .wip-weather-card {
        padding: 20px 16px;
        border-radius: 20px;
    }
    
    .wip-temp {
        font-size: 36px;
    }
    
    .wip-condition {
        font-size: 15px;
    }
    
    .wip-forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wip-regional-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wip-details-grid {
        grid-template-columns: 1fr;
    }
    
    .wip-aqi-grid {
        grid-template-columns: 1fr;
    }
    
    .wip-popular-label {
        font-size: 11px;
    }
    
    .wip-popular-btn {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .wip-map-container .wip-map-inner {
        height: 200px;
    }
    
    .wip-map-btn {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .wip-map-btn i {
        display: none;
    }
    
    .wip-location {
        font-size: 18px;
    }
    
    .wip-farming-item {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .wip-alert {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ========== UTILITY ========== */
.wip-fav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wip-fav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.wip-fav-btn.active i {
    color: #FFD700;
}