/**
 * Sapanca Gazetesi
 * Software developed by ArpSoft
 * Copyright © 2026 ArpSoft. All rights reserved.
 * Developer: Murat Arapoğlu
 */
.weather-page {
    padding-block: 24px 48px;
}

.weather-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
}

.weather-page__breadcrumb a:hover { color: var(--red); }

.weather-page__hero,
.weather-page__section {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.weather-page__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 32px;
    background: radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--sky) 20%, transparent), transparent 30%), var(--surface);
}

.weather-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--sky);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.weather-page__hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.weather-page__hero p {
    max-width: 720px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.weather-page__hero-summary {
    display: flex;
    min-width: 250px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid color-mix(in srgb, var(--sky) 25%, var(--line));
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--sky) 7%, var(--surface));
}

.weather-page__hero-summary img {
    width: 82px !important;
    min-width: 82px;
    max-width: 82px !important;
    height: 82px !important;
    object-fit: contain;
}

.weather-page__hero-summary strong,
.weather-page__hero-summary span { display: block; }
.weather-page__hero-summary strong { font-size: 34px; line-height: 1; }
.weather-page__hero-summary span { margin-top: 7px; color: var(--muted); font-weight: 700; }

.weather-page__section {
    margin-top: 18px;
    overflow: hidden;
}

.weather-page__section-heading {
    display: flex;
    min-height: 62px;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
}
.weather-page__section-heading--split { justify-content: space-between; }
.weather-page__section-heading > div { display: flex; align-items: center; gap: 10px; }
.weather-page__section-heading i { color: var(--red); font-size: 22px; }
.weather-page__section-heading h2 { font-size: 21px; }
.weather-page__section-heading--split > span {
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.weather-page__empty { padding: 34px 22px; color: var(--muted); text-align: center; }

.weather-current-card {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.5fr);
    gap: 28px;
    padding: 24px;
}
.weather-current-card__main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--sky) 8%, var(--surface-soft));
}
.weather-current-card__main img {
    width: 110px !important;
    min-width: 110px;
    max-width: 110px !important;
    height: 110px !important;
    object-fit: contain;
}
.weather-current-card__main span,
.weather-current-card__main small { display: block; color: var(--muted); }
.weather-current-card__main span { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.weather-current-card__main strong { display: block; margin-block: 4px; font-size: 54px; line-height: 1; }
.weather-current-card__main h3 { font-size: 18px; }
.weather-current-card__main small { margin-top: 6px; font-size: 13px; }
.weather-current-card__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.weather-current-card__metrics > div { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.weather-current-card__metrics dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.weather-current-card__metrics dd { margin-top: 8px; font-size: 16px; font-weight: 800; }

.weather-daily-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.weather-daily-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.weather-daily-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weather-daily-card header strong,
.weather-daily-card header span { display: block; }
.weather-daily-card header strong { font-size: 17px; }
.weather-daily-card header span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.weather-daily-card header img { width: 68px !important; max-width: 68px !important; height: 68px !important; object-fit: contain; }
.weather-daily-card h3 { margin-top: 12px; color: var(--muted); font-size: 14px; }
.weather-daily-card__temperature { display: flex; align-items: baseline; gap: 10px; margin-block: 8px 16px; }
.weather-daily-card__temperature strong { font-size: 38px; }
.weather-daily-card__temperature span { color: var(--muted); font-size: 23px; font-weight: 700; }
.weather-daily-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.weather-daily-card dl > div { padding-top: 9px; border-top: 1px solid var(--line); }
.weather-daily-card dt { color: var(--muted); font-size: 11px; }
.weather-daily-card dd { margin-top: 4px; font-size: 13px; font-weight: 800; }

.weather-hourly-list { overflow: hidden; }
.weather-hourly-row { border-bottom: 1px solid var(--line); }
.weather-hourly-row:last-child { border-bottom: 0; }
.weather-hourly-row summary {
    display: grid;
    grid-template-columns: 94px minmax(220px, 1fr) minmax(120px, .45fr) minmax(120px, .45fr) 36px;
    min-height: 78px;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    cursor: pointer;
    list-style: none;
}
.weather-hourly-row summary::-webkit-details-marker { display: none; }
.weather-hourly-row summary:hover,
.weather-hourly-row[open] summary { background: var(--surface-soft); }
.weather-hourly-row__time strong,
.weather-hourly-row__time small,
.weather-hourly-row__condition strong,
.weather-hourly-row__condition small,
.weather-hourly-row__quick strong,
.weather-hourly-row__quick small { display: block; }
.weather-hourly-row__time strong { font-size: 18px; }
.weather-hourly-row__time small,
.weather-hourly-row__condition small,
.weather-hourly-row__quick small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.weather-hourly-row__condition { display: flex; align-items: center; gap: 12px; }
.weather-hourly-row__condition img { width: 48px !important; max-width: 48px !important; height: 48px !important; object-fit: contain; }
.weather-hourly-row__condition strong { font-size: 20px; }
.weather-hourly-row__quick strong { margin-top: 4px; font-size: 14px; }
.weather-hourly-row__chevron { justify-self: center; color: var(--muted); font-size: 20px; transition: transform var(--transition-fast); }
.weather-hourly-row[open] .weather-hourly-row__chevron { transform: rotate(180deg); }
.weather-hourly-row__detail { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface)); }
.weather-hourly-row__detail h3 { margin-bottom: 14px; font-size: 16px; }
.weather-hourly-row__detail dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.weather-hourly-row__detail dl > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.weather-hourly-row__detail dt { color: var(--muted); font-size: 11px; }
.weather-hourly-row__detail dd { margin-top: 5px; font-size: 13px; font-weight: 800; }
.weather-hourly-row__detail p { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.weather-page__source { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 1000px) {
    .weather-current-card { grid-template-columns: 1fr; }
    .weather-current-card__metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .weather-hourly-row summary { grid-template-columns: 80px minmax(180px, 1fr) minmax(105px, .4fr) minmax(105px, .4fr) 28px; gap: 10px; padding-inline: 14px; }
    .weather-hourly-row__detail { padding-left: 14px; }
    .weather-hourly-row__detail dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .weather-page { padding-block: 14px 30px; }
    .weather-page__hero { display: block; padding: 22px 18px; }
    .weather-page__hero-summary { justify-content: flex-start; margin-top: 18px; }
    .weather-page__section-heading { min-height: 54px; padding-inline: 16px; }
    .weather-page__section-heading h2 { font-size: 18px; }
    .weather-current-card { padding: 14px; }
    .weather-current-card__main { padding: 16px; }
    .weather-current-card__main img { width: 82px !important; min-width: 82px; max-width: 82px !important; height: 82px !important; }
    .weather-current-card__main strong { font-size: 42px; }
    .weather-current-card__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weather-daily-grid { grid-template-columns: 1fr; padding: 14px; }
    .weather-hourly-row summary { grid-template-columns: 66px minmax(0, 1fr) 28px; min-height: 68px; }
    .weather-hourly-row__quick { display: none; }
    .weather-hourly-row__condition img { width: 40px !important; max-width: 40px !important; height: 40px !important; }
    .weather-hourly-row__condition strong { font-size: 17px; }
    .weather-hourly-row__detail { padding: 14px; }
    .weather-hourly-row__detail dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.weather-page img.weather-icon,
.weather-page__hero img,
.weather-page__forecast img,
.weather-hourly-row img {
    display:block;
    max-width:96px;
    max-height:96px;
    object-fit:contain;
}
.weather-page__forecast img { width:48px; height:48px; }
.weather-hourly-row img { width:42px; height:42px; }


.weather-records-section .weather-records-grid{
    padding:20px;
    gap:16px;
}
.weather-records-section .weather-record-card{
    padding:20px;
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    background:var(--surface-soft);
    box-shadow:none;
}
.weather-records-section .weather-record-card>span{
    color:var(--muted)!important;
    font-size:12px;
    font-weight:700;
}
.weather-records-section .weather-record-card>strong{
    margin-top:2px;
    font-size:30px;
    line-height:1.05;
}
.weather-records-section .weather-record-card>small{
    color:var(--muted);
    font-size:12px;
}
.weather-records-section .weather-records-note{
    margin:0;
    padding:0 20px 18px;
    color:var(--muted);
    font-size:12px;
}
.weather-records-section .weather-records-note i{
    color:var(--sky);
}

@media(max-width:991px){
    .weather-records-section .weather-records-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:575px){
    .weather-records-section .weather-records-grid{
        padding:14px;
        gap:10px;
    }
    .weather-records-section .weather-record-card{
        padding:14px;
        border-radius:var(--radius-md);
    }
    .weather-records-section .weather-record-card>strong{font-size:24px}
    .weather-records-section .weather-records-note{
        padding:0 14px 14px;
        font-size:10px;
    }
}
