/**
 * res/ui/bottombar.css — ALT ÇUBUK (WEBSHOP · BUG REPORT) + HATA BİLDİRİMİ EKRANI
 *
 * ⛔ ESKİ ADI `webchat.css` İDİ ve 416 satırının çoğu web sohbetine aitti
 *    (panel, sekmeler, mesaj listesi, PM satırı, ayarlar, okunmamış rozeti).
 *    Sohbet kullanıcı kararıyla tamamen kaldırıldı; burada yalnız hâlâ
 *    KULLANILAN kurallar var. Silinen dosyalar: `chat/index.php` ·
 *    `sf/webchat.php` · `res/ui/webchat.js` · `res/ui/webchat.css` ·
 *    `res/ui/chatbar.js`.
 *
 * ⚠️ Sınıf öneki `wc-` olarak KALDI: `chat/bug.php` ve `res/ui/bugreport.js`
 *    içindeki seçicilerle uyum için. Önek yalnız bir ad alanı.
 *
 * ⚠️⚠️ BOX-SIZING — İLK SÜRÜMÜN BOZUK GÖRÜNMESİNİN SEBEBİ BUYDU
 *   `index.php` içinde `* { margin:0; padding:0; font-family:sans-serif }` var ama
 *   **`box-sizing: border-box` YOK**. Varsayılan `content-box` ile `width:100%` +
 *   `padding` toplanıyor → kutular kabından taşıyor, düğmeler yamuk duruyor.
 *   Bu yüzden AŞAĞIDAKİ İLK KURAL zorunlu. (Aynı hata daha önce `#menuButton`de de
 *   yaşandı: 150×34 istenirken 174×58 çıkmıştı — index.php'deki nota bak.)
 *
 * ⚠️ KAPSAM: yalnız `wc-` önekli sınıflar. Oyun bir Unity tuvali; genel seçici
 *    (button/input/div) yazmak arayüzü bozar.
 */

/* ── HER ŞEYDEN ÖNCE ──────────────────────────────────────────────────────
   Bu dosya İKİ yerde yükleniyor:
     1. Oyun sayfası (index.php) → `.wc-bar` ve hata bildirimi katmanı
     2. Hata bildirimi sayfası (chat/bug.php) → iframe'in İÇİ, `body.wc-body`
   Oyun sayfasında `box-sizing` reset'i YOK; bug sayfasında biz veriyoruz. */
.wc-bar, .wc-bar *,
.wc-bugov, .wc-bugov * {
	box-sizing: border-box;
	font-family: "Trebuchet MS", Verdana, sans-serif;
}

:root {
	--wc-gold: #e8c46a;
	--wc-gold-dim: #b8913f;
	--wc-bg: #0a1f27;
	--wc-bg2: #0d2c37;
	--wc-line: rgba(120, 165, 185, .22);
	--wc-txt: #d9e8f0;
	--wc-dim: #7fa0b0;
}

/* iframe içindeki sayfanın gövdesi (chat/bug.php) */
body.wc-body {
	margin: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wc-bg);
	color: var(--wc-txt);
	font-family: "Trebuchet MS", Verdana, sans-serif;
}
body.wc-body * { box-sizing: border-box; }

/* Eski kenar-çubuğu "panel" düğmesi: çubuk GERÇEKTEN kurulunca gizlenir.
   JS patlarsa görünür kalır ve oyuncu menüsüz kalmaz (bilinçli yedek yol). */
body.wc-ready #menuButton { display: none !important; }

/* ── ALT ÇUBUK — SÜSLÜ PLAKA DÜĞMELER  (D-244) ────────────────────────────
   ★ Düğmeler artık METİN değil GÖRSEL: `res/theme/btn-webshop.webp` ve
     `btn-bugreport.webp`. Yazı ("WEBSHOP" / "REPORT BUG") görselin İÇİNDE —
     altın çerçeve, mavi taşlar, kese/parşömen simgesi.
   ⚠️ İkisi de AYNI tuvalden (2172×724) BİRLEŞİK kutuyla kırpıldı → 440×138,
     oran 3.19. Aynı ölçek ⇒ iç plakalar yan yana hizalı durur.

   ⚠️ ÇUBUĞUN KENDİ ÇERÇEVESİ KALDIRILDI: plakaların kendi altın çerçevesi var,
     üstüne bir de kutu çizmek çift çerçeve demekti. */
.wc-bar {
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	z-index: 1900;   /* ⚠️ menü overlay 2100, shop overlay 2000 — çubuk ONLARIN ALTINDA kalmalı */
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 0 6px 2px;
	/* ↓ eski kutu görünümü bilerek sıfırlandı (yukarıdaki not) */
	width: auto;
	max-width: 100vw;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.wc-btn {
	/* Plaka oranı sabit; genişlik ekrana göre esner. `aspect-ratio` sayesinde
	   yükseklik hesaplanmış bir sayı DEĞİL, görselin kendi oranı. */
	flex: 0 0 auto;
	width: clamp(146px, 21vw, 212px);
	height: auto;
	aspect-ratio: 2161 / 680;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent center / 100% 100% no-repeat;
	cursor: pointer;
	/* Sadece `transform` ve `filter` animasyonlanıyor → yerleşim tetiklenmiyor. */
	transition: transform .18s cubic-bezier(.22,.68,.32,1), filter .18s;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55));
}
.wc-shop { background-image: url("/res/theme/btn-webshop.webp"); }
.wc-bug  { background-image: url("/res/theme/btn-bugreport.webp"); }

.wc-btn:hover {
	transform: translateY(-3px);
	filter: brightness(1.1) drop-shadow(0 6px 16px rgba(232, 196, 106, .3));
}
.wc-btn:active { transform: translateY(1px); filter: brightness(.94); }
.wc-btn:focus-visible { outline: 2px solid var(--wc-gold); outline-offset: 3px; border-radius: 8px; }

/* ⚠️ ETİKET GÖRSEL OLARAK GİZLENİR, DOM'DAN SİLİNMEZ: yazı zaten plakanın
   üstünde basılı. `display:none` deseydim ekran okuyucu düğmeyi ADSIZ okurdu.
   (Eski dosyada dar ekranda `.wc-label{display:none}` vardı ve düğmeleri
   BOMBOŞ bırakıyordu — o zaman simge yoktu; şimdi görsel var, sorun tersine
   döndü: etiketi gizlemek DOĞRU, ama erişilebilir kalmalı.) */
.wc-label {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.wc-btn { transition: none; }
	.wc-btn:hover { transform: none; }
}

/* ── ORTAK KÜÇÜK PARÇALAR (hata bildirimi formu kullanıyor) ───────────── */
.wc-empty { padding: 18px 10px; text-align: center; color: var(--wc-dim); font-size: 12px; }

.wc-tag {
	flex: 0 0 auto;
	font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px;
	color: #17110a; background: var(--wc-gold);
	border-radius: 3px; padding: 2px 5px; line-height: 1;
}
.wc-tag.pm { background: #7aa8dd; color: #071522; }   /* "open" rozeti bunu kullaniyor */

.wc-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 34px;
	padding: 0 10px;
	font-size: 13px;
	color: #e6f2f8;
	background: #061820;
	border: 1px solid var(--wc-line);
	border-radius: 5px;
}
.wc-input::placeholder { color: #567483; }
.wc-input:focus { outline: none; border-color: var(--wc-gold-dim); background: #08202a; }
.wc-input:disabled { opacity: .5; }

.wc-send {
	flex: 0 0 auto;
	height: 34px;
	padding: 0 16px;
	font-size: 12px; font-weight: bold;
	color: #17110a;
	background: linear-gradient(180deg, var(--wc-gold), var(--wc-gold-dim));
	border: 0; border-radius: 5px; cursor: pointer;
}
.wc-send:hover { filter: brightness(1.1); }
.wc-send:disabled { opacity: .45; cursor: default; filter: none; }

.wc-note { flex: 0 0 auto; padding: 0 10px 6px; font-size: 11px; color: var(--wc-dim); min-height: 15px; }
.wc-note.err { color: #eaa898; }

/* ══ HATA BİLDİRİMİ — KENDİ PENCERESİ (chat/bug.php, iframe) ══════════════
   ★ TEMA (D-244): bu ekran için GÖRSEL VERİLMEDİ (`xxx/` altında yalnız iki
     düğme var). Atmosfer tamamen CSS: gradyan, pseudo-element, gölge.
     Ödeme ekranıyla (D-242) aynı yaklaşım.
   ★ Kavram: "kâtibin masası" — parşömen, mürekkep, mum ışığı. Bir hata
     bildirimi ekranı SAKİN olmalı; oyuncu zaten sinirli gelmiş olabilir.
     O yüzden nabız/sayaç/parıltı YOK, yalnız çok yavaş mum ışığı. */
.wc-bugov {
	position: fixed; inset: 0; z-index: 1950;   /* çubuğun üstü, menü overlay'inin altı */
	background: radial-gradient(120% 90% at 50% 45%, rgba(4, 12, 20, .74), rgba(2, 6, 11, .88));
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	display: none; align-items: center; justify-content: center;
	padding: 20px;
}
body.wc-bugopen .wc-bugov { display: flex; animation: wcFade .26s cubic-bezier(.22,.68,.32,1); }
@keyframes wcFade { from { opacity: 0 } to { opacity: 1 } }
.wc-bugframe {
	width: 100%; max-width: 560px; height: 100%; max-height: 620px;
	border: 1px solid rgba(232, 196, 106, .5);
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .75),
	            0 0 0 1px rgba(232, 196, 106, .16),
	            0 0 40px rgba(60, 120, 170, .18);
	background: var(--wc-bg);
	display: block;
	animation: wcPop .3s cubic-bezier(.22,.9,.3,1.02);
}
@keyframes wcPop { from { transform: translateY(12px) scale(.985); opacity: 0 } to { transform: none; opacity: 1 } }

/* ── Hata bildirimi SAYFASI (iframe içi) ─────────────────────────────────── */
body.wc-bugpage {
	display: flex; flex-direction: column;
	position: relative;
	background: #071a22;
}
/* Mahzen zemini: koyu radyal + kenar vinyeti. */
body.wc-bugpage::before {
	content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(120% 76% at 50% 0%, rgba(18, 60, 73, .5), transparent 62%),
		radial-gradient(90% 70% at 50% 50%, transparent 45%, rgba(3, 10, 15, .55) 100%);
}
/* Mum ışığı: 11 sn'de bir nefes. Tek katman, yalnız `opacity`. */
body.wc-bugpage::after {
	content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
	background:
		radial-gradient(24% 20% at 8% 12%, rgba(255, 186, 96, .12), transparent 72%),
		radial-gradient(22% 18% at 93% 84%, rgba(79, 216, 208, .08), transparent 74%);
	animation: wcCandle 11s ease-in-out infinite;
}
@keyframes wcCandle { 50% { opacity: .24 } }
/* İçerik zeminin ÜSTÜNDE kalmalı. */
body.wc-bugpage > * { position: relative; z-index: 1; }

.wc-bughead {
	flex: 0 0 auto;
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	height: 46px; padding: 0 6px 0 14px;
	background: linear-gradient(180deg, #123c49, #0a222b);
	border-bottom: 1px solid rgba(232, 196, 106, .28);
	color: var(--wc-gold); font-size: 13px; font-weight: bold;
	text-transform: uppercase; letter-spacing: .7px;
	box-shadow: 0 1px 0 rgba(232, 196, 106, .1) inset, 0 2px 10px rgba(0, 0, 0, .4);
}
/* Başlıktaki parşömen/böcek simgesi (bug.php'de satır içi SVG). */
.wc-bughead .wc-ic { flex: 0 0 auto; width: 18px; height: 18px; }
.wc-bughead > span:first-of-type { display: inline-flex; align-items: center; gap: 9px; }
/* Başlığın altına ince altın gradyan çizgi — landing/ödeme ile aynı dil. */
.wc-bughead::after {
	content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(232, 196, 106, .5), transparent);
	pointer-events: none;
}
/* ⚠️ Kapatma çarpısı: `flex: 0 0 auto` + `margin-left:auto` ile SAĞ ÜSTE
   sabitleniyor. Önceki sürümde başlık düz bir metin düğümüydü ve çarpı ORTAYA
   kayıyordu (kullanıcı bildirdi) — başlık artık gerçek bir öğe. */
.wc-bugclose {
	flex: 0 0 auto; margin-left: auto;
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	background: none; border: 0; color: var(--wc-gold);
	font-size: 24px; line-height: 1; cursor: pointer; border-radius: 5px;
	font-family: sans-serif;
}
.wc-bugclose:hover { background: rgba(232, 196, 106, .15); color: #fff; }

.wc-buglist { flex: 0 0 auto; padding: 10px 12px; border-top: 1px solid var(--wc-line); background: rgba(6, 20, 26, .5); }
.wc-buglist-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--wc-dim); margin-bottom: 6px; }
.wc-bugrow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.wc-bugsub { font-size: 12px; color: var(--wc-txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Form alanları (hata bildirimi sayfası) ──────────────────────────── */
.wc-bugform { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px; overflow-y: auto; }
.wc-field { margin-bottom: 12px; }
.wc-field label {
	display: block; margin-bottom: 5px;
	font-size: 10.5px; font-weight: bold; text-transform: uppercase;
	letter-spacing: .6px; color: var(--wc-dim);
}
.wc-field .wc-input { width: 100%; }
.wc-textarea {
	width: 100%; min-height: 110px; padding: 9px 10px;
	font-size: 13px; line-height: 1.5; color: #e6f2f8;
	background: #061820; border: 1px solid var(--wc-line); border-radius: 5px;
	resize: vertical; font-family: inherit;
}
/* ── Alanlar: odakta çok kısık altın ışıma (parşömene mürekkep) ─────────── */
.wc-input, .wc-textarea { transition: border-color .18s, box-shadow .18s, background .18s; }
.wc-input:focus, .wc-textarea:focus {
	outline: none;
	border-color: var(--wc-gold-dim);
	background: #08222c;
	box-shadow: 0 0 0 1px rgba(232, 196, 106, .22), inset 0 0 16px rgba(232, 196, 106, .07);
}
/* Doldurulmuş alan hafifçe belli olsun — "bu kısmı yazdım" geri bildirimi. */
.wc-input:not(:placeholder-shown), .wc-textarea:not(:placeholder-shown) {
	border-color: rgba(232, 196, 106, .3);
}

/* ── GÜVENLİK MÜHRÜ: captcha kabı ────────────────────────────────────────
   ⚠️ Captcha GÜVENLİK KRİTİĞİ (dosya başı notu): bu ekran doğrudan ticket
      açıyor. Sarmalayıcı YALNIZ görsel — doğrulama `chat/api.php` içinde,
      buradaki hiçbir kural ona dokunmuyor. Okunabilirlik önemli olduğu için
      captcha'nın ETRAFINDA animasyon YOK. */
.wc-seal {
	position: relative;
	padding: 10px 11px 11px;
	border-radius: 6px;
	background: linear-gradient(180deg, rgba(8, 24, 32, .86), rgba(5, 15, 21, .92));
	border: 1px solid rgba(79, 216, 208, .26);
	box-shadow: inset 0 0 18px rgba(79, 216, 208, .05);
}
.wc-seal > .wc-seal-t {
	display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
	font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: #7fc9c3;
}
.wc-seal > .wc-seal-t svg { width: 12px; height: 12px; flex: 0 0 12px; }

/* ── Gönder düğmesi: altın mühür ─────────────────────────────────────────── */
.wc-send { position: relative; overflow: hidden; letter-spacing: .6px; }
.wc-send::before {
	content: ""; position: absolute; inset: 0; transform: translateX(-130%);
}
.wc-send:hover::before {
	transition: transform .6s cubic-bezier(.22,.68,.32,1); transform: translateX(130%);
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
}
.wc-send:not(:disabled):hover { transform: translateY(-1px); }
.wc-send:not(:disabled):active { transform: translateY(1px); }

/* ── Gönderilmiş rapor listesi ───────────────────────────────────────────── */
.wc-bugrow { transition: background .15s; border-radius: 4px; }
.wc-bugrow:hover { background: rgba(232, 196, 106, .06); }

@media (prefers-reduced-motion: reduce) {
	body.wc-bugpage::after { animation: none; }
	body.wc-bugopen .wc-bugov, .wc-bugframe { animation: none; }
	.wc-send:hover::before { transition: none; }
	.wc-send:not(:disabled):hover { transform: none; }
}
.wc-bugfoot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: auto; padding-top: 10px; border-top: 1px solid var(--wc-line);
}
.wc-bugfoot .wc-note { padding: 0; flex: 1 1 auto; min-height: 0; }

/* Captcha alanı — `sf_captcha_css()` kendi kurallarını getiriyor; burada yalnız
   kaba oturması için hizalama. */
.wc-field img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

/* ── MOBİL ────────────────────────────────────────────────────────────── */
/* ⚠️ Eski dosyada burada `.wc-btn .wc-label { display: none }` vardı ve dar
   ekranda düğmeleri BOMBOŞ bırakıyordu — etiket düğmenin tek içeriği, simge
   yok. (Sohbet düğmesinde ▲ oku kaldığı için sorun yalnız diğer ikisinde
   görünüyordu.) Kural kaldırıldı; yazı küçülüyor ama okunur kalıyor. */
/* ⚠️ ARTIK YAZI KÜÇÜLTMEK ANLAMSIZ: düğmeler görsel plaka, yazı görselin içinde.
   Dar ekranda yapılacak tek şey plakayı küçültmek. */
@media (max-width: 700px) {
	.wc-bar { gap: 5px; padding: 0 4px 2px; }
	.wc-btn { width: clamp(112px, 30vw, 160px); }
}
@media (max-width: 380px) {
	.wc-btn { width: 44vw; }
}
