/* =========================================================
   🌐 GENERAL STYLES
========================================================= */
body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: #0a1930;
  direction: rtl;
}

h1, h2, h3 {
  font-weight: 900;
  margin-bottom: 10px;
}

p {
  line-height: 1.6;
  color: #1e293b;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   🔹 HEADER
========================================================= */
.header {
  background: linear-gradient(90deg, #0a1930, #1e3a8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}

nav a {
  margin: 0 15px;
  color: #cbd5e1;
  font-weight: 600;
}

nav a:hover {
  color: #60a5fa;
}

.actions .btn {
  font-size: 14px;
  padding: 8px 18px;
}

/* =========================================================
   🔵 BUTTONS
========================================================= */
.btn {
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s ease;
}

.btn.blue {
  background: linear-gradient(90deg, #2563eb, #1e3a8a);
  color: #fff;
  padding: 10px 25px;
}

.btn.blue:hover {
  background: linear-gradient(90deg, #1d4ed8, #1e3a8a);
}

.btn.white {
  background: #fff;
  color: #0a1930;
  padding: 10px 25px;
}

.btn.white:hover {
  background: #e2e8f0;
}

.btn.outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 25px;
}

.btn.outline:hover {
  background: #fff;
  color: #1e3a8a;
}

/* =========================================================
   🏠 HERO SECTION
========================================================= */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #1e3a8a, #3b82f6);
  color: #fff;
  padding: 100px 40px 60px;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  color: #e2e8f0;
  max-width: 500px;
  margin-bottom: 25px;
}

.login-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-image {
  flex: 1;
  max-width: 320px;
  height: auto;
}

/* =========================================================
   🎯 CATEGORIES
========================================================= */
#categories {
  text-align: center;
  padding: 80px 20px;
  background: #f8fafc;
}

#categories h2 {
  color: #1e3a8a;
  font-size: 28px;
  margin-bottom: 40px;
}

.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.cat-card {
  background: #e0f2fe;
  border-radius: 12px;
  width: 150px;
  padding: 20px;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cat-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
}

.cat-card p {
  font-weight: 700;
  color: #0a1930;
}

.cat-card:hover {
  transform: translateY(-5px);
  background: #bfdbfe;
}

/* =========================================================
   🧩 PHASES
========================================================= */
#phases {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

#phases h2 {
  color: #1e3a8a;
  font-size: 28px;
  margin-bottom: 40px;
}

.phase-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.phase-card {
  background: #f1f5f9;
  border-radius: 10px;
  width: 250px;
  padding: 20px;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.phase-card img {
  width: 70px;
  margin-bottom: 10px;
}

.phase-card h3 {
  color: #0a1930;
  margin-bottom: 8px;
}

.phase-card p {
  font-size: 15px;
  color: #475569;
}

.phase-card:hover {
  transform: scale(1.05);
  background: #e0f2fe;
}

/* =========================================================
   📘 RULES
========================================================= */
#rules {
  background: #f8fafc;
  padding: 80px 20px;
  text-align: center;
}

#rules h2 {
  color: #1e3a8a;
  margin-bottom: 20px;
}

#rules ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: auto;
  text-align: right;
}

#rules li {
  background: #e0f2fe;
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  color: #0a1930;
  font-weight: 500;
}

/* =========================================================
   🎮 GAME SECTION (Mechanics)
========================================================= */
.hidden {
  display: none;
}

.round-card {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 25px;
  margin: 60px auto;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.roombar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.roombar input, .roombar select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

/* =========================================================
   🧭 FOOTER
========================================================= */
footer {
  background: #0a1930;
  color: #cbd5e1;
  text-align: center;
  padding: 40px 20px;
}

footer .social img {
  width: 32px;
  height: 32px;
  margin: 0 10px;
  transition: 0.3s;
}

footer .social img:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

footer p {
  margin-top: 15px;
  font-size: 14px;
}

/* =========================================================
   📱 RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    margin-top: 30px;
  }

  nav {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .actions {
    margin-top: 10px;
  }

  .phase-card, .cat-card {
    width: 80%;
    max-width: 280px;
  }
}
