/**
 * Himara Weather CSS
 * Premium Glassmorphism Design
 */

.himara-weather-container {
    width: 100%;
    max-width: 100%;
    /* Fluid width as requested */
    margin: 0 auto;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    perspective: 1000px;
}

.himara-weather-card {
    /* STRICTLY ENFORCE PREMIUM BLUE THEME */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 35px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* Shine effect */
.himara-weather-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.8s;
    pointer-events: none;
}

.himara-weather-card:hover::before {
    left: 150%;
}

.himara-weather-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.hw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.hw-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hw-date {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Vertical Main Section */
.hw-main {
    display: flex;
    flex-direction: column;
    /* VERTICAL STACK */
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    position: relative;
}

.hw-temp {
    display: flex;
    flex-direction: column;
    /* Icon above Temp */
    align-items: center;
    font-size: 5rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hw-temp i {
    font-size: 5rem;
    margin-right: 0;
    margin-bottom: 15px;
    /* Spacing */
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4));
    /* Gradient Icon */
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float 4s ease-in-out infinite;
}

.hw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    /* Responsive Grid */
    gap: 15px;
}

.hw-item {
    background: #c8a756;
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hw-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hw-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hw-item span {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hw-item label {
    font-size: 0.7rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Forecast Section - Horizontal Cards */
.hw-forecast {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 Days Horizontal */
    gap: 10px;
}

.hw-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    background: rgba(255, 255, 255, 0.08);
    /* Card Style */
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.hw-forecast-day:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hw-day-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.9;
    width: auto;
}

.hw-day-icon i {
    font-size: 1.5rem;
    color: #fff;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    margin-bottom: 12px;
}

.hw-day-temps {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hw-temp-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.hw-temp-group .max {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.hw-temp-group .min {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hw-temp-group label {
    font-size: 0.55rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 2px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hw-temp-divider {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 6px 0;
}

/* Responsive Forecast */
@media (max-width: 500px) {
    .hw-forecast {
        grid-template-columns: repeat(5, 1fr);
        /* Keep 5 cols on mobile but scale down */
        gap: 5px;
    }

    .hw-forecast-day {
        padding: 10px 2px;
    }

    .hw-day-name {
        font-size: 0.7rem;
    }

    .hw-day-icon i {
        font-size: 1.2rem;
    }

    .hw-temp-group .max {
        font-size: 0.9rem;
    }

    .hw-temp-group .min {
        font-size: 0.8rem;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .hw-temp {
        font-size: 4rem;
    }

    .hw-temp i {
        font-size: 4rem;
    }
}