/*
Theme Name: Hangi Platformda v5
Theme URI: https://example.com/
Author: Efe Atasoy
Author URI: https://efatasoy.com/
Description: Hangi Platformda? - gerçek Geliştirilmiş sürüm (mobil uyum, dark/light, platform filtreli random)
Version: 5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hangiplatformda
*/

@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0d0d0d;
  color: #f0f0f0;
  margin: 0; padding: 0;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
body.light { background:#f5f5f5; color:#111; }

header {
  text-align:center;
  padding:1rem;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
}
header h1 { margin:0; font-size:2.5rem; font-weight:700; flex-basis:100%; }
header p { margin-top:0.5rem; color:#aaa; flex-basis:100%; }

main { padding:20px; max-width:1100px; margin:auto; }

.search-bar {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:24px;
  justify-content:center;
}
#searchInput { flex:1; min-width:200px; padding:12px 15px; font-size:1rem; border-radius:12px; border:none; outline:none; background:#1a1a1a; color:#f0f0f0; }
body.light #searchInput { background:#eee; color:#111; }
button, select {
  padding:12px 20px; font-size:1rem; cursor:pointer; border:none; border-radius:12px;
  background:#2b2b2b; color:#fff; font-weight:600; transition:0.3s;
}
body.light button, body.light select { background:#ddd; color:#111; }
button:hover, select:hover { transform:scale(1.05); }

.film { background:#1a1a1a; margin:20px 0; padding:20px; border-radius:16px; transition:0.3s; cursor:pointer; }
body.light .film { background:#fff; color:#111; }
.film:hover { transform:scale(1.02); }

.platforms img { height:24px; margin:2px; vertical-align:middle; }

.modal { display:none; position:fixed; z-index:999; left:0; top:0; width:100%; height:100%; overflow:auto; background-color:rgba(0,0,0,0.95); backdrop-filter:blur(6px); }
.modal-content { background:#1a1a1a; margin:8% auto; padding:20px; border-radius:16px; width:90%; max-width:700px; color:#fff; position:relative; }
.close { color:#ff4d4d; position:absolute; top:15px; right:20px; font-size:28px; font-weight:bold; cursor:pointer; }
.modal-content img { max-width:200px; float:left; margin-right:20px; border-radius:10px; }

@media (max-width:600px){
  .search-bar { flex-direction:column; gap:10px; }
  #searchInput, button, select { width:100%; }
  .modal-content img { float:none; display:block; margin:0 auto 15px; max-width:80%; }
}

/* ============================
   ÇETO PATCH — UI iyileştirmeleri
   ============================ */

/* 1) Arama inputu: içe doğru boşluk + temizle (x) ikon alanı */
#searchInput { padding-right: 44px; }
#searchInput[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 18px; width: 18px;
  margin-right: 10px;
  cursor: pointer;
  background: no-repeat center / contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23aaa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>');
  opacity: .8;
}
#searchInput[type="search"]::-webkit-search-cancel-button:hover { opacity: 1; }
#searchInput:focus { outline: 2px solid #ffd400; outline-offset: 2px; }

/* 2) Select placeholder görünümü */
select:invalid { color: #999; }
body.light select:invalid { color: #777; }
select option[disabled][selected] { color: #999; }

/* 3) Arama butonu sarı */
.search-bar button {
  background: #ffd400;
  color: #111;
  box-shadow: 0 0 0 0 rgba(255,212,0,0.6);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.search-bar button:hover { transform: translateY(-1px); filter: brightness(0.98); }
.search-bar button:active { transform: translateY(0); filter: brightness(0.95); }
.search-bar button:focus { outline: 2px solid #111; outline-offset: 2px; }
body.light .search-bar button { background: #ffd400; color: #111; }


/* 4) Logo / grid hizası — responsive, taşma yok */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px 12px; align-items: center; }
.platforms img { height: 24px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }

/* 5) Boş içerik mesajı — tek tip */
.empty-state { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #161616; color: #ddd; font-size: .95rem; }
body.light .empty-state { background: #eaeaea; color: #222; }

/* 6) Kart hover efekti */
.film { transform: translateZ(0); will-change: transform; }
.film:hover { transform: scale(1.015); }

/* 7) Mobil: arama alanları ferah */
@media (max-width:600px){
  .search-bar { gap: 12px; }
  #searchInput { font-size: 1.05rem; }
  .search-bar button, .search-bar select { font-size: 1.05rem; }
}

/* ===== Apple-grade Global Overhaul (Çeto) ===== */
:root{
  --bg:#fbfbfd; --surface:#ffffff; --text:#0b0b0c; --muted:#6e6e73; --line:rgba(0,0,0,.08);
  --radius:16px; --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 10px 30px rgba(0,0,0,.12);
  --easing:cubic-bezier(.22,.61,.36,1);
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#0a0a0a; --surface:#111114; --text:#f5f5f7; --muted:#9a9aa2; --line:rgba(255,255,255,.08); --shadow-md:0 10px 30px rgba(0,0,0,.4); }
}
html{ color-scheme:light dark }
body{ background:var(--bg); color:var(--text); letter-spacing:-.01em; }
.container{ max-width:1200px; margin-inline:auto; padding:0 20px }

.watch-buttons { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.watch-buttons .wbtn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:12px; font-weight:700; 
  background:#ffd400; color:#111; border:1px solid rgba(0,0,0,.08);
  text-decoration:none; box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.watch-buttons .wbtn:hover{ filter:brightness(.98); transform:translateY(-1px); }
.watch-buttons .wbtn:active{ transform:none; filter:brightness(.95); }


/* Masaüstü: sticky; Mobil: kesin kapalı */
header.site-header{
  position:sticky; top:0; z-index:40; background:color-mix(in srgb,var(--bg),transparent 40%);
  border-bottom:1px solid var(--line); backdrop-filter:saturate(180%) blur(16px);
}
@media (max-width:680px){
  header.site-header{ position: static !important; top:auto !important; backdrop-filter:none !important; border-bottom:none !important; }
}

.nav-list{ display:flex; gap:14px; list-style:none; margin:0; padding:0 }
.nav-list a{ padding:8px 10px; border-radius:10px }
.nav-list a:hover{ background:color-mix(in srgb,var(--text),transparent 92%) }
.btn{ height:48px; padding:0 18px; border-radius:14px; border:1px solid var(--line); background:var(--text); color:var(--bg); font-weight:700; cursor:pointer; box-shadow:var(--shadow-sm); transition:transform .2s var(--easing), box-shadow .2s var(--easing), opacity .2s var(--easing) }
.btn:hover{ transform:translateY(-1px) }
.btn.ghost{ background:transparent; color:var(--text) }
.grid.cards{ display:grid; gap:18px; grid-template-columns:repeat(2,minmax(0,1fr)) }
@media(min-width:720px){ .grid.cards{ grid-template-columns:repeat(3,1fr) } }
@media(min-width:1040px){ .grid.cards{ grid-template-columns:repeat(5,1fr) } }
.card{ overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); transition:transform .22s var(--easing), box-shadow .22s var(--easing) }
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md) }
.badge{ position:absolute; left:10px; top:10px; height:28px; padding:0 10px; display:inline-flex; align-items:center; gap:6px; border-radius:999px; font-weight:600; font-size:12px; background:rgba(255,255,255,.75); color:#111; backdrop-filter:saturate(180%) blur(18px); border:1px solid rgba(0,0,0,.06) }
@media (prefers-color-scheme: dark){ .badge{ background:rgba(20,20,22,.6); color:#f5f5f7; border-color:rgba(255,255,255,.08) } }
.modal{ backdrop-filter:saturate(180%) blur(10px) }

/* Provider / platform logo boyutu */
.providers, .platforms { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px; align-items:center; }
.providers img, .platforms img{
  height:36px; width:auto; max-width:100%; object-fit:contain;
  filter:none;
}
@media (max-width:600px){
  .providers img, .platforms img{ height:28px; }
}
