:root{
  --bg:#0b0b0f;
  --card:#11111a;
  --text:#eaeaf2;
  --muted:#a9a9bf;
  --line:rgba(255,255,255,.12);
  --accent:#38bdf8;
  --accent2:#a78bfa;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(1000px 400px at 10% 0%, rgba(56,189,248,.10), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(167,139,250,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%;display:block}

.container{max-width:1060px;margin:0 auto;padding:0 16px}

/* HEADER / NAV */
header{
  position:sticky;top:0;z-index:10;
  background: rgba(11,11,15,.75);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:14px 0;
}
.brand{display:flex;align-items:center;gap:12px}
.dot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(45deg, var(--accent), var(--accent2));
  box-shadow:0 0 0 4px rgba(56,189,248,.10);
}
.title{font-weight:800;letter-spacing:.2px}
.sub{font-size:.88rem;color:var(--muted);margin-top:2px}

.menu{
  display:flex;align-items:center;gap:14px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.03);
}
.menu a{
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:.95rem;
}
.menu a:hover{
  color:var(--text);
  background: rgba(255,255,255,.04);
}

/* Language buttons */
.lang-switch{display:flex;align-items:center;gap:8px}
.flagbtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  font-size:.92rem;
}
.flagbtn:hover{background: rgba(255,255,255,.07)}
.flagbtn[aria-pressed="true"]{
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}

/* HERO */
.hero{padding:28px 0 16px}
h1{margin:0 0 10px;font-size:2rem;letter-spacing:-.2px}
h2{margin:0 0 8px;font-size:1.2rem}
p{margin:0 0 12px;color:var(--muted);line-height:1.55}

.tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.tag{
  font-size:.85rem;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.03);
  color:var(--muted);
}

/* BUTTONS */
.btnrow{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
}
.btn.primary{
  border-color: rgba(56,189,248,.35);
  background: rgba(56,189,248,.10);
}
.btn:hover{background: rgba(255,255,255,.06)}

/* CARD LAYOUT */
.grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
  padding:14px 0 26px;
}
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.pad{padding:16px}

/* EMBEDS */
.embed-wrap{
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#000;
}
.ratio{position:relative;width:100%;padding-top:56.25%}
.ratio iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* FOOTER */
footer{border-top:1px solid var(--line);padding:18px 0;margin-top:18px}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.footer-row small{color:var(--muted)}
.social{display:flex;gap:14px}
.social a{color:var(--muted)}
.social a:hover{color:var(--text)}

/* RESPONSIVE */
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .menu{flex-wrap:wrap;border-radius:16px}
}
@media (max-width: 520px){
  .nav{flex-wrap:wrap}
  .menu{width:100%;justify-content:flex-start}
}

/* --- Language visibility (robust) --- */
/* Default TR visible even if JS fails */
.en{display:none !important;}
/* When EN selected */
html[data-lang="en"] .en{display:revert !important;}
html[data-lang="en"] .tr{display:none !important;}
/* When TR selected (explicit) */
html[data-lang="tr"] .en{display:none !important;}

/* --- Videos: search & filters (used by videos.html) --- */
.controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:10px 0 16px;
}
.search{
  flex:1 1 260px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.04);
}
.search input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:.95rem;
}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
  font-size:.9rem;
  line-height:1;
}
.chip:hover{color:var(--text);background: rgba(255,255,255,.06)}
.chip.is-active{
  color:var(--text);
  border-color: rgba(56,189,248,.55);
  box-shadow:0 0 0 4px rgba(56,189,248,.10);
}
.helper{color:var(--muted);font-size:.92rem;margin:6px 0 0;}
