:root {
    --primary: #046A38; /* Pakistan green */
    --secondary: #01411C;
    --text: #333;
    --light: #f5f5f5;
    --highlight: #E8BF56; /* Golden accent */
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    color: var(--text);
    direction: ltr;
}

.weather-app {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

header h1 span {
    display: block;
    font-size: 1.2rem;
    margin-top: 5px;
}

.search-container {
    display: flex;
    margin-top: 20px;
}

#city-select {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

#search-btn {
    background: var(--highlight);
    color: var(--secondary);
    border: none;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

#search-btn:hover {
    background: #d4a93b;
}

.current-weather {
    padding: 30px;
}

.location-date h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary);
}

.location-date h2 span {
    font-size: 1.3rem;
    display: block;
    margin-top: 5px;
}

.location-date p {
    margin: 5px 0 0;
    color: #666;
}

.weather-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
    justify-content: space-between;
}

.temperature {
    display: flex;
    align-items: center;
}

.temperature img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.temperature span {
    font-size: 4rem;
    font-weight: 300;
}

.unit {
    font-size: 2rem;
    vertical-align: super;
}

.details {
    text-align: right;
}

#condition {
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: var(--secondary);
}

.extra-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    background: rgba(4, 106, 56, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
}

.detail-item i {
    margin-right: 8px;
    color: var(--primary);
}

.forecast {
    padding: 0 30px 30px;
}

.forecast h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: var(--primary);
}

.forecast-items {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.forecast-item {
    background: rgba(4, 106, 56, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.forecast-item .day {
    font-weight: bold;
    color: var(--primary);
}

.forecast-item img {
    width: 50px;
    height: 50px;
    margin: 10px auto;
}

.forecast-item .temp {
    font-size: 1.2rem;
}

.paki-landmark {
    margin-top: 30px;
}

.paki-landmark img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.paki-landmark p {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

/* RTL support for Urdu */
[lang="ur"] {
    direction: rtl;
    text-align: right;
}

/* MEDIA QUERIES */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .weather-app {
        margin: 10px;
        border-radius: 10px;
    }
    
    .weather-info {
        flex-direction: column;
        text-align: center;
    }
    
    .details {
        text-align: center;
        margin-top: 20px;
    }
    
    .temperature {
        justify-content: center;
    }
    
    .forecast-items {
        flex-wrap: wrap;
    }
    
    .forecast-item {
        min-width: 45%;
        margin-bottom: 10px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.4rem;
    }

    header h1 span {
        font-size: 1rem;
    }

    .current-weather {
        padding: 20px;
    }

    .temperature span {
        font-size: 3rem;
    }

    .temperature img {
        width: 80px;
        height: 80px;
    }

    .forecast-container {
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .forecast-item {
        width: 90%;          
        margin: 10px auto;   
    }

    .extra-details {
        grid-template-columns: 1fr;
    }
}


/* Small Mobile Phones (360px and below) */
@media (max-width: 360px) {
    .location-date h2 {
        font-size: 1.4rem;
    }
    
    .location-date h2 span {
        font-size: 1.1rem;
    }
    
    #condition {
        font-size: 1.2rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    #city-select {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    #search-btn {
        border-radius: 30px;
        padding: 10px;
    }
}
