/* ======================================================================================
 * سکشن ویژه‌ی صفحه‌ی اصلی: «پیدا کردن لوکیشن عکس با هوش مصنوعی» (partials/geo-showcase.ejs)
 * فقط صفحه‌ی اصلی این فایل را لود می‌کند. همه‌ی کلاس‌ها با پیشوند gs- و زیر ‎.gs‎ هستند.
 * پالت: مشکی عمیق، سبز-آبی تیره، فیروزه‌ای نئونی (cyan)، و طلایی برای تیتر/دکمه‌ی اصلی.
 * ====================================================================================== */
.gs {
  --gs-bg: #03080a;
  --gs-teal: #0b2c31;
  --gs-cyan: #2de2e6;
  --gs-cyan-soft: rgba(45, 226, 230, .14);
  --gs-line: rgba(45, 226, 230, .28);
  --gs-gold: #f2b84b;
  --gs-gold-2: #e2a63d;
  --gs-text: #eef7f7;
  --gs-text-2: #b7c9cb;
  --gs-muted: #7d9598;
  --gs-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  padding: 70px 0 30px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--gs-bg) 22%, var(--gs-bg) 100%);
  color: var(--gs-text);
}
.gs-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 46px 44px;
  border: 1px solid var(--gs-line);
  background: radial-gradient(120% 90% at 30% 40%, #071a1e 0%, #040c0f 55%, #020607 100%);
  box-shadow: 0 0 0 1px rgba(45, 226, 230, .05), 0 0 50px rgba(45, 226, 230, .10), inset 0 0 70px rgba(45, 226, 230, .04);
}
.gs-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gs-bg::before { /* شبکه‌ی فنی خیلی کم‌رنگ */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 226, 230, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 230, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 80% at 32% 45%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 80% at 32% 45%, #000 0%, transparent 85%);
}
.gs-bg::after { /* هاله‌ی طلایی ملایم پشت تیتر */
  content: ''; position: absolute; width: 520px; height: 420px; top: -80px; right: -120px;
  background: radial-gradient(closest-side, rgba(242, 184, 75, .10), transparent);
}

.gs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; align-items: center; }

/* ============================== ستون متن ============================== */
.gs-text { position: relative; z-index: 2; }
.gs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gs-cyan);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gs-line); background: rgba(45, 226, 230, .05);
}
.gs-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--gs-gold); box-shadow: 0 0 8px var(--gs-gold); }
.gs-title {
  margin: 18px 0 0; font-size: clamp(28px, 3.1vw, 46px); font-weight: 900; line-height: 1.45; color: #fff;
  text-shadow: 0 0 24px rgba(255, 255, 255, .08);
}
.gs-line1 { white-space: nowrap; } /* دو خط تمیز مثل طرح مرجع */
.gs-gold {
  display: block;
  background: linear-gradient(90deg, #ffd889, var(--gs-gold) 45%, var(--gs-gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(242, 184, 75, .28));
}
.gs-rule { display: block; width: 120px; height: 3px; border-radius: 3px; margin: 16px 0 18px; background: linear-gradient(270deg, var(--gs-gold), rgba(242, 184, 75, .1)); }
.gs-lead { margin: 0; color: var(--gs-text-2); font-size: 16px; line-height: 2.05; max-width: 520px; }

.gs-features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gs-features li {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 18px 10px; border-radius: 16px; font-size: 13.5px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.gs-features li:hover { border-color: rgba(242, 184, 75, .45); box-shadow: 0 0 20px rgba(242, 184, 75, .12); transform: translateY(-2px); }
.gs-features svg { width: 30px; height: 30px; color: var(--gs-gold); filter: drop-shadow(0 0 6px rgba(242, 184, 75, .45)); }

.gs-ctas { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.gs-btn {
  flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; border-radius: 14px; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .25s, background .25s, filter .25s;
}
.gs-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.gs-btn.gold {
  color: #1d1404; background: linear-gradient(180deg, #ffcf6e, var(--gs-gold-2));
  box-shadow: 0 0 0 1px rgba(255, 214, 120, .55), 0 10px 30px rgba(242, 184, 75, .28), 0 0 26px rgba(242, 184, 75, .25);
}
.gs-btn.gold:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255, 214, 120, .7), 0 12px 34px rgba(242, 184, 75, .38), 0 0 34px rgba(242, 184, 75, .35); }
.gs-btn.outline { color: #fff; border: 1.5px solid rgba(242, 184, 75, .7); background: rgba(242, 184, 75, .04); }
.gs-btn.outline:hover { background: rgba(242, 184, 75, .1); box-shadow: 0 0 22px rgba(242, 184, 75, .18); }
.gs-btn:active { transform: translateY(1px); }
.gs-btn:focus-visible, .gs-modes a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.gs-modes {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); direction: ltr;
}
.gs-modes a {
  text-align: center; padding: 9px 6px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--gs-text-2); text-decoration: none; border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.gs-modes a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.gs-modes a.is-on { color: var(--gs-gold); border-color: rgba(242, 184, 75, .75); background: rgba(242, 184, 75, .06); box-shadow: 0 0 16px rgba(242, 184, 75, .18); }
.gs-seo { margin: 16px 0 0; font-size: 12.5px; color: var(--gs-muted); line-height: 1.9; }

/* ============================== ستون بصری ============================== */
.gs-visual { position: relative; height: 620px; }
.gs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.gs-sphere-ph { /* تا وقتی JS/داده لود نشده، جای کره خالی نماند */
  position: absolute; z-index: 0; left: 54%; top: 43%; width: 84%; aspect-ratio: 1; max-height: 80%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #0f3c48 0%, #04141b 45%, #01070a 72%);
  box-shadow: 0 0 60px 6px rgba(45, 226, 230, .22), inset 0 0 40px rgba(45, 226, 230, .18);
}
.gs.is-live .gs-sphere-ph { opacity: 0; transition: opacity .6s; }
.gs-orbit { position: absolute; z-index: 0; left: 54%; top: 43%; border-radius: 50%; pointer-events: none; }
.gs-orbit.o1 { width: 112%; height: 46%; transform: translate(-50%, -50%) rotate(-14deg); border: 1px solid rgba(45, 226, 230, .16); }
.gs-orbit.o2 { width: 88%; height: 88%; transform: translate(-50%, -50%); border: 1.5px dashed rgba(242, 184, 75, .22); animation: gs-spin 90s linear infinite; }
@keyframes gs-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.gs-pin-label {
  position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none; opacity: 0;
  padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(3, 12, 15, .85); border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 0 14px rgba(45, 226, 230, .25); transition: opacity .35s;
}
.gs-pin-label.is-on { opacity: 1; }

/* کارت عکس ورودی */
.gs-input {
  position: absolute; z-index: 3; top: 26px; left: 0; width: 34%; max-width: 250px; margin: 0;
  border-radius: 16px; padding: 6px; background: rgba(4, 16, 20, .7);
  border: 1.5px solid rgba(45, 226, 230, .75);
  box-shadow: 0 0 22px rgba(45, 226, 230, .35), inset 0 0 18px rgba(45, 226, 230, .12);
  transform: perspective(900px) rotateY(14deg) rotateZ(-2deg);
}
.gs-input img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; }
.gs-input figcaption {
  position: absolute; bottom: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: rgba(2, 10, 12, .78); border: 1px solid rgba(255, 255, 255, .18);
}
.gs-input figcaption svg { width: 15px; height: 15px; }

/* پنل «در حال تحلیل» */
.gs-scan {
  position: absolute; z-index: 3; top: 8px; right: 0; width: 30%; max-width: 230px;
  padding: 8px; border-radius: 14px; background: rgba(4, 14, 18, .75);
  border: 1px solid var(--gs-line); box-shadow: 0 0 20px rgba(45, 226, 230, .15);
}
.gs-scan-tiles { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; aspect-ratio: 16 / 10; }
.gs-scan-tiles span {
  border-radius: 6px; background-image: var(--img); background-size: 300%; filter: saturate(.75) contrast(1.1) brightness(.85);
  border: 1px solid rgba(45, 226, 230, .2); position: relative; overflow: hidden;
}
.gs-scan-tiles span:nth-child(1) { background-position: 20% 30%; grid-row: span 2; background-size: 220%; }
.gs-scan-tiles span:nth-child(2) { background-position: 80% 20%; }
.gs-scan-tiles span:nth-child(3) { background-position: 60% 85%; }
.gs-scan-tiles span:nth-child(4) { display: none; }
.gs-scan-tiles span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: var(--gs-cyan); box-shadow: 0 0 10px 2px rgba(45, 226, 230, .7);
  animation: gs-scanline 2.6s ease-in-out infinite;
}
.gs-scan-tiles span:nth-child(2)::after { animation-delay: .5s; }
.gs-scan-tiles span:nth-child(3)::after { animation-delay: 1s; }
@keyframes gs-scanline { 0%, 100% { top: 0; } 50% { top: calc(100% - 2px); } }
.gs-scan-label { margin-top: 7px; font-family: var(--gs-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--gs-cyan); direction: ltr; text-align: left; }
.gs-scan-bar { margin-top: 5px; height: 3px; border-radius: 3px; background: rgba(45, 226, 230, .14); overflow: hidden; direction: ltr; }
.gs-scan-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--gs-cyan), #7ff3f5); box-shadow: 0 0 8px var(--gs-cyan); animation: gs-bar 2.8s ease-in-out infinite; }
@keyframes gs-bar { 0% { width: 8%; } 70% { width: 92%; } 100% { width: 8%; } }

/* کارت «موقعیت احتمالی» */
.gs-result {
  position: absolute; z-index: 4; left: 0; bottom: 0; width: 66%; max-width: 480px;
  padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(5, 22, 27, .9), rgba(3, 12, 15, .92));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(45, 226, 230, .6);
  box-shadow: 0 0 30px rgba(45, 226, 230, .22), inset 0 0 30px rgba(45, 226, 230, .05);
  transition: opacity .35s, transform .35s;
}
.gs-result.is-switching { opacity: .35; transform: translateY(4px); }
.gs-result-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: #fff; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gs-result-head svg { width: 24px; height: 24px; color: var(--gs-gold); filter: drop-shadow(0 0 6px rgba(242, 184, 75, .55)); }
.gs-result-body { display: flex; align-items: center; gap: 14px; }
.gs-result-img { flex: 0 0 auto; width: 104px; height: 78px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); }
.gs-result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gs-result-info b { font-size: 16px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-result-info span { font-size: 13px; color: var(--gs-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-result-info span:empty { display: none; }
.gs-coords-row { margin-top: 12px; font-size: 13px; color: var(--gs-text-2); display: flex; align-items: baseline; gap: 8px; }
.gs-coords-row[hidden] { display: none; }
.gs-coords { font-family: var(--gs-mono); color: var(--gs-cyan); direction: ltr; font-size: 13px; white-space: nowrap; }
.gs-radar { /* «نقشه‌ی کوچک» تزئینی با هدف‌گیر */
  flex: 0 0 auto; width: 92px; height: 78px; border-radius: 10px; position: relative; overflow: hidden;
  border: 1px solid rgba(45, 226, 230, .35);
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 226, 230, .25) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, transparent 0 13px, rgba(45, 226, 230, .5) 14px, transparent 15px),
    radial-gradient(circle at 50% 50%, transparent 0 24px, rgba(45, 226, 230, .25) 25px, transparent 26px),
    linear-gradient(rgba(45, 226, 230, .08) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, rgba(45, 226, 230, .08) 1px, transparent 1px) 0 0 / 12px 12px,
    radial-gradient(70% 60% at 45% 55%, #17423d, #06171a);
}
.gs-radar i { position: absolute; inset: 0; border-radius: 50%; margin: auto; width: 10px; height: 10px; border: 1.5px solid var(--gs-cyan); animation: gs-ping 2s ease-out infinite; }
@keyframes gs-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }

.gs-thumbs { display: flex; gap: 8px; margin-top: 14px; }
.gs-thumbs button {
  flex: 1 1 0; max-width: 130px; aspect-ratio: 16 / 9; padding: 0; cursor: pointer; border-radius: 9px;
  background: #000 center / cover no-repeat; border: 1px solid rgba(255, 255, 255, .12); opacity: .6;
  transition: opacity .25s, border-color .25s, box-shadow .25s;
}
.gs-thumbs button:hover { opacity: .9; }
.gs-thumbs button.is-on { opacity: 1; border-color: var(--gs-cyan); box-shadow: 0 0 12px rgba(45, 226, 230, .4); }

/* ============================== ریسپانسیو ============================== */
@media (max-width: 1100px) {
  .gs-frame { padding: 36px 28px; }
  .gs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; }
  .gs-visual { height: 540px; }
  .gs-scan { display: none; }
  .gs-line1 { white-space: normal; }
}
@media (max-width: 900px) {
  .gs { padding: 46px 0 20px; }
  .gs-frame { padding: 26px 18px; border-radius: 22px; }
  .gs-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gs-text { text-align: right; }
  .gs-visual { height: auto; display: flex; flex-direction: column; }
  .gs-visual::before { content: ''; display: block; aspect-ratio: 1 / .92; } /* جای کره */
  .gs-canvas { inset: 0 0 auto 0; height: auto; aspect-ratio: 1 / .92; }
  .gs-sphere-ph, .gs-orbit { left: 50%; top: 0; transform: translate(-50%, 0); margin-top: 6%; }
  .gs-sphere-ph { width: 80%; max-height: none; }
  .gs-orbit.o1, .gs-orbit.o2 { display: none; }
  .gs-input { top: 4px; width: 36%; transform: none; padding: 4px; border-radius: 12px; }
  .gs-input figcaption { bottom: 8px; right: 8px; font-size: 11px; padding: 3px 8px; }
  .gs-result { position: relative; width: 100%; max-width: none; margin-top: -40px; }
  .gs-features { gap: 8px; }
  .gs-features li { padding: 14px 6px; font-size: 12.5px; }
  .gs-features svg { width: 26px; height: 26px; }
  .gs-btn { padding: 13px 16px; font-size: 15px; }
}
@media (max-width: 480px) {
  .gs-result-img { width: 78px; height: 62px; }
  .gs-radar { display: none; }
  .gs-result-info b { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .gs *, .gs *::before, .gs *::after { animation: none !important; transition: none !important; }
}
