/* Import Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

.weather-card {
    width: 100%;
    max-width: 380px;
    margin: 20px auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #fff !important;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Day Gradient Default */
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.weather-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Night Gradient Overwrite */
.weather-card.night-mode {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism Inner Container */
.weather-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.night-mode .weather-glass {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header */
.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.weather-card .weather-header h3 {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    opacity: 0.9 !important;
    color: #fff !important;
}

.weather-card .ow-logo {
    width: auto !important;
    height: 18px !important;
    max-width: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0.8 !important;
}

/* Content */
.weather-content {
    text-align: center;
}

.weather-card .city-name {
    margin: 0 0 10px 0 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    letter-spacing: -0.5px !important;
}

/* Main Temp Display */
.weather-main-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 25px 0;
}

.weather-icon {
    font-size: 68px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.temp-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.weather-card .temp-current {
    font-size: 64px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    letter-spacing: -2px !important;
    margin: 0 !important;
}

.weather-card .temp-desc {
    font-size: 16px !important;
    text-transform: capitalize !important;
    font-weight: 400 !important;
    color: #fff !important;
    opacity: 0.9 !important;
    margin-top: 4px !important;
    letter-spacing: 0.5px !important;
}

/* Details Grid */
.weather-details {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.night-mode .weather-details {
    background: rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-card .detail-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 0.7 !important;
    color: #fff !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
}

.weather-card .detail-value {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
}

/* Button */
.weather-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.weather-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.night-mode .weather-btn {
    background: rgba(255, 255, 255, 0.1);
}

.night-mode .weather-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 📌 Estrelas para noite limpa */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.stars svg {
    width: 100%;
    height: 100%;
    opacity: 0.4;
    animation: twinkling 2.5s infinite alternate ease-in-out;
}

@keyframes twinkling {
    0% { opacity: 0.1; }
    100% { opacity: 0.8; transform: scale(1.02); }
}

/* 📌 Responsividade */
@media screen and (max-width: 400px) {
    .weather-card {
        border-radius: 18px;
    }
    .weather-glass {
        padding: 20px;
        border-radius: 18px;
    }
    .temp-current {
        font-size: 48px;
    }
    .weather-icon {
        font-size: 50px;
    }
    .city-name {
        font-size: 26px;
    }
    .weather-btn {
        padding: 12px 0;
    }
}
