/* Ziyaretler / Videolar / Reklamlar / Hatalar (web.js). Same tokens as styles.css. */

/* seven tabs: scroll sideways on phones instead of squeezing */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; white-space: nowrap; }

.wb { display: grid; gap: 16px; }
.wb-toolbar { display: grid; gap: 10px; }
.wb-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.wb-title { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0; }
.wb-tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.wb-tiles .tile { cursor: default; }

.wb-bars { display: grid; gap: 10px; }
.wb-bar { display: grid; gap: 5px; }
.wb-bar-head { align-items: baseline; display: flex; gap: 8px; font-size: 0.875rem; }
.wb-bar-head span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wb-toggle { background: none; border: 0; cursor: pointer; font-size: 0.8125rem; justify-self: start; padding: 0; }
.wb-video { color: inherit; cursor: pointer; font: inherit; text-align: left; width: 100%; }
.wb-video:hover { border-color: var(--line-2); }

.wb-chart { display: block; height: auto; width: 100%; }
.wb-grid { stroke: var(--line); stroke-width: 1; }
.wb-axis { fill: var(--faint); font: 10px var(--mono); }
.wb-line { fill: none; stroke: var(--brand); stroke-linejoin: round; stroke-width: 2; }
.wb-area { fill: var(--brand-wash); }

.wb-form .field small { margin-top: 2px; }
.wb-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-check { align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; display: inline-flex; gap: 8px; min-height: 44px; padding: 0 14px; }
.wb-check input { accent-color: var(--brand); height: 18px; width: 18px; }
.wb-off { opacity: 0.75; }
.wb-media-box { display: grid; }
.wb-media { background: #000; border-radius: 12px; max-height: 320px; object-fit: contain; width: 100%; }

.wb-message { font-size: 0.9375rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.wb-shot { border: 1px solid var(--line-2); border-radius: 12px; display: block; max-height: 240px; max-width: 100%; }
.wb-errors summary { color: var(--muted); cursor: pointer; font-size: 0.8125rem; }
.wb-errors pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font: 12px/1.5 var(--mono); margin: 8px 0 0; overflow: auto; padding: 10px; white-space: pre-wrap; }
.ok { color: var(--ok); }

@media (min-width: 700px) {
  .wb-tiles { grid-template-columns: repeat(5, 1fr); }
  .wb-toolbar { grid-template-columns: auto 1fr; }
}

/* A/B testi kartı */
.wb-ab-arms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-ab-arm { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wb-ab-arm.is-win { border-color: #3ddc97; }
.wb-ab-name { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.wb-ab-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(61,220,151,.15); color: #3ddc97; }
.wb-ab-rate { font-size: 28px; font-weight: 900; line-height: 1.1; }
.wb-ab-note { margin: 12px 0 6px; font-weight: 700; }
.wb-ab-note.is-erken { color: #f5c451; }
.wb-ab-note.is-anlamli { color: #3ddc97; }

/* Trafik (Umami benzeri) */
.wb-col { fill: var(--brand, #ff00ff); opacity: .85; }
.wb-col:hover { opacity: 1; }
.wb-live { align-items: center; color: #8ff0c0; display: inline-flex; font-weight: 700; gap: 8px; margin: 4px 0 2px; }
.wb-live i { background: #3ddc97; border-radius: 50%; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); height: 8px; width: 8px; }
