﻿
/* ===== Hero ===== */
.weather-hero {
    position: relative;
    height: 360px;
    border-radius: 1.5rem;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.weather-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.weather-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
}

.weather-hero__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.weather-hero__icon {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.weather-hero__temp {
    font-size: 4rem;
    font-weight: 200;
    line-height: 1;
    margin-top: 0.5rem;
}

.weather-hero__place {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-top: 0.75rem;
    text-transform: uppercase;
}

/* ===== Detaljrutor ===== */
.detail-card {
    height: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .detail-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.detail-card__icon {
    font-size: 1.5rem;
}

.detail-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.detail-card__value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== Timkort ===== */
.hour-card {
    width: 130px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    margin: 0.25rem;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .hour-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

.hour-card__time {
    font-weight: 700;
    font-size: 0.95rem;
}

.hour-card__media {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin: 0.25rem 0;
}

.hour-card__temp {
    font-size: 1.05rem;
    font-weight: 500;
}

.hour-card__wind,
.hour-card__precip {
    font-size: 0.8rem;
}

.hour-card__wind {
    color: #6c757d;
}

.hour-card__precip {
    color: #0d6efd;
}

/* ===== Rubriker ===== */
.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.weather-wiggle {
    animation: weatherWiggle 2.5s ease-in-out infinite;
    transform-origin: 50% 80%;
}

@keyframes weatherWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-6deg);
    }

    40% {
        transform: rotate(6deg);
    }

    60% {
        transform: rotate(-4deg);
    }

    80% {
        transform: rotate(4deg);
    }
}

