@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sora:wght@100..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
}

:root {
    /* Default background */
    --dynamic-background-app: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Weather state (Clear background) */
    --dynamic-background-clear: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);

    /* Weather state (Cloudy background) */
    --dynamic-background-cloudy: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%); 

    /* Weather state (Rainy background) */
    --dynamic-background-rainy: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #2d3436 100%);

    /* Weather state (Snowy background) */
    --dynamic-background-snowy: linear-gradient(135deg, #ddd6fe 0%, #a5b4fc 50%, #818cf8 100%);

    /* Weather state (Stormy background) */
    --dynamic-background-stormy: linear-gradient(135deg, #636e72 0%, #2d3436 50%, #000000 100%);

    --white: #fff;
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
    line-height: 1.6;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    background: var(--dynamic-background-app);
    transition: background 1s ease-in-out;
}

/* Dynamic Background */
.app.clear {
    background: var(--dynamic-background-clear);
}
.app.cloudy {
    background: var(--dynamic-background-cloudy);
}
.app.rainy {
    background: var(--dynamic-background-rainy);
}
.app.snowy {
    background: var(--dynamic-background-snowy);
}
.app.stormy {
    background: var(--dynamic-background-stormy);
}

/* Dynamic Text Colors Based on Weather */
.app.clear .title,
.app.clear .subtitle,
.app.clear .search-input,
.app.clear .search-input::placeholder,
.app.clear .temp-btn,
.app.clear .fa-map-marker-alt,
.app.clear .weather-card-main,
.app.clear .weather-details,
.app.clear .forecast-card,
.app.clear .search-btn,
.app.clear .weather-details h3,
.app.clear .forecast-title {
    color: #2d3436 !important;
}

.app.clear .search-btn {
    background: rgba(0, 0, 0, 0.1);
}

.app.clear .temp-toggle {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.app.clear .temp-range {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.app.clear .details-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.app.clear .fa-magnifying-glass {
    color: #2d3436;
}

.app.clear .search-input {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.app.clear .search-input::placeholder {
    color: rgba(45, 52, 54, 0.7) !important;
}

.app.clear .temp-btn.active {
    background: rgba(45, 52, 54, 0.9);
    color: white !important;
}

.app.clear .weather-card-main,
.app.clear .weather-details,
.app.clear .forecast-card {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.app.clear .current-temperature,
.app.clear .current-condition,
.app.clear .location,
.app.clear .date,
.app.clear .sun-time p,
.app.clear .temp-value,
.app.clear .detail-value,
.app.clear .forecast-day,
.app.clear .forecast-high {
    color: #2d3436 !important;
}

.app.clear .sun-time-label,
.app.clear .temp-label,
.app.clear .detail-label,
.app.clear .forecast-condition,
.app.clear .forecast-low {
    color: rgba(45, 52, 54, 0.8) !important;
}

/* Snowy weather adjustments */
.app.snowy .title,
.app.snowy .subtitle,
.app.snowy .forecast-title {
    color: #2d3436 !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.app.snowy .search-input {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #2d3436 !important;
}

.app.snowy .search-input::placeholder {
    color: rgba(45, 52, 54, 0.6) !important;
}

.app.snowy .temp-btn {
    color: #2d3436 !important;
}

.app.snowy .temp-btn.active {
    background: rgba(45, 52, 54, 0.8);
    color: white !important;
}

.app.snowy .weather-card-main,
.app.snowy .weather-details,
.app.snowy .forecast-card {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.app.snowy .current-temperature,
.app.snowy .current-condition,
.app.snowy .location,
.app.snowy .date,
.app.snowy .sun-time p,
.app.snowy .temp-value,
.app.snowy .detail-value,
.app.snowy .forecast-day,
.app.snowy .forecast-high {
    color: #2d3436 !important;
}

.app.snowy .sun-time-label,
.app.snowy .temp-label,
.app.snowy .detail-label,
.app.snowy .forecast-condition,
.app.snowy .forecast-low {
    color: rgba(45, 52, 54, 0.7) !important;
}

/* Enhanced contrast for stormy weather */
.app.stormy .title,
.app.stormy .subtitle,
.app.stormy .forecast-title {
    color: #ffffff !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.app.stormy .search-input {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

.app.stormy .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.app.stormy .weather-card-main,
.app.stormy .weather-details,
.app.stormy .forecast-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Improved readability for cloudy weather */
.app.cloudy .title,
.app.cloudy .subtitle,
.app.cloudy .forecast-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app.cloudy .weather-card-main,
.app.cloudy .weather-details,
.app.cloudy .forecast-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Enhanced contrast for rainy weather */
.app.rainy .title,
.app.rainy .subtitle,
.app.rainy .forecast-title {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.app.rainy .weather-card-main,
.app.rainy .weather-details,
.app.rainy .forecast-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Weather Particles */
.weather-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
}

/* Rain Particles */
.rain-particle {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(174, 194, 224, 0.8), rgba(174, 194, 224, 0.3));
    border-radius: 1px;
    animation: rainFall linear infinite;
}

@keyframes rainFall {
    0% {
        transform: translateY(-100vh) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(10deg);
        opacity: 0.3;
    }
}

/* Snow Particles */
.snow-particle {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: snowFall linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes snowFall {
    0% {
        transform: translateY(-100vh) translateX(0px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0.3;
    }
}

/* Cloud Particles */
.cloud-particle {
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    animation: cloudFloat linear infinite;
    position: relative;
}

.cloud-particle::before,
.cloud-particle::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.cloud-particle::before {
    width: 20px;
    height: 20px;
    top: -10px;
    left: 10px;
}

.cloud-particle::after {
    width: 25px;
    height: 25px;
    top: -12px;
    right: 10px;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(calc(100vw + 100px));
        opacity: 0;
    }
}

/* Clear Sky Particles (Sparkles) */
.sparkle-particle {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: sparkle ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Storm Particles (Lightning effect) */
.lightning-particle {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(147, 197, 253, 0.8), rgba(255, 255, 255, 0.3));
    border-radius: 1px;
    animation: lightning ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes lightning {
    0%, 90%, 100% {
        opacity: 0;
        transform: scaleY(0);
    }
    5%, 85% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Drizzle Particles */
.drizzle-particle {
    width: 1px;
    height: 10px;
    background: linear-gradient(to bottom, rgba(174, 194, 224, 0.6), rgba(174, 194, 224, 0.2));
    border-radius: 1px;
    animation: drizzleFall linear infinite;
}

@keyframes drizzleFall {
    0% {
        transform: translateY(-100vh) rotate(5deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(5deg);
        opacity: 0.2;
    }
}

/* Particle variations for natural randomness */
.particle:nth-child(2n) {
    animation-delay: -0.5s;
}

.particle:nth-child(3n) {
    animation-delay: -1s;
}

.particle:nth-child(4n) {
    animation-delay: -1.5s;
}

.particle:nth-child(5n) {
    animation-delay: -2s;
}

.particle:nth-child(6n) {
    animation-delay: -2.5s;
}

/* Different animation durations for variety */
.rain-particle:nth-child(odd) {
    animation-duration: 1s;
}

.rain-particle:nth-child(even) {
    animation-duration: 1.2s;
}

.snow-particle:nth-child(odd) {
    animation-duration: 3s;
}

.snow-particle:nth-child(even) {
    animation-duration: 4s;
}

.cloud-particle:nth-child(odd) {
    animation-duration: 20s;
}

.cloud-particle:nth-child(even) {
    animation-duration: 25s;
}

.sparkle-particle:nth-child(odd) {
    animation-duration: 2s;
}

.sparkle-particle:nth-child(even) {
    animation-duration: 3s;
}

.lightning-particle {
    animation-duration: 4s;
}

.drizzle-particle:nth-child(odd) {
    animation-duration: 1.5s;
}

.drizzle-particle:nth-child(even) {
    animation-duration: 1.8s;
}

/* Skeleton Loader Styles */
.loading-container {
    padding: 3rem 0;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

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

.skeleton-header {
    text-align: center;
    margin-bottom: 2rem;
}

.skeleton-title {
    height: 4rem;
    width: 300px;
    margin: 0 auto 1rem;
    border-radius: 1rem;
}

.skeleton-subtitle {
    height: 1.5rem;
    width: 250px;
    margin: 0 auto;
    border-radius: 0.75rem;
}

.skeleton-search {
    max-width: 28rem;
    margin: 0 auto 2rem;
    height: 4rem;
    border-radius: 1rem;
}

.skeleton-toggle {
    width: 120px;
    height: 3rem;
    margin: 0 auto 2rem;
    border-radius: 2rem;
}

.skeleton-weather-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    /* max-width: 1200px; */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .skeleton-weather-grid {
        grid-template-columns: 1fr;
    }
}

.skeleton-main-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
}

.skeleton-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.skeleton-location {
    height: 1.5rem;
    width: 200px;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
}

.skeleton-date {
    height: 1rem;
    width: 150px;
    border-radius: 0.5rem;
}

.skeleton-temp {
    height: 5rem;
    width: 150px;
    margin-bottom: 0.5rem;
    border-radius: 1rem;
}

.skeleton-condition {
    height: 1.5rem;
    width: 120px;
    border-radius: 0.75rem;
}

.skeleton-icon {
    height: 8rem;
    width: 8rem;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
}

.skeleton-sun-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skeleton-sun-time {
    text-align: center;
}

.skeleton-sun-label {
    height: 1rem;
    width: 80px;
    margin: 0 auto 0.5rem;
    border-radius: 0.5rem;
}

.skeleton-sun-value {
    height: 1.5rem;
    width: 60px;
    margin: 0 auto;
    border-radius: 0.75rem;
}

.skeleton-temp-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.skeleton-temp-item {
    text-align: center;
}

.skeleton-temp-label {
    height: 1rem;
    width: 40px;
    margin: 0 auto 0.5rem;
    border-radius: 0.5rem;
}

.skeleton-temp-value {
    height: 1.5rem;
    width: 50px;
    margin: 0 auto;
    border-radius: 0.75rem;
}

.skeleton-details-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.skeleton-details-title {
    height: 1.5rem;
    width: 120px;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
}

.skeleton-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.skeleton-detail-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-detail-label {
    height: 1rem;
    width: 80px;
    border-radius: 0.5rem;
}

.skeleton-detail-value {
    height: 1rem;
    width: 60px;
    border-radius: 0.5rem;
}

.skeleton-forecast-section {
    margin-top: 2rem;
    /* max-width: 1200px; */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-forecast-title {
    height: 2.5rem;
    width: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
}

.skeleton-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skeleton-forecast-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.skeleton-forecast-day {
    height: 1.5rem;
    width: 80px;
    margin: 0 auto 1rem;
    border-radius: 0.75rem;
}

.skeleton-forecast-icon {
    height: 3rem;
    width: 3rem;
    margin: 0 auto 1rem;
    border-radius: 0.5rem;
}

.skeleton-forecast-condition {
    height: 1rem;
    width: 100px;
    margin: 0 auto 1rem;
    border-radius: 0.5rem;
}

.skeleton-forecast-temp-high {
    height: 1.5rem;
    width: 50px;
    margin: 0 auto 0.25rem;
    border-radius: 0.75rem;
}

.skeleton-forecast-temp-low {
    height: 1rem;
    width: 40px;
    margin: 0 auto;
    border-radius: 0.5rem;
}

/* Responsive adjustments for skeleton */
@media (max-width: 768px) {
    .skeleton-card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .skeleton-temp {
        margin: 0 auto;
    }
    
    .skeleton-condition {
        margin: 0 auto;
    }
    
    .skeleton-sun-times {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .skeleton-temp-range {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .skeleton-forecast-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .title {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }
}

.subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
    .subtitle {
        font-size: 1.2rem;
    }
}

/* Search Bar */
.search-container {
    width: 40%;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .search-container {
        width: 60%;
    }
}

@media (max-width: 576px) {
    .search-container {
        width: 75%;
    }
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3rem;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.fa-magnifying-glass {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    font-size: 1.2rem;
    margin-left: 1rem;
}

.location-btn {
    position: absolute;
    right: 11rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.location-btn:hover {
    color: var(--white);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    outline: none;
    color: var(--white);
    padding: 0.75rem 3rem;
    border-radius: 3rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease;
    z-index: 1;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Error Message */
.error-message {
    width: 80%;
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--white);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    /* margin-bottom: 1.5rem; */
    margin: 0 auto 1.5rem;
}

.hidden {
    display: none !important; 
}

/* Temperature Toggle */
.temp-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.temp-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.temp-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 1.5rem;
}

.temp-btn.active {
    background: var(--white);
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.temp-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Weather Grid */
.weather-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    padding: 0 6rem;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .weather-grid {
        padding: 0 2rem;
    }
}

@media (max-width: 1024px) {
    .weather-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Weather Card */
.weather-main-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.weather-main-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .weather-header {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .location {
        justify-content: center;
    }
}

.location-info .location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.temperature-info {
    text-align: right;
}

.current-temperature {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.current-condition {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    text-transform: capitalize;
}

.weather-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.weather-icon-bg {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.weather-icon {
    font-size: 5rem;
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) }
    50% { transform: translateY(-10px) }
}

.sun-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sun-time {
    text-align: center;
}

.sun-time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.sun-time p {
    color: var(--white);
    font-weight: 500;
}

.temp-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.temp-high, .temp-low {
    text-align: center;
}

.temp-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.temp-value {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Weather Details */
.weather-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weather-details h3 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.details-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.details-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value {
    font-weight: 500;
    color: var(--white);
}

/* Forecast Section */
.forecast-section {
    margin-top: 2rem;
}

.forecast-title {
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 6rem;
}

@media (max-width: 576px) {
    .forecast-container {
        padding: 2rem;
    }
}

.forecast-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.forecast-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px) scale(1.02);
}

.forecast-day {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.forecast-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.forecast-condition {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.forecast-temps {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.forecast-high {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.forecast-low {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .weather-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .temperature-info {
        text-align: center;
    }
    
    .forecast-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .weather-card-main {
        padding: 1.5rem;
    }
    
    .weather-details {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sun-times {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .temp-range {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .forecast-container {
        grid-template-columns: 1fr 1fr;
    }
}