:root {
  --navy: #1a2a40;
  --navy-light: #2c4a6b;
  --gold: #c8a951;
  --cream: #f4f7f9;
  --ink: #10151f;
  --muted: #5e6b7d;
  --line: rgba(26, 42, 64, 0.14);
  --wa: #25d366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200, 169, 81, 0.12), transparent 28%),
    linear-gradient(180deg, #fffaf5, var(--cream));
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  display: none;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand strong { color: var(--navy); font-size: 20px; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.top-links { display: flex; align-items: center; gap: 8px; }
.top-links a { padding: 9px 12px; border-radius: 10px; font-weight: 650; }
.top-links a:hover { background: rgba(26, 42, 64, 0.08); color: var(--navy); }
.hamburger { display: none; border: 0; background: transparent; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 3px; margin: 4px 0; border-radius: 99px; background: var(--navy); }

.page-shell { width: 100%; max-width: 100%; margin: 0; position: relative; }

/* Interactive Map Section */
.interactive-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#turkey-map-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-static-title {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: clamp(18px, 2.6vw, 34px);
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.map-cta {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  margin-top: 0;
}
.hero-button.map-cta:hover {
  transform: translateX(-50%) scale(1.05) translateY(-2px);
}
.hero-button.map-cta:active {
  transform: translateX(-50%) scale(0.98);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, #a68b3d 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(200, 169, 81, 0.3);
  margin-top: 20px;
}

.hero-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 35px rgba(200, 169, 81, 0.5);
  background: linear-gradient(135deg, #d4b86a 0%, var(--gold) 100%);
}

.hero-button:active {
  transform: scale(0.98);
}

/* President Section */
.president-section {
  padding: 80px 24px;
  background: var(--cream);
}

.president-card {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr 240px;
  gap: 40px;
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  align-items: center;
}

.president-photo-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.president-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.president-card:hover .president-photo {
  transform: scale(1.05);
}

.president-content h2 { font-size: 32px; margin: 10px 0 20px; color: var(--navy); }
.president-content p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 15px; }
.president-signature { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

.president-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.stat-item { text-align: center; }
.stat-logo { margin-bottom: -12px; margin-top: -12px; }
.stat-logo-img { width: 64px; height: 64px; border-radius: 14px; }
.stat-value { display: block; font-size: 36px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; }

/* Map Section Styles */
.map-section {
  display: none;
}
#turkey-svg-map { width: 100%; height: auto; filter: none; }

.jvectormap-region { 
  fill: #f4f1ea !important; 
  stroke: #fff !important; 
  stroke-width: 0.5 !important;
  transition: all 0.3s ease;
}

.jvectormap-region { 
  fill: #24344d !important; 
  stroke: rgba(200, 169, 81, 0.4) !important; 
  stroke-width: 0.2 !important; 
  transition: all 0.3s; 
}

.hub { 
  fill: var(--gold) !important; 
  filter: url(#glow);
  animation: hubPulse 2s infinite; 
}
.route-line { 
  fill: none; 
  stroke: var(--gold) !important; 
  stroke-width: 0.8; 
  stroke-dasharray: 2, 4; 
  opacity: 0.3;
}

.moving-dot { 
  fill: var(--gold); 
  filter: drop-shadow(0 0 5px var(--gold));
}

@keyframes hubPulse {
  0% { r: 2; opacity: 1; }
  50% { r: 4; opacity: 0.6; }
  100% { r: 2; opacity: 1; }
}

.wa-widget {
  position: fixed; right: 18px; bottom: 84px; z-index: 70;
  width: min(560px, calc(100% - 24px)); max-height: min(86vh, 900px);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 18px;
  background: #fff; box-shadow: 0 26px 64px rgba(0, 0, 0, 0.24);
}
.wa-fab {
  position: fixed; right: 18px; bottom: 84px; z-index: 71;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--wa); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5); }
.wa-fab img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.wa-widget.is-hidden { display: none; }
.wa-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px 14px 12px; background: linear-gradient(135deg, #128c7e, #25d366); color: #fff;
}
.wa-title strong { display: block; font-size: 16px; }
.wa-title p { margin: 2px 0 0; font-size: 12px; opacity: 0.9; }
.wa-header-actions { display: flex; gap: 6px; }
.wa-icon-btn {
  border: 0; width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 18px; cursor: pointer;
}

.wa-body {
  display: grid; gap: 14px; padding: 14px; overflow: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 169, 81, 0.05), transparent 50%),
    linear-gradient(180deg, #fdfbf7, #f4f1ea);
}
.wa-robot-panel {
  padding: 10px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(26, 42, 64, 0.05);
}
.robot-stage {
  position: relative; display: grid; min-height: 220px; place-items: center;
  border-radius: 16px; overflow: hidden; padding-top: 60px;
  background: 
    radial-gradient(circle at 50% 85%, rgba(200, 169, 81, 0.15), transparent 45%),
    linear-gradient(180deg, rgba(26, 42, 64, 0.03), rgba(255, 255, 255, 0.8));
}
.speech-bubble {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 10;
  border-radius: 20px 20px 20px 8px; 
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  animation: bubbleFloat 4s ease-in-out infinite;
}
.speech-bubble::after {
  position: absolute; left: 20px; bottom: -8px; width: 16px; height: 16px; content: "";
  background: rgba(255, 255, 255, 0.85); transform: rotate(45deg);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}

@keyframes bubbleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.assistant-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin-top: 16px;
  border-radius: 50%;
  overflow: visible;
  border: 4px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 30px rgba(26, 42, 64, 0.2);
  animation: robotFloat 4s ease-in-out infinite;
}
.assistant-logo::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 5px dashed rgba(20, 20, 20, 0.78);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  animation: wheelSpin 6s linear infinite;
}
.assistant-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.wa-chat-panel { display: grid; gap: 12px; }
.wa-chat-panel.is-hidden { display: none !important; }

.wa-menu-options { display: grid; gap: 10px; margin-top: 8px; }
.wa-menu-btn {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 16px; border: 1px solid rgba(26, 42, 64, 0.12);
  border-radius: 14px; background: #fff; color: var(--ink);
  font-weight: 700; text-align: left; cursor: pointer; transition: all 0.2s;
}
.wa-menu-btn:hover { border-color: var(--navy); background: rgba(26, 42, 64, 0.04); transform: translateY(-1px); }
.wa-menu-btn::after { content: "→"; color: var(--navy); font-size: 18px; font-weight: 900; }

.wa-back-btn {
  border: 0; background: transparent; color: var(--navy);
  font-weight: 800; cursor: pointer; padding: 4px 0; margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px; width: fit-content; font-size: 14px;
}
.wa-back-btn:hover { opacity: 0.8; }

.wa-welcome h2 { font-size: clamp(24px, 3.5vw, 32px); }
.wa-welcome p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.wa-kicker { margin: 0 0 6px; color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.wa-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.wa-search input {
  min-height: 48px; width: 100%; border: 1px solid rgba(26, 42, 64, 0.16);
  border-radius: 12px; padding: 0 12px; outline: none;
}
.wa-search input:focus { border-color: rgba(26, 42, 64, 0.5); box-shadow: 0 0 0 4px rgba(26, 42, 64, 0.08); }
.wa-search button, .wa-send, .wa-secondary, .clear-btn {
  border: 0; border-radius: 12px; font-weight: 800; cursor: pointer;
}
.wa-search button {
  min-height: 48px; padding: 0 14px; background: var(--navy); color: #fff;
}
.wa-message {
  min-height: 48px; padding: 12px; border-radius: 12px;
  background: rgba(37, 211, 102, 0.1); color: #23483a; line-height: 1.5;
}
.wa-results { display: grid; gap: 8px; }

/* Result Item and Mini Robot */
.wa-result-item {
  border: 1px solid rgba(26, 42, 64, 0.08); border-radius: 12px; padding: 0; background: #fff;
  overflow: hidden; transition: all 0.3s ease;
}
.wa-result-item.is-active {
  border-color: var(--navy); box-shadow: 0 8px 20px rgba(26, 42, 64, 0.06);
}
.wa-result-item button.wa-item-trigger {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 11px; cursor: pointer;
}
.wa-result-item.is-active button.wa-item-trigger {
  background: rgba(26, 42, 64, 0.02);
}

.mini-robot {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); display: grid; place-items: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mini-robot::before {
  content: ""; position: absolute; top: 10px; left: 8px; width: 4px; height: 4px; background: #fff; border-radius: 50%;
  box-shadow: 16px 0 0 #fff;
}
.mini-robot::after {
  content: ""; position: absolute; bottom: 8px; left: 11px; width: 14px; height: 6px; border-bottom: 2px solid #fff; border-radius: 50%;
}
.wa-result-content { flex: 1; min-width: 0; }
.wa-result-item strong { display: block; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-result-meta { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Accordion Detail */
.wa-item-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.wa-result-item.is-active .wa-item-expand {
  grid-template-rows: 1fr;
}
.wa-item-expand-inner {
  overflow: hidden;
}
.wa-inline-detail {
  padding: 0 12px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed rgba(26, 42, 64, 0.1);
  margin-top: 4px;
  padding-top: 12px;
}
.wa-inline-detail-body {
  display: grid; gap: 8px; margin-bottom: 12px;
}
.wa-inline-detail-body strong { color: var(--ink); display: inline; }

.wa-result-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wa-result-actions a {
  padding: 7px 9px; border-radius: 10px; background: rgba(26, 42, 64, 0.08); color: var(--navy); font-size: 12px; font-weight: 800;
}

.wa-detail-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.wa-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wa-send, .wa-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; width: 100%;
}
.wa-send { background: var(--wa); color: #fff; border-radius: 10px; font-weight: 800; }
.wa-secondary {
  background: #fff; border: 1px solid rgba(26, 42, 64, 0.14); color: var(--navy); border-radius: 10px; font-weight: 800;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

@keyframes robotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes wheelSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes robotBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
@keyframes smileBounce { 0%, 100% { transform: translateX(-50%) scaleY(1); } 50% { transform: translateX(-50%) scaleY(1.5); } }
@keyframes pupilDart { 0%, 80%, 100% { transform: translateX(0); } 85% { transform: translateX(2px); } 90% { transform: translateX(-2px); } 95% { transform: translateX(1px); } }
@keyframes cheekGlow { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.15); } }
@keyframes sonarPulse { 0% { width: 20px; height: 20px; opacity: 0.8; } 100% { width: 98px; height: 98px; opacity: 0; } }
@keyframes dotAppear { 0%, 100% { opacity: 0; } 20%, 60% { opacity: 1; } }

@media (max-width: 760px) {
  .top-links { display: none; }
  .hamburger { display: block; }
  .top-links.open {
    display: flex; position: absolute; top: 64px; right: 12px; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; z-index: 1000;
  }
  .interactive-container { height: 60vh; min-height: 360px; }
  #turkey-map-container { transform: translateY(36px); }
  .map-cta { bottom: 14px; }
  .robot-stage {
    min-height: 270px;
    padding-top: 16px;
    align-content: start;
    gap: 12px;
  }
  .speech-bubble {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 4px;
    font-size: 13px;
    line-height: 1.4;
  }
  .speech-bubble::after { display: none; }
  .assistant-logo { margin-top: 8px; }
  .wa-widget {
    right: 12px; left: 12px; width: calc(100% - 24px); bottom: 84px; max-height: 80vh;
    z-index: 2000;
  }
  .wa-search { grid-template-columns: 1fr; }
  .president-card { grid-template-columns: 1fr; padding: 20px; }
  .president-stats {
    flex-direction: row;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
    justify-content: space-around;
  }
  .president-content h2 { font-size: 26px; }
}
