/* =====================================================
   Retro Israel – SITE.CSS (Clean + Color Refresh)
   Layout, menus & behavior preserved
===================================================== */

/* ===================== VARIABLES ===================== */
:root {
  --bg-main: #0b1220;
  --bg-sidebar: #0e1a2b;
  --bg-panel: #0f1f3a;
  --bg-card: #16284a;

  --accent-blue: #3b82f6;
  --accent-yellow: #fbbf24;
  --accent-green: #22c55e;

  --text-main: #e5ecff;
  --text-muted: #9db2d8;

  --border-soft: rgba(255,255,255,0.08);

  --topbar-h: 64px;
  --sidebar-w: 240px;
  --radius: 16px;
}
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap');

/* ===================== BASE ===================== */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
 font-family: "Heebo", sans-serif;
  font-optical-sizing: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* SIDEBAR */
.ri-sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-soft);
  padding: 16px 12px;
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1000;
}

.ri-sidebar .brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent-yellow);
  margin-bottom: 24px;
}

.ri-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ri-sidebar li {
  margin-bottom: 6px;
}

.ri-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
}

.ri-sidebar a:hover,
.ri-sidebar a.active {
  background: var(--bg-card);
  color: var(--text-main);
}

/* MAIN */
.ri-main {
  margin-right: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.ri-topbar {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ri-search {
  flex: 1;
}

.ri-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  border-radius: 999px;
  padding: 10px 16px;
}

.ri-user-actions {
  display: flex;
  gap: 10px;
}

/* HERO */
.ri-hero {
  margin: 20px;
}

.ri-hero .carousel-item img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* CATEGORY BUTTONS */
.ri-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 20px;
}

.ri-categories a {
    background: var(--bg-card);
    border-radius: 0;
    font-weight: 600;
    color: var(--text-muted);

}

.ri-categories a:hover {
  color: var(--text-main);
  background: #22343c;
}

/* CARDS */
.ri-section {
  padding: 0 20px 30px;
}

.ri-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ri-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
}

.ri-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.ri-card-body {
  padding: 10px;
}

.ri-card-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.ri-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* MOBILE */
@media (max-width: 992px) {
  .ri-sidebar {
    position: static;
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .ri-main {
    margin-right: 0;
  }
}
/* ===== TOPBAR FIXED ===== */
.ri-topbar {
  position: fixed;
  top: 0;
  right: 240px; /* רוחב הסיידבר */
  left: 0;
  height: 64px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 1200;
}

/* MAIN OFFSET בגלל TOPBAR */
.ri-main {
  margin-right: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* SEARCH */
.ri-search {
  flex: 1;
}

.ri-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  border-radius: 999px;
  padding: 10px 16px;
}

/* USER ACTIONS */
.ri-user-actions {
  display: flex;
  gap: 10px;
}

/* MOBILE */
@media (max-width: 992px) {
  .ri-topbar {
    right: 0;
  }

  .ri-main {
    margin-right: 0;  }
}
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 450px;
}
/* public/assets/css/app.css */
:root{
  --bg:#0b0f14;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(255,255,255,.08);
  --shadow:0 16px 50px rgba(0,0,0,.45);
  --topbar-h:56px;
  --sidebar-w:280px;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Heebo", sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.95}

.topbar{
  position:fixed;
  top:0; right:0; left:0;
  height:var(--topbar-h);
  background:rgba(15,23,42,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
  z-index:50;
}
.topbar__inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
}
.topbar__brand{
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
}
.topbar__spacer{flex:1}
.topbar__action{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--text);
  font-size:14px;
}
.topbar__action:hover{border-color:var(--border); background:rgba(255,255,255,.04)}

.icon-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  padding:8px;
  border-radius:12px;
  cursor:pointer;
}
.icon-btn:hover{background:rgba(255,255,255,.06)}

.hamburger{
  width:22px;
  height:14px;
  display:inline-block;
  position:relative;
}
.hamburger::before,
.hamburger::after,
.hamburger span{
  content:"";
  position:absolute;
  right:0; left:0;
  height:2px;
  background:var(--text);
  border-radius:2px;
}
.hamburger::before{top:0}
.hamburger::after{bottom:0}
.hamburger span{top:6px}

.layout{
  min-height:100%;
  display:flex;
  padding-top:var(--topbar-h);
}

.sidebar{
  width:var(--sidebar-w);
  background:linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.98));
  border-left:1px solid var(--border);
  position:sticky;
  top:var(--topbar-h);
  height:calc(100vh - var(--topbar-h));
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:14px;
  z-index:40;
}

.sidebar__nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sidebar__link{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background:rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  gap:10px;
}
.sidebar__link:hover{
  background:rgba(255,255,255,.06);
  border-color:var(--border);
}

.sidebar__footer{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--border);
}
.sidebar__admin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}
.sidebar__admin:hover{background:rgba(255,255,255,.07)}

.content{
  flex:1;
  padding:16px;
  min-width:0;
}

.card{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset;
}

/* ===== Mobile off-canvas sidebar ===== */
.sidebar-overlay{
  position:fixed;
  top:var(--topbar-h);
  right:0; left:0; bottom:0;
  background:rgba(0,0,0,.55);
  z-index:45;
}

body.sidebar-open{
  overflow:hidden;
}

@media (max-width: 991px){
  .topbar__action{display:none}
  .sidebar{
    position:fixed;
    top:var(--topbar-h);
    bottom:0;
    right:0;
    height:auto;
    width:min(var(--sidebar-w), 86vw);
    transform:translateX(105%);
    transition:transform .22s ease;
    box-shadow:var(--shadow);
    border-left:0;
    border-right:1px solid var(--border);
  }
  body.sidebar-open .sidebar{
    transform:translateX(0);
  }
  .content{
    padding:14px;
  }
}
/* ===== Layout בסיס ===== */
.layout{
  display:flex;
  min-height:100vh;
  padding-top:56px; /* גובה topbar */
}

/* ===== Sidebar – Desktop ===== */
.sidebar{
  width:280px;
  background:#111827;
  border-left:1px solid rgba(255,255,255,.08);
  padding:16px;
}

/* ===== Content ===== */
.content{
  flex:1;
  padding:0px;
}

/* ===== Overlay ===== */
.sidebar-overlay{
  display:none;
}

/* ===== Mobile behavior ===== */
@media (max-width: 991px){

  /* sidebar מוסתר כברירת מחדל */
  .sidebar{
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
  }

  /* פתיחה */
  body.sidebar-open .sidebar{
    transform: translateX(0);
  }

  /* overlay */
  .sidebar-overlay{
    display: none;
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
  }

  body.sidebar-open .sidebar-overlay{
    display: block;
  }

  .content{
    padding: 14px;
  }
}

/* ===================================================== */
/* ===== FINAL OVERRIDES – KEEP EVERYTHING, MAKE IT WORK */
/* ===================================================== */

/* אייקון בסיידבר */
.sidebar__icon{
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* 2) דסקטופ: מצב מצומצם = פס אייקונים, לא נעלמים */
@media (min-width: 993px){

  .sidebar{
    transition: width .22s ease, padding .22s ease;
  }

  body.sidebar-collapsed .sidebar{
    width: 72px;
    padding: 12px 8px;
  }

  body.sidebar-collapsed .sidebar__link{
    justify-content: center;
    padding: 10px 0;
  }

  body.sidebar-collapsed .sidebar__link .label,
  body.sidebar-collapsed .sidebar__admin .label{
    display: none;
  }

  body.sidebar-collapsed .ri-main{
    margin-right: 72px;
  }
}

/* ===================================================== */
/* ================= HERO CAROUSEL ===================== */
/* ===================================================== */

.ri-hero{
  margin:20px;
}

.hero-carousel{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  aspect-ratio:16/7;
}

.hero-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity .5s ease;
  display:flex;
  align-items:flex-end;
  text-decoration:none;
}

.hero-slide.is-active{
  opacity:1;
  z-index:1;
}

.hero-slide__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1));
}

.hero-slide__content{
  position:relative;
  padding:24px;
  color:#fff;
}

.hero-slide__content h2{
  font-size:1.4rem;
  font-weight:900;
  margin:0;
}

/* dots */
.hero-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:10px;
}

.hero-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:0;
  background:#666;
  cursor:pointer;
}

.hero-dot.is-active{
  background:#fff;
}
/* ===================================================== */
/* ===== CENTER CONTENT MAX WIDTH ====================== */
/* ===================================================== */

/* האזור המרכזי בלבד */
.content{
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* בדסקטופ עם סיידבר פתוח – עדיין ממורכז */
@media (min-width: 993px){
  .layout{
    justify-content: center;
  }

  /* הסיידבר נשאר בצד, התוכן ממורכז */
  .sidebar{
    margin-left: auto;
  }
}
/* ================= HERO SPLIT ================= */

.ri-hero{
  margin: 0px;
}

.ri-hero-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

/* הצד של הקרוסלה */
.ri-hero-main{
  min-width: 0; /* חשוב לקרוסלה */
}

/* הווידג'ט */
.ri-hero-widget{
  background: var(--bg-card);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= MOBILE ================= */
@media (max-width: 991px){
  .ri-hero-grid{
    grid-template-columns: 1fr;
  }

  .ri-hero-widget{
    order: 2;
  }
}
/* ================= HERO WIDGET ================= */

.ri-hero-widget-title{
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ri-hero-widget-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ri-hero-widget-item{
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 8px;
}

.ri-hero-widget-item img{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.ri-hero-widget-info{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.ri-hero-widget-name{
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
}

.ri-hero-widget-btn{
  align-self: flex-start;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 700;
}

.ri-hero-widget-btn:hover{
  opacity: .9;
}
/* =========================
   HERO SIMPLE CAROUSEL
========================= */

.ri-hero-main .slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 16px;
  direction: rtl;
  height: 100%;
}

.ri-hero-main .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slides */
.ri-hero-main .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ri-hero-main .slide.active {
  opacity: 1;
  z-index: 1;
}

.ri-hero-main .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay content */
.ri-hero-main .slide-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgb(0 0 0 / 76%), transparent);
}

.ri-hero-main .slide-content h2 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 8px;
}

.ri-hero-main .slide-content p {
  color: #e0e0e0;
  max-width: 70%;
  margin-bottom: 16px;
}

.ri-hero-main .slide-btn {
  align-self: flex-start;
  background: #ff3366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
}

/* Navigation */
.ri-hero-main .navigation {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 9999 !important;
}

.ri-hero-main .navigation span {
  pointer-events: auto;
  cursor: pointer;
  font-size: 34px;
  color: #fff;
  padding: 0 18px;
  user-select: none;
  opacity: 0.8;
}

.ri-hero-main .navigation span:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .ri-hero-main .slide-content h2 {
    font-size: 1.5rem;
  }

  .ri-hero-main .slide-content p {
    max-width: 100%;
  }
}
/* =========================
   GAME VIEW – RETRO ISRAEL
   ========================= */

.game-view {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: var(--font-main, Arial, sans-serif);
    direction: rtl;
    color: #111;
}

/* Header */
.game-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.game-cover {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Meta */
.game-meta h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 16px;
}

.game-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 20px;
}

.game-facts span::before {
    content: "• ";
    color: #999;
}

.game-summary {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 700px;
}

/* Actions */
.game-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #000;
    transition: all 0.15s ease;
}

.btn.primary {
    background: #000;
    color: #fff;
}

.btn.primary:hover {
    background: #222;
}

.btn.secondary {
    background: #fff;
    color: #000;
}

.btn.secondary:hover {
    background: #f2f2f2;
}

/* Details */
.game-details {
    border-top: 1px solid #ddd;
    padding-top: 32px;
}

.game-block {
    margin-bottom: 36px;
}

.game-block h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-right: 4px solid #000;
    padding-right: 10px;
}

.game-block div {
    line-height: 1.7;
    max-width: 800px;
}

/* Meta grid */
.game-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 32px;
    font-size: 0.95rem;
}

.game-meta-grid strong {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .game-header {
        grid-template-columns: 1fr;
    }

    .game-cover {
        max-width: 260px;
    }

    .game-meta h1 {
        font-size: 2rem;
    }
}
/* =========================
   GAME VIEW – DARK RETRO
   ========================= */

.game-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 80px;
    font-family: var(--font-main, Arial, sans-serif);
    direction: rtl;
    color: #f1f1f1;
    background: #0e0e0e;
}

/* Layout */
.game-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* Sidebar */
.game-sidebar {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 20px;
    height: fit-content;
}

.game-cover {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 16px;
}

.game-facts {
    font-size: 0.9rem;
    line-height: 1.6;
}

.game-facts div {
    margin-bottom: 10px;
    color: #ccc;
}

.game-facts strong {
    color: #fff;
    font-weight: 600;
}

/* Rating */
.game-rating {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.rating-stars {
    display: flex;
    gap: 6px;
    font-size: 1.4rem;
    cursor: pointer;
}

.rating-stars span {
    color: #444;
    transition: color 0.15s ease;
}

.rating-stars span.active,
.rating-stars span:hover,
.rating-stars span:hover ~ span {
    color: #ffcc33;
}

/* Main content */
.game-main h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 24px;
}

.game-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 32px;
}

/* Actions */
.game-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
}

.btn {
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid #fff;
    transition: all 0.15s ease;
}

.btn.primary {
    background: #fff;
    color: #000;
}

.btn.primary:hover {
    background: #ddd;
}

.btn.secondary {
    background: transparent;
    color: #fff;
}

.btn.secondary:hover {
    background: #222;
}

/* Content blocks */
.game-block {
    margin-bottom: 48px;
}

.game-block h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    border-right: 4px solid #fff;
    padding-right: 10px;
}

.game-block div {
    line-height: 1.8;
    color: #e0e0e0;
    max-width: 900px;
}

/* Responsive */
@media (max-width: 900px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        order: 2;
    }

    .game-main {
        order: 1;
    }
}
/* ===== Background ===== */
.game-view {
    position: relative;
    color: #f2f2f2;
    background: #0b0b0b;
    overflow: hidden;
}

.game-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    opacity: 0.15;
    transform: scale(1.2);
    z-index: 0;
}

/* ===== Hero ===== */
.game-hero {
    position: relative;
    z-index: 2;
    padding: 80px 20px 60px;
}

.game-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: center;
}

.game-hero-cover {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.game-hero-meta h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.game-hero-info {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 24px;
}

.game-rating {
    margin-bottom: 24px;
}

.rating-stars span {
    font-size: 1.4rem;
    color: #444;
}

.rating-stars span:hover {
    color: #ffcc33;
}

/* ===== Actions ===== */
.game-actions {
    display: flex;
    gap: 14px;
}

.btn {
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn.primary {
    background: #fff;
    color: #000;
}

.btn.secondary {
    background: transparent;
    color: #fff;
}

/* ===== Content ===== */
.game-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.game-block {
    margin-bottom: 48px;
}

.game-block h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    border-right: 4px solid #fff;
    padding-right: 12px;
}

.game-block div {
    line-height: 1.8;
    color: #e0e0e0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .game-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .game-actions {
        justify-content: center;
    }
}
.game-hero-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e6e6e6;
    max-width: 720px;
    margin-bottom: 28px;
}
/* ===== Game Gallery ===== */

.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 40px 0 60px;
}

.game-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.game-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0.9;
}

.game-gallery-item:hover img {
    transform: scale(1.08);
    opacity: 1;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .game-gallery {
        gap: 12px;
    }
}
/* ===== Related Games ===== */

.game-related {
    margin-top: 80px;
}

.game-related h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    border-right: 4px solid #fff;
    padding-right: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    text-decoration: none;
    color: #fff;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.related-card:hover img {
    opacity: 1;
}

.related-meta {
    padding: 10px 12px 14px;
}

.related-meta strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.related-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #ccc;
}
.rating-stars span {
    cursor: pointer;
    font-size: 1.6rem;
    color: #444;
    transition: color 0.15s ease;
}

.rating-stars span.active {
    color: #ffcc33;
}

.rating-info {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #ccc;
}
.rating-stars {
    display: inline-flex;
    gap: 4px;
}

.rating-stars span {
    font-size: 1.6rem;
    color: #444;
    cursor: pointer;
    transition: color 0.15s ease;
}

.rating-stars span.active {
    color: #ffcc33;
}
/* === Rating (SAFE) === */

.game-rating {
    margin-top: 16px;
}

.rating-stars {
    display: inline-flex;
    gap: 6px;
}

.rating-stars span {
    font-size: 28px;
    cursor: pointer;
    color: #444;
    user-select: none;
    transition: color 0.15s ease;
}

.rating-stars span.is-on {
    color: #ffcc33;
}

.rating-info {
    margin-top: 6px;
    font-size: 13px;
    color: #aaa;
}
.ri-popular {
  margin: 0px 0;
}

.ri-popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ri-popular-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.ri-popular-carousel {
  position: relative;
  overflow: hidden;
}

.ri-popular-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 40px;
}

.ri-popular-track::-webkit-scrollbar {
  display: none;
}

.ri-popular-card {
  flex: 0 0 160px;
  text-decoration: none;
  color: inherit;
}

.ri-popular-card img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ri-popular-info {
  margin-top: 8px;
}

.ri-popular-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.ri-popular-rating {
  font-size: 13px;
  opacity: 0.8;
}

.ri-popular-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

.ri-popular-nav.prev {
  left: 0;
}

.ri-popular-nav.next {
  right: 0;
}
.ri-categories {
  margin: 40px 0;
}

.ri-categories-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    align-items: center;
    width: 100%;
}

.ri-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
}

.ri-category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: #000;
}

.ri-category-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    object-position: top;
    opacity: 0.35;
}
.ri-category-card img:hover {
    opacity: 1;
}
.ri-category-name {
  position: absolute;
  bottom: 10px;
  right: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
/* Tabs */
.ri-tabs {
  margin: 50px 0;
}
a.ri-categories-all {
    width: auto;
    padding: 10px 20px;
    border-radius: 7px;
    background: #3e7eed;
    color: #ffffff;
}
.ri-tabs-header {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #ffffff4a;
}

.ri-tab-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 16px;
}

.ri-tab-btn.active {
    color: #fff;
    border-bottom: 2px solid #4da3ff;
    background: #ffffff1f;
    border-radius: 7px 7px 0px 0px;
}

/* Panels */
.ri-tab-panel {
  display: none;
}

.ri-tab-panel.active {
  display: block;
}

/* Games grid */
.ri-tab-games {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.ri-tab-game {
  display: block;
  text-decoration: none;
  color: #fff;
}

.ri-tab-game img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.ri-tab-game-info {
  margin-top: 8px;
}

.ri-tab-game-title {
  font-weight: 700;
  font-size: 14px;
}

.ri-tab-game-dev {
  font-size: 12px;
  color: #aaa;
}

.ri-tab-game-rating {
  font-size: 13px;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
  .ri-tab-games {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .ri-tab-games {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ri-tab-games{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
}
.ri-tab-game img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:12px;
}
@media (max-width:1200px){
  .ri-tab-games{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:768px){
  .ri-tab-games{ grid-template-columns:repeat(2,1fr); }
}
.ri-israeli-games {
  margin: 60px 0;
}

.ri-section-header {
  margin-bottom: 20px;
}

.ri-section-sub {
  color: #aaa;
  font-size: 14px;
}

.ri-israeli-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .ri-israeli-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .ri-israeli-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.companies-carousel {
    margin: 40px 0;
}

.companies-carousel h2 {
    margin-bottom: 15px;
}

.companies-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.company-logo {
    flex: 0 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
}

.company-logo img {
    max-height: 70px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.company-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.company-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.game-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card a {
    text-decoration: none;
    color: inherit;
}

.game-image {
    aspect-ratio: 3 / 4;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #777;
    font-size: 14px;
}

.game-info {
    padding: 10px;
}

.game-info h3 {
    font-size: 14px;
    margin: 0 0 6px;
}

.game-info .meta {
    font-size: 12px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

.game-info .role {
    margin-top: 6px;
    font-size: 12px;
    color: #5fd3ff;
}
@media (max-width: 1200px) {
    .company-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .company-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider {
    height: 450px !important;
}
.ri-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
}
.ri-tabs-header {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
}
}
.ri-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.game-item {
  transition: opacity .25s ease, transform .25s ease;
}

.game-item:not(.d-none):hover {
  transform: translateY(-4px);
}

.game-item.d-none {
  opacity: 0;
  pointer-events: none;
}

#no-results {
  opacity: .7;
}
/* ===== Filters ===== */
.ri-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.ri-card h1,
.ri-card h2,
.ri-card h3 {
  margin: 0;
}

.ri-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  cursor: pointer;
}

.ri-chip input {
  accent-color: #fff;
}

.ri-chip:hover {
  background: rgba(255,255,255,0.12);
}

/* ===== Grid Cards ===== */
.game-card {
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.game-cover {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  opacity: .7;
}

.game-title {
  font-weight: 600;
  margin: 4px 0;
}

.game-categories {
  font-size: .8rem;
  opacity: .6;
}

.game-rating {
  font-size: .8rem;
  opacity: .7;
}

/* ===== Forms ===== */
.form-control,
.form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  box-shadow: none;
}

/* ===== Empty ===== */
.ri-empty {
  opacity: .6;
}
.topbar__brand img {
    height: 30px;
}
.games-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:24px;
}
@media(max-width:992px){
  .games-layout{grid-template-columns:1fr}
}

.games-filters{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
  position:sticky;
  top:90px;
  max-height:calc(100vh - 120px);
  overflow:auto;
}

@media(max-width:992px){
  .games-filters{
    position:static;
    max-height:none;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .gf-head,.gf-section{grid-column:1/-1}
}

.gf-head{display:flex;justify-content:space-between;align-items:center}
.gf-title{font-weight:900}
.gf-muted{font-size:.85rem;opacity:.65}
.gf-section{margin-top:14px}
.gf-label{font-size:.85rem;font-weight:800;opacity:.75;margin-bottom:6px}

.gf-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow: auto;
    border-bottom: 1px solid #ffffff1c;
    box-shadow: inset -5px -6px 11px #00000066;
}
.gf-pick{display:flex;gap:8px;align-items:center;cursor:pointer}

.gf-stars button {
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: #ffcc33;
    font-size: 20px;
    padding: 0px 7px 5px;
}
.gf-stars .is-on{background:rgba(255,255,255,.2)}

.games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:16px;
}
.game-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  overflow:hidden;
}
.game-card img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
}
.game-card div{padding:10px}
.games-empty{text-align:center;opacity:.6;padding:40px}
/* ======================================================
   MOBILE FILTERS – ACCORDION MODE
====================================================== */
@media (max-width: 992px) {

  .games-filters {
    display: block;
  }

  /* כל סקשן סגור כברירת מחדל */
  .gf-section {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 10px;
  }

  .gf-section.is-collapsed .gf-body {
    display: none;
  }

  /* כותרת האקורדיון */
  .gf-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .gf-label::after {
    content: "▾";
    font-size: 14px;
    opacity: .6;
    transition: transform .2s ease;
  }

  .gf-section.is-open .gf-label::after {
    transform: rotate(180deg);
  }
}
/* ======================================================
   Custom Scrollbar (filters only)
====================================================== */

/* Firefox */
.gf-list,
.games-filters {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
.gf-list::-webkit-scrollbar,
.games-filters::-webkit-scrollbar {
  width: 8px;
}

.gf-list::-webkit-scrollbar-track,
.games-filters::-webkit-scrollbar-track {
  background: transparent;
}

.gf-list::-webkit-scrollbar-thumb,
.games-filters::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.25);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gf-list::-webkit-scrollbar-thumb:hover,
.games-filters::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.45);
}
/* ======================================================
   Custom Checkbox & Radio (filters)
====================================================== */

.gf-pick input[type="checkbox"],
.gf-pick input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 5px;
  background: rgba(255,255,255,.05);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* radio – עגול */
.gf-pick input[type="radio"] {
  border-radius: 50%;
}

/* סימון */
.gf-pick input[type="checkbox"]::before,
.gf-pick input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .12s ease;
  background: #fff;
}

/* checkbox – ריבוע פנימי */
.gf-pick input[type="checkbox"]::before {
  border-radius: 2px;
}

/* radio – עיגול פנימי */
.gf-pick input[type="radio"]::before {
  border-radius: 50%;
}

/* checked */
.gf-pick input:checked {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}

.gf-pick input:checked::before {
  transform: scale(1);
}

/* hover */
.gf-pick:hover input {
  border-color: rgba(255,255,255,.6);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ======================================================
   Force scrollbar to the RIGHT (RTL-safe)
====================================================== */

/* מעטפת הגלילה */
.games-filters,
.gf-list {
  direction: ltr;        /* scrollbar עובר לימין */
}

/* התוכן הפנימי חוזר ל-RTL */
.games-filters > *,
.gf-list > * {
  direction: rtl;
}
input#qInput {
    width: 100%;
    border-radius: 7px;
    padding: 10px;
    font-family: inherit;
}
.games-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kb-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.kb-category {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
}

.kb-articles li {
    margin-bottom: 8px;
}

.breadcrumbs {
    font-size: 14px;
    margin-bottom: 10px;
}
.companies-ticker {
    direction: rtl;
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 40px 0px;
    opacity: 0.5;
}