/* main.css — أنماط خاصة بالواجهة الرئيسية (بوابة ألعاب ذيبان)
   ✅ يعتمد على base.css للأساسيات */

body.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.footer { margin-top: auto; }

/* Containers */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.topbar .brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.topbar .brand-title .badge {
  background: var(--secondary);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 10px;
}
.topbar .brand-title span {
  font-size: 1rem;
  color: var(--secondary);
}

/* ✅ auth-links */
.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-links .welcome {
  font-weight: 600;
  color: var(--secondary);
}

/* Hero/Header section */
.hero {
  max-width: 1200px;
  margin: 50px auto 30px auto;
  padding: 32px 18px;
  text-align: center;
}
.hero .logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px auto;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 2.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.hero h1 { margin: 0; font-size: 2.2rem; color: var(--secondary); }
.hero p { margin-top: 12px; color: var(--muted); font-size: 1.2rem; }

/* Games list */
.games { max-width: 1200px; margin: 20px auto; padding: 0 18px; }
.games h2 { margin: 12px 0; color: var(--secondary); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}
.game-card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform .15s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.game-info { display: flex; align-items: center; gap: 12px; }
.game-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.08);
  border-radius: 12px;
}
.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-title { margin: 0; font-size: 1.1rem; color: var(--primary); }
.game-desc { margin: 4px 0 0; color: #333; font-size: .9rem; }

/* Social icons (في الفوتر) */
.social { display: flex; gap: 12px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: var(--secondary);
  transition: transform .15s;
}
.social a:hover { transform: translateY(-3px); }
.social svg { width: 28px; height: 28px; }

/* شعار الموقع */
.logo {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50%;
  background: #AD3103;
  overflow: hidden;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
