@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@500&display=swap');

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  color: #fff;
  text-align: center;
  height: 100%;
  overflow-x: hidden;
  background: linear-gradient(-45deg, #ff5f6d, #ffc371, #24c6dc, #514a9d);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* ---------- شعار الموقع ---------- */
.logo {
  font-size: 60px;
  color: #FFD700;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  margin: 40px 0;
}

.description {
  font-size: 20px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* ---------- زر اللغات ---------- */
.lang-switch {
  text-align: center;
  margin: 20px 0;
}

.lang-switch button {
  padding: 12px 30px;
  margin: 0 10px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: #FFD700;
  color: #000;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.3s;
}

.lang-switch button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #FFD700aa;
}

/* ---------- بطاقات الألعاب ---------- */
.games {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.game-card {
  background: rgba(0,0,0,0.6);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
  transition: transform 0.3s;
}

.game-card img {
  width: 250px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.game-card img:hover {
  transform: scale(1.05);
}

/* ---------- أزرار ---------- */
.btn {
  display: inline-block;
  background: #FFD700;
  color: #000;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  transition: background .3s, box-shadow .3s;
  cursor: pointer;
  font-weight: bold;
}

.btn:hover {
  background: #FFC000;
  box-shadow: 0 0 20px #FFD700;
}

/* ---------- المحتوى والفورمز ---------- */
.content, .admin-container {
  max-width: 450px;
  margin: 0 auto;
}

.form-box {
  background: rgba(20, 20, 20, 0.9);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px #FFD70040;
  text-align: left;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background: #c4b8b8;
  color: #fff;
  font-size: 16px;
}

button.btn { width: 100%; }

footer {
  margin-top: 40px;
  color: #fff;
  font-size: 14px;
}

/* ---------- أيقونة دخول الادمن ---------- */
.admin-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 30px;
  background: #FFD700;
  color: #000;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 0 15px #FFD700aa;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  z-index: 9999;
}

.admin-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px #FFD700ff;
}

/* ---------- صفحة تسجيل الدخول ---------- */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  background: rgba(20,20,20,0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px #ff2a2a50;
  text-align: center;
}

.login-container h1 {
  color: #FFD700;
  text-shadow: 0 0 10px #FFD700;
  margin-bottom: 30px;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
  background: #222;
  color: #fff;
  font-size: 16px;
}

.login-container .btn {
  width: 100%;
}

/* ---------- لوحة التحكم ---------- */
.admin-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

.admin-container header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.admin-container header h1 {
  color: #FFD700;
  text-shadow: 0 0 10px #FFD700;
}

/* ---------- الفورم العلوي (إعدادات الموقع) ---------- */
.settings-section, .submissions-section {
  background: rgba(20,20,20,0.9);
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
}

.settings-section .form-group {
  margin-bottom: 20px;
  text-align: right;
}

.settings-section label {
  display: block;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 5px;
  text-shadow: 0 0 5px #000;
  font-size: 16px;
}

.settings-section input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background: #222;
  color: #fff;
  font-size: 16px;
}

.settings-section .btn {
  width: 100%;
  padding: 12px;
  font-weight: bold;
  background: #FFD700;
  color: #000;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.settings-section .btn:hover {
  background: #FFC000;
  box-shadow: 0 0 15px #FFD700;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th, table td {
  padding: 10px;
  border: 1px solid #333;
}

table th {
  background: #222;
}
/* ---------- UC Packs ---------- */
.uc-packs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 800px;
}

.pack {
  background: rgba(34, 34, 34, 0.95);
  color: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  width: 180px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.5s ease, background 0.3s ease;
  /* ظل ذهبي خلف الصندوق */
  box-shadow: 0 0 15px #FFD70055, 0 0 30px #FFD70033 inset;
}

.pack:hover {
  transform: scale(1.05);
  background: #ffb400;
  color: #000;
  box-shadow: 0 0 30px #FFD700, 0 0 60px #FFD700 inset;
}

.pack img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.pack img:hover {
  transform: scale(1.1);
}

/* إخفاء افتراضي للنصوص العربية والإنجليزية */
.ar, .en { display: none; }
