
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Roboto-Regular.woff2") format('woff2');
}

@font-face {
    font-family: 'OswaldBold';
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Oswald-Bold.woff2") format('woff2');
}

@font-face {
    font-family: 'OswaldRegular';
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Oswald-Regular.woff2") format('woff2');
}


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, sans-serif;
    background:#fafafa;
    color:#222;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding-top:65px;
}

/* =========================
   GLOBAL CONTAINER
========================= */

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/* =========================
   Competition Info
========================= */

.competition-details-container{
    margin-top: 65px;
    margin-bottom: 100px;
}

.comp-header {
  margin-bottom: 24px;
}

.back-link {
  text-decoration: none;
  color: #737373;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #000;
}

/* الشارات (Badges) */
.badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.badge-green {
  background-color: #e6f6f0;
  color: #0d8a58;
}

.badge-gray {
  background-color: #f3f3f3;
  color: #555;
  border: 1px solid #e2e2e2;
}

.comp-main-title {
  font-family: 'OswaldBold', 'Arial Black', sans-serif;
  font-size: 36px;
  margin: 0;
  color: #000;
}

/* توزيع الجريد الأساسي للمحتوى (ثلثين لليسار وثلث لليمين) */
.comp-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

/* صفوف الكروت في الجانب الأيسر */
.info-cards-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

/* كروت المعلومات الموحدة */
.info-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-icon { color: #d41111; }
.black-icon { color: #000; font-size: 24px; }

.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  color: #8c8c8c;
}

.info-value {
  font-size: 16px;
  color: #000;
}

.price-style {
  font-family: 'OswaldBold', sans-serif;
  font-size: 22px;
}

/* كارت الـ About السفلي */
.about-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}

.about-card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: bold;
}

.about-card p {
  color: #555;
  font-size: 15px;
  margin: 0;
}

/* -------------------------------------
   تنسيق السايدبار الأيمن (Sidebar)
------------------------------------- */

/* الكارت الخاص بالـ Action Button */
.action-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}

.action-desc {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px 0;
}

.setup-profile-btn {
  width: 100%;
  background-color: #d41111;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.setup-profile-btn:hover {
  background-color: #b00e0e;
}

/* كارت قائمة المسجلين */
.registrations-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
}

.reg-title {
  margin: 0 0 20px 0;
  font-size: 15px;
  font-weight: bold;
}

.reg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.reg-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name {
  font-size: 14px;
  color: #000;
}

.user-event {
  font-size: 12px;
  color: #8c8c8c;
}

/* شارة حالة الانتظار (Pending) */
.status-badge.pending {
  background-color: #fff8e6;
  color: #b27b00;
  border: 1px solid #ffeeba;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .competition-details-container {
    margin-top: 20px;
  }

  /* العنوان */
  .comp-main-title {
    font-size: 26px;
    line-height: 1.3;
  }

  .back-link {
    font-size: 13px;
  }

  /* Grid يتحول لعمود */
  .comp-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Info cards تبقى عمودية */
  .info-cards-row {
    flex-direction: column;
    gap: 12px;
  }

  .info-card {
    padding: 16px;
  }

  /* About */
  .about-card {
    padding: 18px;
  }

  /* Sidebar */
  .comp-sidebar {
    order: 2;
  }

  .comp-main-info {
    order: 1;
  }

  /* Action card */
  .action-card,
  .registrations-card {
    padding: 18px;
  }

  .setup-profile-btn {
    font-size: 13px;
    padding: 10px;
  }

  /* Registration item */
  .reg-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .status-badge {
    align-self: flex-start;
  }
}
