/*
Theme Name: WXMaps Synoptic Pro
Theme URI: https://wxmaps.net
Author: WXMaps
Description: High-Resolution GFS Synoptic Weather Map Theme with built-in Technical/Image SEO, JSON-LD Schema, and Global/Per-Page Code Snippet Manager.
Version: 2.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wxmaps
*/

:root {
  --header-bg: #cfd5c9; --header-border: #8d9687; --gold-link: #cca028;
  --table-header-blue: #cce4ff; --table-sub-blue: #e1f0ff; --table-row-blue: #eef6ff;
  --table-border: #d0d9e4; --link-blue: #0056b3;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --font-head: 'Poppins', 'Inter', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
.site-header *, .page-outer *, .site-footer * { margin: 0; padding: 0; }
body {
  margin: 0; font-family: var(--font-body); background: #fff; color: #111827;
  min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65;
}
img { max-width: 100%; height: auto; }

/* ---------- Header & Menü ---------- */
.site-header { background: var(--header-bg); border-bottom: 2px solid var(--header-border); }
.header-container { max-width: 1140px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: inline-flex; align-items: center; text-decoration: none; color: #111; font-weight: 700; font-family: var(--font-head); }
.site-logo-img, .custom-logo { width: 60px; height: 60px; object-fit: contain; display: block; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: transform .15s ease; }
.site-logo-img:hover, .custom-logo:hover { transform: scale(1.04); }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-menu li { position: relative; list-style: none; }
.nav-menu a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: #111; padding: 8px 4px; display: inline-flex; align-items: center; gap: 5px; }
.nav-menu .menu-item-has-children > a::after { content: "\25BE"; font-size: 11px; }
.nav-menu .current-menu-item > a, .nav-menu .current-menu-ancestor > a, .nav-menu .current_page_item > a { color: var(--gold-link); font-weight: 600; }
.nav-menu .sub-menu {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 225px; border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15); border: 1px solid #d1d5db; padding: 6px 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 200;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a { display: block; padding: 9px 16px; font-size: 13.5px; color: #374151; }
.nav-menu .sub-menu a:hover { background: #f0f7ff; color: #0055aa; font-weight: 600; }

/* ---------- Sayfa İskeleti ---------- */
.page-outer { flex: 1; width: 100%; max-width: 980px; margin: 28px auto 50px; padding: 0 16px; }
.wx-layout-home { max-width: 860px; }
.wx-layout-about { max-width: 1040px; }
.wx-layout-single { max-width: 1060px; }
.wx-layout-table { max-width: 1240px; }
.wx-breadcrumbs { font-size: 13px; color: #475569; margin-bottom: 14px; }
.wx-breadcrumbs a { color: var(--link-blue); text-decoration: none; }
.wx-breadcrumbs a:hover { text-decoration: underline; }
.wx-breadcrumbs .sep { margin: 0 6px; color: #94a3b8; }
.content-box { background: #f6f7f6; padding: 36px 40px; border-radius: 2px; margin-bottom: 28px; }
.forecast-heading { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #111; margin-bottom: 18px; }
.back-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13.5px; font-weight: 600; color: #0056b3; background: #fff; border: 1px solid #cbd5e1; padding: 6px 14px; border-radius: 4px; }
.back-btn:hover { background: #e1f0ff; }
.nav-step-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.maps-stack { display: flex; flex-direction: column; gap: 24px; }
figure.map-frame { background: #fff; padding: 12px; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.05); text-align: center; margin: 0; position: relative; }
figure.map-frame img { width: 100%; height: auto; display: block; margin: 0 auto; }
.map-badge { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: #1e3a8a; }

/* RESİM ALTI AÇIKLAMASI KULLANICIDAN TAMAMEN GİZLİDİR (Sadece Google Botları & Ekran Okuyucu Görür) */
figcaption.map-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- SEO Makale Alanı ---------- */
.seo-article-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 32px 36px; margin-top: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.seo-h1 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 14px; line-height: 1.35; }
.seo-h2 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: #1e3a8a; margin-top: 22px; margin-bottom: 10px; line-height: 1.4; }
.seo-h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; color: #0f172a; margin-top: 18px; margin-bottom: 8px; }
.seo-p { font-size: 15px; color: #334155; margin-bottom: 14px; line-height: 1.7; }
.seo-list { margin: 14px 0 18px 22px; color: #334155; font-size: 15px; }
.seo-list li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--header-bg); border-top: 1px solid var(--header-border); padding: 24px 20px; margin-top: auto; }
.footer-container { max-width: 1140px; margin: 0 auto; }
.footer-links { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 14px; color: #111; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- About & Contact ---------- */
.about-box { background: #f6f7f6; padding: 46px 44px; border-radius: 2px; color: #111; }
.about-title { font-family: var(--font-head); font-size: 27px; font-weight: 400; color: #000; margin-bottom: 24px; }
.about-p { font-size: 14.5px; line-height: 1.75; color: #111; margin-bottom: 14px; }
.about-sub { font-size: 14.5px; font-weight: 400; color: #111; margin-top: 12px; margin-bottom: 6px; }
.about-box a { color: #111; text-decoration: none; }
.about-box a:hover { text-decoration: underline; }

/* ---------- Home ---------- */
.home-box { background: #f6f7f6; padding: 42px 48px; border-radius: 2px; color: #111; }
.home-brand-sub { color: #2b7bb9; font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.home-select-title { font-family: var(--font-head); font-size: 32px; font-weight: 400; color: #000; margin-bottom: 18px; }
.fancy-region-panel { background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%); border: 1px solid #cbd5e1; border-radius: 10px; padding: 20px; margin-bottom: 24px; box-shadow: 0 4px 14px rgba(0,59,115,.06); }
.region-bar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.region-dropdown { min-width: 240px; padding: 9px 14px; font-size: 14px; border: 1px solid #94a3b8; border-radius: 5px; background: #fff; color: #1e293b; cursor: pointer; }
.go-btn { background: #ecc94b; color: #111; border: 1px solid #d69e2e; padding: 9px 18px; font-size: 14px; font-weight: 600; border-radius: 5px; cursor: pointer; transition: all .15s; }
.go-btn:hover { background: #d69e2e; }
.region-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.region-quick-card { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 12px; background: #fff; border: 1px solid #cbd5e1; border-radius: 7px; text-decoration: none; color: #1e3a8a; font-size: 13.5px; font-weight: 600; transition: all .15s ease; }
.region-quick-card:hover { background: #0059b3; color: #fff; border-color: #004494; transform: translateY(-2px); }
.welcome-hub-heading { font-family: var(--font-head); font-size: 20px; font-weight: 700; text-align: center; color: #000; margin: 20px 0 14px; }
.new-style-link { display: inline-block; color: #cca028; font-size: 13px; text-decoration: none; margin-bottom: 14px; }
.poster-card { max-width: 380px; margin: 0 auto 24px; background: #102a43; color: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.18); text-align: center; }
.poster-top { padding: 14px 12px 10px; }
.poster-top h3 { font-size: 24px; font-weight: 700; margin-bottom: 2px; }
.poster-top p { font-size: 12px; color: #cbd5e1; }
.poster-card-img { width: 100%; height: auto; display: block; }
.poster-bottom { background: #f1f5f9; color: #111; padding: 10px 14px; text-align: left; font-size: 13px; }
.poster-bottom strong { display: block; font-size: 14px; margin-bottom: 4px; }
.poster-links { display: flex; justify-content: space-between; font-size: 12px; }
.poster-links a { color: #1e3a8a; text-decoration: none; font-weight: 600; }
.home-body-text p { font-size: 13.8px; line-height: 1.65; color: #111; margin-bottom: 12px; }
.home-body-text h2, .home-body-text h3 { font-size: 14.5px; font-weight: 700; color: #000; margin-top: 14px; margin-bottom: 6px; }
.home-body-text ul { margin: 6px 0 14px 22px; font-size: 13.8px; }
.home-body-text li { margin-bottom: 5px; }

/* ---------- Bölge Ana Tablo ---------- */
.page-title { font-family: var(--font-head); font-size: 26px; font-weight: 500; margin-bottom: 20px; color: #111; }
.medium-range-banner { background: linear-gradient(90deg, #003b73 0%, #0059b3 50%, #006cd9 100%); color: #fff; text-align: center; padding: 22px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0,59,115,.25); margin-bottom: 18px; }
.medium-range-banner h2 { font-family: var(--font-head); font-size: 27px; font-weight: 500; }
.region-selector-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.region-select-dropdown { padding: 7px 14px; font-size: 14px; border: 1.5px solid #2b6cb0; border-radius: 5px; min-width: 240px; cursor: pointer; }
.wx-table-card { background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.08); border: 1px solid #e2e8f0; }
.wx-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wx-matrix-table { width: 100%; border-collapse: collapse; min-width: 1180px; table-layout: fixed; }
.wx-matrix-table th, .wx-matrix-table td { border: 1px solid var(--table-border); text-align: center; vertical-align: middle; padding: 12px 8px; font-size: 13.5px; }
.wx-matrix-table .sticky-field-col { position: sticky; left: 0; z-index: 20; width: 275px; min-width: 275px; box-shadow: 2px 0 5px rgba(0,0,0,.05); }
.wx-matrix-table .time-col { width: 76px; min-width: 76px; }
.wx-matrix-table .forecast-col { width: 82px; min-width: 82px; }
.row-header-main th.sticky-field-col, .row-header-main th.time-col { background: var(--table-header-blue); font-weight: 700; }
.row-header-main th.forecast-col { background: #f8fafc; font-weight: 500; font-size: 13px; }
.row-header-sub th.sticky-field-col { background: var(--table-sub-blue); font-weight: 700; }
.row-header-sub th.all-fields-cell, .param-row td.all-times-cell { background: var(--table-header-blue); }
.param-row td.sticky-field-col { background: var(--table-row-blue); font-weight: 700; }
.param-row td.mag-cell { background: #fff; }
.param-row td.mag-cell:hover { background: #dbeafe; }
.matrix-link { color: var(--link-blue); font-weight: 700; text-decoration: none; font-size: 13px; }
.matrix-link:hover { text-decoration: underline; }
.magnifier-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.magnifier-link:hover { transform: scale(1.2); background: rgba(37,99,235,.1); }

@media (max-width: 768px) {
  .content-box, .seo-article-section, .home-box, .about-box { padding: 18px 14px; }
  .header-container { flex-direction: column; gap: 10px; }
  .nav-menu { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .wx-matrix-table .sticky-field-col { width: 170px; min-width: 170px; font-size: 12px; }
}
