/* Trendbet site5 — Rehber teması, perde, koyu tema */
:root {
  color-scheme: dark;
  --tb-bg: #0b1220;
  --tb-surface: rgba(255, 255, 255, 0.03);
  --tb-border: rgba(255, 255, 255, 0.08);
  --tb-accent: #9fc2ff;
  --tb-accent-bg: rgba(159, 194, 255, 0.12);
  --tb-text: #eaf1ff;
  --tb-muted: #cfe0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  background: var(--tb-bg);
  color: var(--tb-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--tb-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Perde (curtain) */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(160deg, #060b12 0%, var(--tb-bg) 50%, #0a1222 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.curtain.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.curtain__logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--tb-accent), #6b8fd4);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  color: var(--tb-bg);
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(159, 194, 255, 0.3);
}
.curtain__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--tb-text);
  margin-bottom: 8px;
  text-align: center;
}
.curtain__title span { color: var(--tb-accent); }
.curtain__sub {
  font-size: 0.9rem;
  color: var(--tb-muted);
  margin-bottom: 28px;
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}
.curtain__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tb-accent-bg);
  color: var(--tb-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 0 20px rgba(159, 194, 255, 0.15);
}
.curtain__btn:hover {
  background: rgba(159, 194, 255, 0.22);
  transform: scale(1.03);
  text-decoration: none;
}
.curtain__hint { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 20px; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 16px; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tb-border);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--tb-text);
}
.brand-text span { color: var(--tb-accent); }
.brand-text:hover { text-decoration: none; opacity: 0.9; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
nav a {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--tb-surface);
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;
}
nav a:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }

main { padding: 18px 0 40px; }
article {
  border: 1px solid var(--tb-border);
  background: var(--tb-surface);
  border-radius: 18px;
  overflow: hidden;
}
.hero {
  padding: 18px 16px;
  border-bottom: 1px solid var(--tb-border);
  background: linear-gradient(180deg, rgba(159, 194, 255, 0.1), rgba(255, 255, 255, 0));
}
.hero h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; }
.hero p { margin: 0; color: var(--tb-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--tb-accent-bg);
  color: var(--tb-text);
  font-weight: 600;
  font-size: 14px;
}
.btn:hover { background: rgba(159, 194, 255, 0.18); text-decoration: none; }
.btn:focus { outline: 2px solid rgba(159, 194, 255, 0.55); outline-offset: 2px; }

section { padding: 16px; border-top: 1px solid var(--tb-border); }
h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
h3 { margin: 14px 0 8px; font-size: 18px; line-height: 1.25; }
p { margin: 0 0 10px; }
ul, ol { margin: 8px 0 10px; padding-left: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 14px;
}
.muted { color: #c6d7ff; }
.kpi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--tb-surface);
  font-size: 13px;
  color: #d9e6ff;
}
details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
}
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--tb-muted); }
footer {
  padding: 16px;
  border-top: 1px solid var(--tb-border);
  color: var(--tb-muted);
}
small { color: #b7ccff; }

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

@media (max-width: 780px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  nav ul { justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}
