/* =========================================================
   SteamCams — app.css (FULL)
   - Dark premium grid + shadow cards
   - 48/96 per page: responsive grid auto
   - Header + toolbar + pagination + footer
   - Card hover glow, image shadow, LIVE badge
========================================================= */

/* =========================
   Theme tokens
========================= */
:root{
  --bg:#0b0d10;
  --panel:#0f1318;
  --panel-2:#131924;
  --border:#1c2330;
  --border-2:#233047;

  --text:#e9eef4;
  --muted:#9aa6b5;

  --accent:#9ad0ff;
  --accent-2:#6c5ce7;
  --hot:#ff4d6d;
  --ok:#38d39f;

  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow-soft: 0 12px 35px rgba(0,0,0,.45);
  --glow: 0 0 0 1px rgba(154,208,255,.16), 0 16px 44px rgba(0,0,0,.55);

  --r: 18px;
  --r2: 22px;

  --max: 1200px;
  --gap: 14px;

  --card-h: 270px;  /* desktop card height */
  --card-h-md: 240px;
  --card-h-sm: 210px;

  --ring: 0 0 0 4px rgba(154,208,255,.18);
}

/* =========================
   Reset
========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 700px at 30% -10%, rgba(108,92,231,.18), transparent 65%),
              radial-gradient(900px 600px at 85% 0%, rgba(50,211,255,.16), transparent 60%),
              var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button,input,select{ font:inherit; color:inherit; }
::selection{ background: rgba(154,208,255,.22); }

.muted{ color:var(--muted); }

/* =========================
   Layout helpers
========================= */
.container{
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

/* =========================
   Header
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15,19,24,.76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35,48,71,.55);
}
.header-inner{
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  padding: 14px 0;
  display:flex;
  align-items:center;
  gap: 14px;
}
.logo{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19,25,36,.75), rgba(15,19,24,.55));
  border: 1px solid rgba(35,48,71,.65);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.logo:hover{
  border-color: rgba(154,208,255,.30);
  box-shadow: var(--glow);
}

.search-form{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 320px;
  width: min(520px, 100%);
}
.search-form input{
  flex:1;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(19,25,36,.70);
  border: 1px solid rgba(35,48,71,.70);
  outline: none;
}
.search-form input:focus{
  border-color: rgba(154,208,255,.40);
  box-shadow: var(--ring);
}
.search-form button{
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(50,211,255,.18), rgba(108,92,231,.18));
  border: 1px solid rgba(154,208,255,.26);
  cursor:pointer;
}
.search-form button:hover{
  border-color: rgba(154,208,255,.38);
  box-shadow: var(--glow);
}

/* =========================
   Toolbar (filters row)
========================= */
.toolbar{
  margin: 16px 0 16px;
  padding: 14px;
  border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(19,25,36,.75), rgba(15,19,24,.55));
  border: 1px solid rgba(35,48,71,.65);
  box-shadow: var(--shadow-soft);
}
.toolbar form{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar input,
.toolbar select{
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(11,13,16,.55);
  border: 1px solid rgba(35,48,71,.70);
  outline:none;
}
.toolbar input{
  min-width: 260px;
  flex: 1;
}
.toolbar select{
  min-width: 120px;
}
.toolbar input:focus,
.toolbar select:focus{
  border-color: rgba(154,208,255,.40);
  box-shadow: var(--ring);
}
.toolbar button{
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(154,208,255,.18), rgba(108,92,231,.18));
  border: 1px solid rgba(154,208,255,.26);
  cursor:pointer;
}
.toolbar button:hover{
  border-color: rgba(154,208,255,.38);
  box-shadow: var(--glow);
}

/* =========================
   Grid
   - desktop: 4 columns (48/page -> 4x12)
   - large screens may fit 5; we cap to 4 by container width
========================= */
.grid{
  display:grid;
  gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px){
  :root{ --card-h: var(--card-h-md); }
  .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px){
  :root{ --card-h: var(--card-h-sm); }
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search-form{ min-width: unset; }
}
@media (max-width: 480px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .toolbar input{ min-width: 0; }
}

/* =========================
   Card
========================= */
.card{
  position:relative;
  border-radius: var(--r2);
  overflow:hidden;
  background: rgba(19,25,36,.35);
  border: 1px solid rgba(35,48,71,.55);
  box-shadow: 0 14px 42px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
  min-height: var(--card-h);
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(154,208,255,.28);
  box-shadow: var(--glow);
}

.card img{
  width:100%;
  height: var(--card-h);
  object-fit: cover;
  filter: contrast(1.06) saturate(1.08);
  transform: scale(1.01);
  transition: transform .18s ease, filter .18s ease;
  /* “shadow pe imagine” / depth */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 24px 55px rgba(0,0,0,.55);
}
.card:hover img{
  transform: scale(1.05);
  filter: contrast(1.10) saturate(1.14);
}

/* overlay gradient + content */
.card-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 14px;
  background:
    radial-gradient(800px 240px at 40% 0%, rgba(50,211,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(11,13,16,.00) 35%, rgba(11,13,16,.82) 78%, rgba(11,13,16,.92) 100%);
}

.nickname{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 16px;
  line-height: 1.1;
  text-shadow: 0 10px 22px rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  gap: 10px;
}

.country{
  margin-top: 8px;
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(233,238,244,.92);
  font-size: 12.5px;
  letter-spacing: .1px;
}
.country img{
  width: 24px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.10);
}

/* LIVE badge */
.live-badge{
  position:absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px;
  background: linear-gradient(135deg, rgba(255,77,109,.95), rgba(255,77,109,.55));
  border: 1px solid rgba(255,77,109,.45);
  box-shadow: 0 18px 42px rgba(0,0,0,.55);
}
.live-badge::after{
  content:"";
  display:inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 4px rgba(255,255,255,.14);
  vertical-align: middle;
}

/* subtle corner shine */
.card::before{
  content:"";
  position:absolute;
  inset:-40px -40px auto auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, rgba(154,208,255,.18), transparent 65%);
  transform: rotate(25deg);
  pointer-events:none;
}

/* =========================
   Pagination
========================= */
.pagination{
  margin: 18px 0 0;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:center;
}
.pagination a{
  min-width: 38px;
  height: 38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(19,25,36,.55);
  border: 1px solid rgba(35,48,71,.65);
  color: rgba(233,238,244,.92);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}
.pagination a:hover{
  border-color: rgba(154,208,255,.32);
  box-shadow: var(--glow);
}
.pagination a.active{
  background: linear-gradient(135deg, rgba(154,208,255,.20), rgba(108,92,231,.18));
  border-color: rgba(154,208,255,.42);
  box-shadow: var(--glow);
}

/* =========================
   Footer
========================= */
.site-footer{
  margin-top: 26px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(35,48,71,.55);
  background: rgba(15,19,24,.35);
}
.footer-inner{
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links{
  display:flex;
  gap: 10px;
  align-items:center;
  color: rgba(154,166,181,.92);
  font-size: 13px;
}
.footer-links a{
  color: rgba(154,166,181,.92);
}
.footer-links a:hover{
  color: rgba(233,238,244,.98);
}
.footer-links span{
  opacity:.45;
}

/* =========================
   Small utilities
========================= */
.page-index .container{ padding-top: 18px; }

.kbd{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(19,25,36,.55);
  border: 1px solid rgba(35,48,71,.65);
  color: rgba(233,238,244,.90);
  font-size: 12px;
  font-weight: 700;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}
