/* ============================================================
   MAIAK ODESA — POGODA PLUGIN STYLES
   Використовує CSS-змінні теми (--bg-deep, --gold, --turq, тощо)
   ============================================================ */

.mp-pogoda { padding-bottom: 60px; }

/* ─── ПОТОЧНА ПОГОДА ─── */
.mp-current {
    background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.mp-current::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--turq), var(--gold), var(--coral));
}
.mp-current-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}
.mp-current-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mp-current-icon {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 8px;
}
.mp-current-temp {
    font-family: var(--serif);
    font-size: 78px;
    line-height: 1;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: -3px;
}
.mp-current-desc {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--text);
    margin-top: 6px;
}
.mp-current-feels {
    font-size: 13px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
}
.mp-current-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-width: 240px;
}
.mp-stat {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 16px;
}
.mp-stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.mp-stat-val {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--text);
}
.mp-stat-val small {
    font-size: 13px;
    color: var(--text-mute);
    font-family: var(--sans);
    margin-left: 4px;
}

/* якірна навігація */
.mp-anchor-nav {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mp-anchor-nav a {
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-mute);
    transition: all 0.2s;
    text-decoration: none;
}
.mp-anchor-nav a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 96, 0.08);
}

/* ─── СЕКЦІЇ H2 ─── */
.mp-section {
    padding-top: 40px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}
.mp-section h2 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.mp-section h2 em { font-style: italic; color: var(--gold); }
.mp-section p {
    font-size: 15px;
    color: var(--text-mute);
    margin-bottom: 18px;
    line-height: 1.65;
}
.mp-section p strong { color: var(--text); }

/* ─── HOURLY (24 год) ─── */
.mp-hourly {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 14px;
    margin-top: 18px;
    scrollbar-width: thin;
}
.mp-hourly::-webkit-scrollbar { height: 5px; }
.mp-hourly::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.mp-hour {
    flex: 0 0 80px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 8px;
    text-align: center;
}
.mp-hour-time {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.mp-hour-icon {
    font-size: 24px;
    margin-bottom: 6px;
}
.mp-hour-temp {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--gold);
    font-weight: 600;
}
.mp-hour-precip {
    font-size: 11px;
    color: var(--turq);
    margin-top: 4px;
}

/* ─── WEEK GRID (7 днів) ─── */
.mp-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 18px;
}
.mp-day-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 10px;
    text-align: center;
    transition: all 0.2s;
}
.mp-day-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.mp-day-card.is-today {
    background: rgba(212, 175, 96, 0.08);
    border-color: var(--gold);
}
.mp-day-dow {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.mp-day-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.mp-day-temps {
    font-family: var(--serif);
    margin-bottom: 6px;
}
.mp-tmax {
    font-size: 17px;
    color: var(--gold);
    font-weight: 700;
}
.mp-tmin {
    font-size: 14px;
    color: var(--text-dim);
    margin-left: 4px;
}
.mp-day-desc {
    font-size: 11px;
    color: var(--text-mute);
    line-height: 1.3;
}
.mp-day-precip {
    font-size: 11px;
    color: var(--turq);
    margin-top: 6px;
}

/* ─── ТАБЛИЦІ (10/14 днів, місяць) ─── */
.mp-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.mp-forecast-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    margin: 0;
}
.mp-forecast-table th {
    background: var(--bg-elev);
    padding: 12px 14px;
    text-align: left;
    font-family: var(--display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.mp-forecast-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text);
}
.mp-forecast-table tr:last-child td { border-bottom: none; }
.mp-forecast-table tr:hover { background: rgba(212, 175, 96, 0.04); }
.mp-month-table tr.is-climate { background: rgba(255, 255, 255, 0.02); }
.mp-month-table tr.is-climate td { color: var(--text-mute); }

.mp-tag-forecast {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(79, 184, 169, 0.15);
    border: 1px solid rgba(79, 184, 169, 0.3);
    border-radius: 4px;
    font-size: 11px;
    color: var(--turq);
}
.mp-tag-climate {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-dim);
}

/* ─── FAQ ─── */
.mp-faq {
    margin-top: 18px;
}
.mp-faq details {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    overflow: hidden;
}
.mp-faq summary {
    cursor: pointer;
    padding: 14px 18px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    position: relative;
    padding-right: 44px;
    user-select: none;
}
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--gold);
    line-height: 1;
    font-weight: 300;
}
.mp-faq details[open] summary::after { content: '−'; }
.mp-faq .mp-faq-a {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.7;
}
.mp-faq .mp-faq-a strong { color: var(--text); }

/* ─── ІНШІ МІСТА (картки) ─── */
.mp-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.mp-grid-large {
    grid-template-columns: repeat(6, 1fr);
}
.mp-city-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
    display: block;
}
.mp-city-card:hover {
    border-color: var(--gold);
    background: var(--bg-elev);
    transform: translateY(-2px);
}
.mp-city-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.mp-city-card-name {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.2;
}
.mp-city-card-temp {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 4px;
}
.mp-city-card-desc {
    font-size: 11px;
    color: var(--text-mute);
}

.mp-link-all {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--gold);
    border-radius: var(--r-sm);
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.mp-link-all:hover {
    background: var(--gold);
    color: var(--bg-deeper);
}

/* ─── ARCHIVE: ВЕЛИКА КАРТКА ОДЕСИ ─── */
.mp-main-city-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elev));
    border: 1px solid var(--gold);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.mp-main-city-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
}
.mp-main-city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.mp-main-city-info {
    display: flex;
    align-items: center;
    gap: 24px;
}
.mp-main-city-icon { font-size: 56px; }
.mp-main-city-name {
    font-family: var(--serif);
    font-size: 32px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.mp-main-city-desc {
    font-size: 14px;
    color: var(--text-mute);
}
.mp-main-city-temp {
    text-align: right;
}
.mp-main-temp-now {
    font-family: var(--serif);
    font-size: 64px;
    color: var(--text);
    font-weight: 700;
    line-height: 1;
}
.mp-main-temp-next {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 8px;
}

.mp-section-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

/* ─── SEO BLOCK ─── */
.mp-seo-block {
    margin-top: 60px;
    padding: 36px 40px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
}
.mp-seo-block::before {
    content: '';
    position: absolute;
    top: 0; left: 40px;
    width: 60px; height: 2px;
    background: var(--gold);
    transform: translateY(-1px);
}
.mp-seo-block h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}
.mp-seo-block h2 em { font-style: italic; color: var(--gold); }
.mp-seo-block h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}
.mp-seo-block p {
    font-size: 15px;
    color: var(--text-mute);
    margin-bottom: 14px;
    line-height: 1.7;
}
.mp-seo-block strong { color: var(--text); }
.mp-seo-block a {
    color: var(--gold);
    border-bottom: 1px solid rgba(212, 175, 96, 0.3);
}
.mp-seo-block a:hover { border-bottom-color: var(--gold); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .mp-current-grid { grid-template-columns: 1fr; }
    .mp-week-grid { grid-template-columns: repeat(4, 1fr); }
    .mp-grid-large, .mp-cities-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
    .mp-current { padding: 24px; }
    .mp-current-temp { font-size: 56px; }
    .mp-current-icon { font-size: 56px; }
    .mp-section h2 { font-size: 24px; }
    .mp-week-grid { grid-template-columns: repeat(3, 1fr); }
    .mp-grid-large, .mp-cities-grid { grid-template-columns: repeat(2, 1fr); }
    .mp-main-city-card { flex-direction: column; gap: 16px; padding: 24px; text-align: center; }
    .mp-main-city-info { flex-direction: column; gap: 14px; }
    .mp-main-city-temp { text-align: center; }
    .mp-seo-block { padding: 24px; }
    .mp-anchor-nav { font-size: 12px; }
    .mp-anchor-nav a { padding: 6px 10px; }
}
