/* Top.gg Overview iframe'i (/topggoverview). Discord sahneleri dashboard.css'ten gelir.
   Arka plan Top.gg sayfasıyla aynıdır; iframe içeriğinden uzun kalırsa boşluk görünmez. */
:root {
  --tg-bg: #070510;
  --tg-card: #100c1d;
  --tg-card-raised: #171229;
  --tg-line: #ffffff14;
  --tg-pink: #ff3366;
  --tg-pink-soft: #ff33661f;
}

html { overflow-x: hidden; scroll-behavior: auto; scrollbar-gutter: auto; }
body.tg { min-width: 0; background: var(--tg-bg); }
.tg-page { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; padding: 2px 2px 28px; }
.tg code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }

.tg-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #c9c3dd; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.tg-eyebrow::before { content: ''; width: 18px; height: 2px; flex-shrink: 0; border-radius: 9px; background: linear-gradient(90deg, var(--tg-pink), var(--blurple)); }
.tg h1 { margin: 14px 0 12px; font-size: clamp(31px, 6vw, 46px); line-height: 1.12; letter-spacing: -1.8px; }
.tg h2 { margin-top: 8px; font-size: clamp(24px, 4.4vw, 30px); letter-spacing: -1.1px; }
.tg h1, .tg h2 { text-wrap: balance; }
.tg-word { white-space: nowrap; }
.tg-underline { position: relative; color: var(--tg-pink); }
.tg-underline::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: -7px; height: 8px; border-top: 3px solid #ff336680; border-radius: 50%; transform: rotate(-2deg); }
.tg-spark { display: inline-block; margin-left: 8px; color: var(--light-blurple); font-size: .62em; font-weight: 400; vertical-align: .55em; }

/* Top.gg iframe'inde bağlantılar çalışmaz; davet ve oy için Top.gg'nin kendi butonları gösterilir. */
.tg-hint { display: inline-block; margin-top: 18px; padding: 8px 14px; border: 1px dashed #ff336666; border-radius: 14px; color: var(--muted-strong); font-size: 13px; line-height: 1.9; }
.tg-hint > span { display: inline-block; margin-right: 4px; color: var(--tg-pink); font-weight: 800; }
.tg-key { display: inline-block; padding: 1px 9px; border-radius: 7px; background: #ffffff17; color: #fff; font-size: .92em; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.tg-key-invite { background: var(--tg-pink); }

.tg-hero { display: grid; gap: 24px; overflow: hidden; padding: 28px 20px 20px; border: 1px solid var(--tg-line); border-radius: 20px; background: radial-gradient(circle at 100% 0%, #5865f22e, transparent 55%), radial-gradient(circle at 0% 100%, #ff33661c, transparent 55%), var(--tg-card); }
.tg-hero-copy > p { max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.tg-hero-visual { min-width: 0; }
.tg-command-note { display: block; margin-bottom: 10px; color: var(--light-blurple); font-size: 13px; text-align: right; transform: rotate(-1.5deg); }
.tg-command-note code { padding: 2px 7px; border-radius: 6px; background: #5865f22b; font-size: 12px; }

/* Discord sahneleri */
.tg .feature-preview { margin: 0; }
.tg .feature-preview-window { border: 1px solid #ffffff14; border-radius: 14px; }
.tg .feature-preview-body { min-height: 0; gap: 14px; padding: 16px; }
.tg-server { display: none; width: 170px; flex: 0 0 auto; padding: 12px 8px; border-right: 1px solid #111216; background: #202127; }
.tg-server-name { margin: 0 6px 6px; padding-bottom: 10px; border-bottom: 1px solid #ffffff12; color: #f2f3f5; font-size: 12px; font-weight: 800; }
.tg-server strong { display: block; margin: 10px 6px 3px; color: #949ba4; font-size: 9px; letter-spacing: .5px; }
.tg-channel { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 7px; border-radius: 4px; color: #c7cad1; font-size: 11px; white-space: nowrap; }
.tg-channel span { overflow: hidden; text-overflow: ellipsis; }
.tg-channel b { color: #57f287; font-size: 10px; }

.tg-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tg-facts li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border: 1px solid var(--tg-line); border-radius: 12px; background: var(--tg-card); color: var(--muted-strong); font-size: 13px; font-weight: 600; line-height: 1.3; }
.tg-facts b { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: var(--tg-pink-soft); color: #ff7a9a; font-size: 14px; }

.tg-section { display: grid; gap: 16px; padding-top: 14px; }

/* Radyo düğmeleri sekme satırının üstünde durur; odaklanınca iframe veya Top.gg sayfası kaymaz. */
.tg-tabs { position: relative; }
.tg-tab-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tg-tablist { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-tablist label { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 13px; border: 1px solid var(--tg-line); border-radius: 999px; background: var(--tg-card); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; user-select: none; transition: color .2s, border-color .2s, background .2s; }
.tg-tablist label:hover { border-color: #ffffff30; color: #fff; }
#tg-tab-oyunlar:checked ~ .tg-tablist [for="tg-tab-oyunlar"],
#tg-tab-koruma:checked ~ .tg-tablist [for="tg-tab-koruma"],
#tg-tab-topluluk:checked ~ .tg-tablist [for="tg-tab-topluluk"],
#tg-tab-cekilis:checked ~ .tg-tablist [for="tg-tab-cekilis"],
#tg-tab-sohbet:checked ~ .tg-tablist [for="tg-tab-sohbet"] { border-color: #ff336685; background: var(--tg-pink-soft); color: #fff; }
#tg-tab-oyunlar:focus-visible ~ .tg-tablist [for="tg-tab-oyunlar"],
#tg-tab-koruma:focus-visible ~ .tg-tablist [for="tg-tab-koruma"],
#tg-tab-topluluk:focus-visible ~ .tg-tablist [for="tg-tab-topluluk"],
#tg-tab-cekilis:focus-visible ~ .tg-tablist [for="tg-tab-cekilis"],
#tg-tab-sohbet:focus-visible ~ .tg-tablist [for="tg-tab-sohbet"] { outline: 3px solid var(--light-blurple); outline-offset: 2px; }
/* Paneller aynı hücrede durur; yükseklik en uzun panele göre sabit kalır, sekme değişince sayfa zıplamaz. */
.tg-panels { display: grid; margin-top: 12px; }
.tg-panel { grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; padding: 18px; border: 1px solid var(--tg-line); border-radius: 18px; background: radial-gradient(circle at 100% 100%, #5865f214, transparent 50%), var(--tg-card); opacity: 0; visibility: hidden; }
#tg-tab-oyunlar:checked ~ .tg-panels [data-tab="oyunlar"],
#tg-tab-koruma:checked ~ .tg-panels [data-tab="koruma"],
#tg-tab-topluluk:checked ~ .tg-panels [data-tab="topluluk"],
#tg-tab-cekilis:checked ~ .tg-panels [data-tab="cekilis"],
#tg-tab-sohbet:checked ~ .tg-panels [data-tab="sohbet"] { opacity: 1; visibility: visible; }
.tg-panel-copy { min-width: 0; }
.tg-panel-copy h3 { font-size: 20px; letter-spacing: -.6px; }
.tg-panel-copy p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tg-commands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tg-commands code { padding: 4px 9px; border: 1px solid #5865f259; border-radius: 7px; background: #5865f21a; color: #dfe2ff; font-size: 12px; }
.tg-panel .feature-preview-body { min-height: 190px; }
/* Pencere panel boyunca uzar; kısa sahneler ortalanır, tüm sekmelerde pencere boyu aynı görünür. */
.tg-panel .feature-preview, .tg-panel .feature-preview-window, .tg-panel .feature-preview-layout, .tg-panel .feature-preview-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tg-panel .feature-preview-body { flex: 1; }

.tg-promises { display: grid; gap: 10px; }
.tg-promises article { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 3px 13px; align-content: start; min-width: 0; padding: 16px; border: 1px solid var(--tg-line); border-radius: 16px; background: var(--tg-card); }
.tg-promises span { display: grid; place-items: center; width: 36px; height: 36px; grid-row: span 2; border-radius: 10px; background: #5865f226; color: var(--light-blurple); font-size: 19px; }
.tg-promises article:nth-child(2) span { background: var(--tg-pink-soft); color: #ff7a9a; }
.tg-promises article:nth-child(3) span { background: #f0b2321f; color: #f0b232; }
.tg-promises article:nth-child(4) span { background: #23a55924; color: #57f287; }
.tg-promises h3 { font-size: 16px; letter-spacing: -.4px; }
.tg-promises p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.tg-music { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px dashed #5865f266; border-radius: 12px; color: var(--muted); font-size: 13px; }
.tg-music span { color: #b9c0ff; font-size: 18px; }

.tg-closing { margin-top: 14px; padding: 32px 20px; border: 1px solid #ff336640; border-radius: 20px; background: radial-gradient(circle at 50% 0%, #ff336626, transparent 62%), linear-gradient(160deg, #1b1430, #0f0c1d 70%); text-align: center; }
.tg-closing h2 { margin-top: 12px; }
.tg-closing p { max-width: 520px; margin: 10px auto 0; color: var(--muted-strong); font-size: 14px; line-height: 1.9; }
.tg-closing code { color: #dfe2ff; font-size: 13px; }
.tg-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; color: var(--muted); font-size: 12px; }
.tg-footer img { border-radius: 50%; }

@media (min-width: 560px) {
  .tg-hero { padding: 30px 26px 26px; }
  .tg-server { display: block; }
  .tg-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 680px) {
  .tg-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tg-panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: 1fr; gap: 22px; padding: 22px; }
  .tg-panel-copy { align-self: center; }
  .tg-closing { padding: 38px 28px; }
}
@media (min-width: 820px) {
  .tg-hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 28px; padding: 34px 30px; }
  .tg-hero .tg-server { width: 150px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tg-channel { animation: tg-channel-in .5s both; animation-delay: calc(var(--tg-order) * 110ms + 250ms); }
  .tg-channel b { animation: tg-pop .3s both; animation-delay: calc(var(--tg-order) * 110ms + 550ms); }
  .tg-panel { transition: opacity .25s, visibility 0s .25s; }
  #tg-tab-oyunlar:checked ~ .tg-panels [data-tab="oyunlar"],
  #tg-tab-koruma:checked ~ .tg-panels [data-tab="koruma"],
  #tg-tab-topluluk:checked ~ .tg-panels [data-tab="topluluk"],
  #tg-tab-cekilis:checked ~ .tg-panels [data-tab="cekilis"],
  #tg-tab-sohbet:checked ~ .tg-panels [data-tab="sohbet"] { transition: opacity .25s; }
  /* Seçilen sekmede mesajlar yeniden sırayla belirir. */
  #tg-tab-oyunlar:checked ~ .tg-panels [data-tab="oyunlar"] .feature-preview-body > *,
  #tg-tab-koruma:checked ~ .tg-panels [data-tab="koruma"] .feature-preview-body > *,
  #tg-tab-topluluk:checked ~ .tg-panels [data-tab="topluluk"] .feature-preview-body > *,
  #tg-tab-cekilis:checked ~ .tg-panels [data-tab="cekilis"] .feature-preview-body > *,
  #tg-tab-sohbet:checked ~ .tg-panels [data-tab="sohbet"] .feature-preview-body > * { animation-name: tg-message-in; }
  @keyframes tg-message-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes tg-channel-in { 0% { opacity: 0; transform: translateX(-8px); background: #5865f23b; } 60% { opacity: 1; transform: none; background: #5865f23b; } 100% { background: transparent; } }
  @keyframes tg-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
  .tg-hint > span { animation: tg-nudge 1.6s ease-in-out infinite; }
  @keyframes tg-nudge { 50% { transform: translateY(-3px); } }
}
