/* Alfa Traders — Rehber modu: sayfa tanıtımları ve buton yanı ipuçları. */

.sg-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 7px 11px; border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, .42);
  background: rgba(251, 191, 36, .1);
  color: #fbbf24;
  font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.sg-toggle:hover { background: rgba(251, 191, 36, .2); border-color: #fbbf24; transform: translateY(-1px); }
.sg-toggle:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.sg-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #17130a; border-color: transparent;
}
.sg-toggle::before { content: '🧭'; font-size: 14px; line-height: 1; }
.navbar .sg-toggle { flex: none; }
#nav-mobile .sg-toggle { width: calc(100% - 24px); margin: 6px 12px 2px; justify-content: center; min-height: 42px; font-size: 13px; }
html[data-theme="light"] .sg-toggle { color: #92610a; background: rgba(251, 191, 36, .16); }
html[data-theme="light"] .sg-toggle[aria-pressed="true"] { color: #17130a; }

/* Rehber modunda üst menü ipuçlarına yer aç; normal modda dokunmayız. */
body.sg-active .navbar { flex-wrap: wrap; row-gap: 6px; }

/* --- Sayfa tanıtım paneli --- */
.sg-intro {
  position: relative;
  margin: 16px 0 20px; padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, .4);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(251, 191, 36, .14), transparent 58%),
    var(--card, #161832);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 34px rgba(0, 0, 0, .24);
  color: var(--text, #f4f5ff);
  font-family: 'Inter', sans-serif;
}
.sg-intro::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}
.sg-intro-kicker {
  display: inline-block; margin-bottom: 8px;
  color: #fbbf24; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase;
}
.sg-intro h2 {
  margin: 0 0 8px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(18px, 3vw, 23px); font-weight: 800; letter-spacing: -.015em;
}
.sg-intro p {
  margin: 0; max-width: 78ch;
  font-size: 13.5px; line-height: 1.7; color: var(--text-2, #a9add0);
}
.sg-intro ul {
  margin: 12px 0 0; padding: 0; list-style: none;
  display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.sg-intro li {
  position: relative; padding-left: 18px;
  font-size: 12.5px; line-height: 1.55; color: var(--text, #f4f5ff);
}
.sg-intro li::before {
  content: '›'; position: absolute; left: 0; top: 0;
  color: #fbbf24; font-weight: 800;
}
.sg-intro-foot {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--border, rgba(255,255,255,.14));
  color: var(--text-2, #a9add0); font-size: 11.5px;
}

/* --- Buton yanı ipuçları --- */
.sg-tip {
  display: inline-block; vertical-align: middle;
  max-width: 220px; margin: 0 6px;
  padding: 4px 8px; border-radius: 8px;
  border: 1px dashed rgba(251, 191, 36, .45);
  background: rgba(251, 191, 36, .07);
  color: #fbbf24;
  font-family: 'Inter', sans-serif; font-size: 10.5px; line-height: 1.4; font-weight: 600;
  white-space: normal;
  pointer-events: none;
}
.sg-tip::before { content: 'ⓘ '; opacity: .85; }
.sg-tip[data-sg-side="left"] { margin-left: 0; margin-right: 8px; }
.sg-tip[data-sg-side="right"] { margin-left: 8px; margin-right: 0; }
.sg-tip[data-sg-side="block"] { display: block; max-width: none; margin: 4px 0 8px; }

/* Üst menüde ipuçları satırı aşarsa yeni satıra geçsin. */
body.sg-active .navbar .sg-tip { max-width: 150px; font-size: 10px; }
body.sg-active .mnav-link + .sg-tip { max-width: none; }

html[data-theme="light"] .sg-intro { background: radial-gradient(120% 90% at 100% 0%, rgba(251,191,36,.16), transparent 58%), #fff; }
html[data-theme="light"] .sg-intro p,
html[data-theme="light"] .sg-intro-foot { color: #4b5068; }
html[data-theme="light"] .sg-intro li { color: #1a1d2b; }
html[data-theme="light"] .sg-tip { color: #92610a; background: rgba(251,191,36,.12); border-color: rgba(180,120,10,.5); }

/* --- Sağdaki detay kartı: hover / focus / uzun basış ile güncellenir --- */
.sg-detail {
  position: fixed; top: 112px; right: 18px; z-index: 650;
  width: 340px; max-width: calc(100vw - 36px);
  max-height: calc(100vh - 132px); overflow-y: auto;
  padding: 16px 16px 14px; border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, .45);
  background: linear-gradient(160deg, rgba(251,191,36,.09), transparent 42%), var(--card-2, #14162c);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--text, #f4f5ff); font-family: 'Inter', sans-serif;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(14px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
  scrollbar-width: thin;
}
.sg-detail.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.sg-detail.is-pinned { border-color: #fbbf24; box-shadow: 0 18px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(251,191,36,.35) inset; }
.sg-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sg-detail-kicker { flex: 1; color: #fbbf24; font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sg-detail-pin, .sg-detail-close {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 8px;
  background: transparent; color: var(--text-2, #a9add0); font-size: 13px; cursor: pointer;
}
.sg-detail-pin:hover, .sg-detail-close:hover { border-color: #fbbf24; color: #fbbf24; }
.sg-detail-pin[aria-pressed="true"] { color: #17130a; background: #fbbf24; border-color: #fbbf24; }
.sg-detail h3 { margin: 0 0 6px; font-family: 'Sora', 'Inter', sans-serif; font-size: 16px; line-height: 1.3; }
.sg-detail p { margin: 0 0 9px; font-size: 12px; line-height: 1.6; color: var(--text-2, #a9add0); }
.sg-detail .sg-detail-short { color: var(--text, #f4f5ff); font-weight: 600; }
.sg-detail .sg-detail-body { display: none; }
.sg-detail.is-expanded .sg-detail-body { display: block; }
.sg-detail-steps { display: none; margin: 10px 0 0; padding-left: 20px; }
.sg-detail.is-expanded .sg-detail-steps:not(.is-empty) { display: block; }
.sg-detail-steps li { margin-bottom: 6px; font-size: 11.5px; line-height: 1.5; color: var(--text, #f4f5ff); }
.sg-detail-steps li::marker { color: #fbbf24; font-weight: 800; }
.sg-detail-foot {
  margin-top: 12px !important; padding-top: 9px;
  border-top: 1px dashed var(--border, rgba(255,255,255,.14));
  font-size: 10px !important; color: var(--text-3, #7f85a8) !important;
}
html[data-theme="light"] .sg-detail { background: linear-gradient(160deg, rgba(251,191,36,.12), transparent 42%), #fff; }
html[data-theme="light"] .sg-detail h3,
html[data-theme="light"] .sg-detail .sg-detail-short,
html[data-theme="light"] .sg-detail-steps li { color: #1a1d2b; }
html[data-theme="light"] .sg-detail p { color: #4b5068; }
@media (prefers-reduced-motion: reduce) { .sg-detail { transition: none; } }

@media (max-width: 680px) {
  .sg-intro { margin: 12px 0 16px; padding: 15px 16px; border-radius: 13px; }
  .sg-intro ul { grid-template-columns: 1fr; }
  .sg-tip,
  body.sg-active .navbar .sg-tip {
    display: block; max-width: none; margin: 4px 0 8px; font-size: 11px;
  }
  .sg-detail {
    top: auto; bottom: 76px; left: 10px; right: 10px;
    width: auto; max-width: none; max-height: 52vh;
    padding: 14px;
  }
}
