/*
Theme Name: HizmetGelsin Harita Tema
Theme URI: https://example.com/
Author: Süleyman Yılmaz & ChatGPT
Description: Hizmet ilanları sitesi için Türkiye haritası odaklı özel WordPress teması. Ana sayfada gelişmiş Türkiye haritası ve şehir seçimi gösterir.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: hizmetgelsin-tema
*/

:root{
  --hg-primary:#0f766e;
  --hg-primary-dark:#115e59;
  --hg-primary-soft:#14b8a6;
  --hg-accent:#f59e0b;
  --hg-bg:#edf4f8;
  --hg-bg-deep:#dbe8ef;
  --hg-text:#0f172a;
  --hg-muted:#64748b;
  --hg-card:#ffffff;
  --hg-shadow:0 24px 70px rgba(15,23,42,.10);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(245,158,11,.10), transparent 26%),
    linear-gradient(180deg, #f8fbfd 0%, var(--hg-bg) 45%, var(--hg-bg-deep) 100%);
  color:var(--hg-text);
}
a{color:inherit;text-decoration:none}
.hg-page{min-height:100vh}
.hg-top{
  position:fixed;top:18px;left:18px;right:18px;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:15px;pointer-events:none
}
.hg-brand,.hg-top-actions{pointer-events:auto}
.hg-brand{
  display:inline-flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.88);backdrop-filter:blur(10px);
  border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 30px rgba(15,23,42,.08);
  padding:10px 14px;border-radius:16px;font-weight:800
}
.hg-logo-mark{
  width:34px;height:34px;display:grid;place-items:center;border-radius:12px;
  background:linear-gradient(135deg,var(--hg-primary),var(--hg-primary-soft));color:#fff;font-weight:900
}
.hg-top-actions{display:flex;gap:10px;align-items:center}
.hg-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:14px;
  background:var(--hg-primary);color:#fff;padding:12px 16px;font-weight:700;
  box-shadow:0 10px 25px rgba(15,118,110,.20);cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, background .18s ease
}
.hg-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(15,118,110,.25)}
.hg-btn.secondary{background:#fff;color:var(--hg-text);border:1px solid rgba(15,23,42,.10)}

.hg-hero{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:90px 18px 30px}
.hg-map-shell{
  width:min(1260px,100%);
  background:rgba(255,255,255,.88);
  border:1px solid rgba(15,23,42,.07);
  border-radius:32px;
  box-shadow:var(--hg-shadow);
  padding:28px;
  position:relative;
  overflow:hidden;
}
.hg-map-shell:before{
  content:"";position:absolute;inset:-12% -20% auto auto;width:340px;height:340px;
  background:radial-gradient(circle, rgba(20,184,166,.14), transparent 68%);
}
.hg-map-shell:after{
  content:"";position:absolute;inset:auto auto -18% -10%;width:380px;height:280px;
  background:radial-gradient(circle, rgba(245,158,11,.10), transparent 65%);
}
.hg-map-title{text-align:center;margin:0 0 8px;font-size:clamp(30px,4vw,56px);line-height:1.02;position:relative;z-index:1}
.hg-map-subtitle{text-align:center;color:var(--hg-muted);margin:0 auto 22px;max-width:760px;font-size:17px;position:relative;z-index:1}
.hg-map-wrap{position:relative;z-index:1}
.hg-map-stage{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(248,250,252,.98), rgba(240,248,252,.98)),
    repeating-linear-gradient(90deg, rgba(148,163,184,.06) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(148,163,184,.06) 0 1px, transparent 1px 120px);
  border:1px solid rgba(148,163,184,.18);
  padding:16px;
}
.hg-map-stage:before{
  content:"";
  position:absolute;inset:0;
  background:radial-gradient(circle at center, rgba(20,184,166,.04), transparent 60%);
  pointer-events:none;
}
.hg-turkey-map{width:100%;height:auto;display:block;position:relative;z-index:1}
.hg-turkey-shadow{fill:rgba(15,23,42,.10);filter:blur(14px)}
.hg-map-outline{fill:url(#hgMapFill);stroke:#d0dbe5;stroke-width:2.4}
.hg-map-inner-glow{fill:none;stroke:rgba(255,255,255,.70);stroke-width:1.3}
.hg-map-region-line{fill:none;stroke:rgba(15,118,110,.14);stroke-width:1.2;stroke-linecap:round;stroke-dasharray:2 7}

.hg-city-marker{cursor:pointer}
.hg-city-hit{fill:transparent}
.hg-city-ring{fill:rgba(20,184,166,.10);stroke:rgba(15,118,110,.18);stroke-width:1.4;transition:transform .16s ease, opacity .16s ease;transform-origin:center center;opacity:.92}
.hg-city-dot{fill:var(--hg-primary);stroke:#ffffff;stroke-width:2.2;transition:transform .16s ease, fill .16s ease, filter .16s ease;transform-origin:center center;filter:drop-shadow(0 4px 10px rgba(15,118,110,.28))}
.hg-city-core{fill:#ecfeff;opacity:.9}
.hg-city-marker:hover .hg-city-ring,
.hg-city-marker:focus .hg-city-ring,
.hg-city-marker.is-active .hg-city-ring{transform:scale(1.18);opacity:1;fill:rgba(245,158,11,.16);stroke:rgba(245,158,11,.40)}
.hg-city-marker:hover .hg-city-dot,
.hg-city-marker:focus .hg-city-dot,
.hg-city-marker.is-active .hg-city-dot{transform:scale(1.08);fill:var(--hg-accent);filter:drop-shadow(0 6px 14px rgba(245,158,11,.30))}
.hg-city-tooltip{
  position:absolute;left:0;top:0;transform:translate(-50%,-120%);
  background:rgba(15,23,42,.92);color:#fff;padding:10px 12px;border-radius:12px;
  font-size:14px;font-weight:700;line-height:1.25;white-space:nowrap;
  box-shadow:0 12px 24px rgba(15,23,42,.20);opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .14s ease, visibility .14s ease;z-index:4
}
.hg-city-tooltip small{display:block;font-size:11px;font-weight:600;opacity:.8;margin-top:2px}
.hg-city-tooltip.is-visible{opacity:1;visibility:visible}
.hg-map-note{margin:16px 0 0;text-align:center;color:var(--hg-muted);font-size:14px}
.hg-map-legend{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:16px 0 0;color:var(--hg-muted);font-size:14px}
.hg-map-legend span{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(15,23,42,.06);padding:8px 12px;border-radius:999px}
.hg-map-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
.hg-map-legend .dot{background:var(--hg-primary)}
.hg-map-legend .hover{background:var(--hg-accent)}
.hg-city-panel{display:none;margin-top:18px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:14px}
.hg-city-panel label{display:block;font-weight:700;margin-bottom:8px}
.hg-city-panel select{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:13px 14px;font-size:16px;background:#fff}

.hg-content{max-width:1180px;margin:0 auto;padding:40px 18px}
.hg-list-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hg-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.hg-card h2,.hg-card h3{margin-top:0}
.hg-meta{color:var(--hg-muted);font-size:14px;margin-bottom:10px}
.hg-empty{text-align:center;background:#fff;border-radius:20px;padding:35px;border:1px dashed #cbd5e1}
.hg-form{display:grid;gap:14px;max-width:850px;margin:0 auto;background:#fff;padding:24px;border-radius:22px;box-shadow:0 18px 45px rgba(15,23,42,.08)}
.hg-field label{display:block;font-weight:700;margin-bottom:6px}
.hg-field input,.hg-field textarea,.hg-field select{width:100%;padding:12px 14px;border:1px solid #cbd5e1;border-radius:12px;font-size:15px}
.hg-field textarea{min-height:130px}
.hg-notice{padding:14px 16px;border-radius:14px;background:#ecfdf5;color:#065f46;margin-bottom:15px}
.hg-footer{text-align:center;color:var(--hg-muted);padding:30px 18px}

@media(max-width:980px){
  .hg-top{position:static;padding:14px;flex-direction:column}
  .hg-hero{padding-top:18px;min-height:auto}
  .hg-map-shell{padding:18px;border-radius:22px}
  .hg-map-stage{padding:10px}
}
@media(max-width:800px){
  .hg-map-subtitle{font-size:15px}
  .hg-city-panel{display:block}
  .hg-map-legend{display:none}
  .hg-list-grid{grid-template-columns:1fr}
  .hg-top-actions{width:100%;justify-content:center}
  .hg-btn{width:100%}
  .hg-city-tooltip{display:none}
}
