/* TurizmLOG hava durumu — haber teması ile uyumlu */

.weather-page {
    --weather-brand: var(--tg-secondary-color, #183354);
    --weather-accent: var(--tg-primary-color, #f7902c);
    --weather-muted: var(--tg-paragraph-color, #545E69);
    --weather-surface: var(--tg-gray-three, #F9F9F7);
    --weather-border: var(--tg-border-color, #DFDFDF);
}

.weather-page .section-title .title,
.weather-page .weather-group-title,
.weather-page .weather-panel-title,
.weather-page .weather-card-title,
.weather-page .weather-detail-hero .title {
    font-family: var(--tg-heading-font-family);
    color: var(--weather-brand);
}

.weather-page .weather-detail-hero .title {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--weather-border);
}

.weather-group-title {
    position: relative;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--weather-border);
}

/* Kartlar — haber listesi gibi aralıklı */
.weather-page .weekly-post-item-wrap-three > .row > .col-md-6 {
    margin-bottom: 30px;
}

.weather-page .weekly-post-item-wrap-three > .row > .col-md-6:last-child,
.weather-page .weekly-post-item-wrap-three > .row > .col-md-6:nth-last-child(2):nth-child(odd) {
    margin-bottom: 30px;
}

.weather-card {
    display: block;
    background: var(--tg-white);
    border: 1px solid var(--weather-border);
    border-radius: 0;
    padding: 0;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.weather-card:hover {
    border-color: var(--weather-brand);
    box-shadow: 0 6px 20px rgba(24, 51, 84, 0.08);
    color: inherit;
}

.weather-card-inner {
    padding: 18px 20px 20px;
    background: var(--tg-white);
}

.weather-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.weather-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
}

.weather-temp {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--weather-brand) !important;
    white-space: nowrap;
    line-height: 1.2;
}

.weather-label {
    margin-bottom: 12px;
    color: var(--weather-muted);
    font-size: 0.95rem;
}

.weather-scores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-score-pill {
    font-size: 0.88rem;
    background: var(--weather-surface);
    border: 1px solid var(--weather-border);
    border-radius: 4px;
    padding: 8px 10px;
    color: var(--weather-brand);
}

.weather-score-pill strong {
    color: var(--weather-brand);
    font-weight: 700;
}

.weather-sea {
    margin: 12px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--weather-brand);
}

/* Detay panel */
.weather-panel {
    background: var(--tg-white);
    border: 1px solid var(--weather-border);
    padding: 24px;
    height: 100%;
    margin-bottom: 24px;
}

.weather-panel-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--weather-border);
}

.weather-today-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 576px) {
    .weather-today-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.weather-stat {
    background: var(--weather-surface);
    border: 1px solid var(--weather-border);
    padding: 12px 14px;
}

.weather-stat span {
    display: block;
    font-size: 0.8rem;
    color: var(--weather-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.weather-stat strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--weather-brand);
    line-height: 1.4;
}

/* Skor sidebar widget */
.weather-scores-panel {
    padding: 0;
    border: none;
    background: transparent;
}

.weather-score-block {
    background: var(--tg-white);
    border: 1px solid var(--weather-border);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.weather-score-block:last-child {
    margin-bottom: 0;
}

.weather-score-block span {
    display: block;
    font-size: 0.85rem;
    color: var(--weather-muted);
    margin-bottom: 6px;
}

.weather-score-block strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--weather-brand) !important;
}

.weather-score-block strong small {
    font-size: 1rem;
    font-weight: 700;
    color: var(--weather-muted) !important;
}

.weather-score-block em {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--weather-brand);
    margin-top: 4px;
}

.weather-score-block.is-highlight {
    border-color: var(--weather-accent);
    background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
}

.weather-score-block.is-highlight strong {
    color: var(--weather-accent) !important;
}

/* Yorum kutusu */
.weather-comment {
    background: var(--weather-surface);
    border-left: 4px solid var(--weather-accent);
    padding: 20px 22px;
}

.weather-comment h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--weather-brand);
}

.weather-comment p {
    margin: 0;
    color: var(--weather-muted);
}

/* Tahmin */
.weather-forecast-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .weather-forecast-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.weather-forecast-day {
    background: var(--weather-surface);
    border: 1px solid var(--weather-border);
    padding: 12px 10px;
    text-align: center;
}

.weather-forecast-day .day-name {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--weather-brand);
    margin-bottom: 6px;
}

.weather-forecast-day .day-weather,
.weather-forecast-day .day-temp,
.weather-forecast-day .day-rain {
    display: block;
    font-size: 0.82rem;
    color: var(--weather-muted);
    line-height: 1.45;
}

.weather-forecast-day .day-temp {
    font-weight: 700;
    color: var(--weather-brand);
}

.weather-region-tag {
    display: inline-block;
    background: var(--weather-brand);
    color: var(--tg-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.weather-intro {
    color: var(--weather-muted);
    max-width: 100%;
}

.weather-attribution {
    margin-top: 20px;
}

/* Dark mode */
[tg-theme=dark] .weather-page {
    --weather-brand: #f0f4f8;
    --weather-muted: #b8c5d3;
    --weather-surface: #182330;
    --weather-border: #2a3a4d;
}

[tg-theme=dark] .weather-card,
[tg-theme=dark] .weather-card-inner,
[tg-theme=dark] .weather-panel,
[tg-theme=dark] .weather-score-block {
    background: #1e2d3d;
}

[tg-theme=dark] .weather-score-block.is-highlight {
    background: linear-gradient(180deg, #243447 0%, #1e2d3d 100%);
}

[tg-theme=dark] .weather-temp,
[tg-theme=dark] .weather-stat strong,
[tg-theme=dark] .weather-score-block strong,
[tg-theme=dark] .weather-score-block em,
[tg-theme=dark] .weather-forecast-day .day-temp,
[tg-theme=dark] .weather-forecast-day .day-name {
    color: #f0f4f8 !important;
}

[tg-theme=dark] .weather-score-block strong small {
    color: #9eb0c4 !important;
}

[tg-theme=dark] .weather-score-block.is-highlight strong {
    color: var(--weather-accent) !important;
}
