/* openmeteo-weather-shortcode.css */

.omws-forecast-wrapper {
    max-width: 100%;
    margin: 20px auto;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, #1a2639, #2c3e5e);
    border-radius: 30px;
    padding: 20px 16px 16px 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    color: #fff;
}

.omws-forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 14px;
}
.omws-city-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.omws-unit-toggle {
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 4px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}
.omws-unit-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* --- Masaüstü: Tüm kartlar tek satır, max-yükseklik 200px --- */
.omws-main-layout {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Bugün kartı – sol tarafta, sabit genişlik, max-height 200px */
.omws-today-card {
    flex: 0 0 200px;
    max-height: 200px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s ease;
}
.omws-today-card:hover {
    transform: translateY(-3px);
}
.omws-today-icon {
    font-size: 38px;
    animation: float 4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.omws-today-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
}
.omws-today-date {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 2px;
}
.omws-today-temp {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    gap: 8px;
    margin: 2px 0;
}
.omws-today-max { color: #ffb347; }
.omws-today-min { color: #7fc8ff; opacity: 0.8; }
.omws-today-desc {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.9;
}
.omws-today-wind {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Sağdaki 6 gün – tek satır */
.omws-days-scroll {
    flex: 1;
    overflow: visible;
}
.omws-days-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    height: 100%;
}

/* Küçük kartlar – max-height 200px */
.omws-day-card {
    flex: 1 1 0;
    min-width: 0;
    max-height: 200px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.omws-day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.omws-day-name {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}
.omws-day-date {
    font-size: 10px;
    opacity: 0.5;
    margin-bottom: 1px;
}
.omws-day-icon {
    font-size: 22px;
    margin: 1px 0;
    animation: float 4s ease-in-out infinite;
}
.omws-day-temps {
    display: flex;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}
.omws-max-temp { color: #ffb347; }
.omws-min-temp { color: #7fc8ff; opacity: 0.7; }

/* --- Mobil düzen (Aynen korundu, hiç değişmedi) --- */
@media screen and (max-width: 768px) {
    .omws-main-layout {
        flex-direction: column;
        gap: 16px;
    }
    .omws-today-card {
        flex: none;
        width: 100%;
        max-height: none;
        padding: 18px 12px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
        min-height: auto;
    }
    .omws-today-icon {
        font-size: 48px;
    }
    .omws-today-temp {
        font-size: 26px;
        gap: 10px;
    }
    .omws-today-desc {
        font-size: 16px;
    }
    .omws-today-date {
        font-size: 14px;
    }

    .omws-days-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 8px;
    }
    .omws-days-scroll::-webkit-scrollbar {
        height: 4px;
    }
    .omws-days-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 4px;
    }
    .omws-days-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        width: max-content;
        min-width: 100%;
    }
    .omws-day-card {
        flex: 0 0 90px;
        min-height: 110px;
        max-height: none;
        padding: 10px 4px;
    }
    .omws-day-icon {
        font-size: 24px;
    }
    .omws-day-temps {
        font-size: 12px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .omws-day-name {
        font-size: 12px;
    }
    .omws-day-date {
        font-size: 10px;
    }
}

@media screen and (max-width: 480px) {
    .omws-forecast-wrapper {
        padding: 16px 12px;
    }
    .omws-today-card {
        padding: 14px 10px;
    }
    .omws-today-icon {
        font-size: 40px;
    }
    .omws-today-temp {
        font-size: 22px;
    }
    .omws-day-card {
        flex: 0 0 75px;
        min-height: 95px;
        padding: 8px 3px;
    }
    .omws-day-icon {
        font-size: 20px;
    }
    .omws-day-temps {
        font-size: 10px;
    }
    .omws-city-name {
        font-size: 17px;
    }
    .omws-unit-toggle {
        font-size: 13px;
        padding: 4px 10px;
    }
}