
@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;
    
}
/* =========================
   NAVBAR
========================= */
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    z-index: 9999;
}

/* محتوى النافبار */

.nav-container{
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* اللوجو */

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.logo-circle{
    width:36px;
    height:36px;
    object-fit:cover;
    border-radius:50%;
}

.company-name-logo{
    font-family:"OswaldBold";
    font-size:18px;
    color:#000;
}

/* الروابط */

.nav-links{
    display:flex;
    align-items:center;
    gap:12px;
}

.nav-links a{
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    color:#737373;
    font-family:"Roboto";
    font-size: 14px;
    transition:all .3s ease;
}

.nav-links a:hover{
    background:#f3f3f3;
    color:#000;
    font-weight: 500;
}

.nav-links a.active{
    background:#f9e6e6;
    color:#d41111;
}

/* الأزرار */

.auth-buttons{
    display:flex;
    align-items:center;
    gap:12px;
}

.login-btn,
.reg-btn{
    font-family: "Arial";
    padding: 10px 16px;
    border:1px solid #d41111;
    border-radius:10px;
    background:transparent;
    color:#d41111;
    font-size: 14px;
    font-weight:700;
    cursor:pointer;
    text-decoration: none;
    transition:all .3s ease;
}

.login-btn:hover,
.reg-btn:hover{
    background:#d41111;
    color:#fff;
}

/* =========================
   Athletes
========================= */

.athletes-section{
    padding: 32px 32x;
}

.page-title{
    font-family: 'OswaldBold';
    color: #000;
    font-size: 36px;
}

.page-desc{
    font-family: "Roboto";
    color: #737373;
    margin-top: 8px;
    margin-bottom: 25px;
    font-size: 16px;
}

/* ===== Search Box ===== */
.search-box{
    flex:1;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 12px;
    height:45px;
    border:1px solid #737373;
    border-radius:12px;
    background:#fff;
    transition:0.3s;
}

.search-box i{
    color:#737373;
    font-size:16px;
}

.search-box input{
    border:none;
    outline:none;
    width:100%;
    font-size:14px;
}

.search-box:focus-within{
    border:1px solid #d41111;
}






/* =========================
   Athletes Card
========================= */

.athletes-card-section{
    margin-top: 40px;
    margin-bottom: 40px;
}

.athletes-card {
  width: 350px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 24px; 
  padding: 24px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  transition: 0.3s ease;
}

.athletes-card:hover {
    border: 1px solid #f6cfcf;
    transform: translateY(-5px);
    box-shadow: 0px 0px 10px rgba(0,0,0,0.18);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar {
  width: 60px;
  height: 60px;
  background-color: #fbeeee; 
  color: #d41111; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

/* نصوص الاسم والفريق */
.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
}

.user-team {
  margin: 0;
  font-size: 12px;
  color: #868e96; /* لون رمادي خفيف */
}

/* منطقة الأوسمة (Tags) */
.tags-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #212529;
}

/* وسام الدولة (له حدود وبدون خلفية غامقة) */
.border-tag {
  border: 1px solid #ced4da;
  background-color: transparent;
}

/* وسام الجنس (خلفية رمادية وبدون حدود) */
.bg-tag {
  background-color: #e9ecef;
}

/* أيقونة اللوكيشن الصغيرة */
.pin-icon {
  color: #495057;
}

/* الخط الفاصل */
.divider {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 0 0 16px 0;
}

/* الجزء السفلي */
.section-title {
  margin: 0 0 12px 0;
  font-size: 12px;
  font-weight: normal;
  color: #868e96;
}

/* صندوق الرقم القياسي */
.record-badge {
  background-color: #e9ecef;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* خط الـ Monospace المخصص للأرقام */
.monospace-text {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 14px;
  color: #212529;
}



/* =========================
   RESPONSIVE
========================= */
/* ===================================================
   RESPONSIVE (تنسيقات التجاوب الشاملة للموبايل)
=================================================== */

@media (max-width: 768px) {

  /* 1. الحل الجذري لمنع اختفاء كلمة Athletes تحت النافبار 👇 */
  body {
    padding-top: 170px !important; /* نزيد المسافة العلوية لتبدأ الصفحة بعد النافبار العمودي الجديد */
  }

  /* 2. تحويل النافبار للترتيب العمودي الممركز */
  .nav-container {
    height: auto !important; /* إلغاء الارتفاع الثابت 65px */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
  }

  .logo {
    justify-content: center;
    width: 100%;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 14px;
  }

  /* توسيط أزرار Register & Login في المنتصف تماماً */
  .auth-buttons {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }


  /* =======================================
     تنسيقات محتوى صفحة الأبطال (Athletes Content)
  ======================================= */

  .athletes-section {
    padding: 24px 16px; /* إضافة مسافة أمان يمين ويسار لمنع الالتصاق بالحافة */
  }

  /* العناوين */
  .page-title {
    font-size: 28px;
  }

  .page-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* 3. تعديل صندوق البحث ليكون أعرض وأجمل رأسياً */
  .search-box {
    width: 100%;
    height: 50px; /* زيادة الارتفاع لسهولة الضغط */
    border-radius: 8px; /* حواف متناسقة ومريحة للعين بدلاً من الدوران الزائد */
    padding: 0 16px;
  }

  .search-box input {
    font-size: 16px; /* يمنع عمل Auto-Zoom مزعج في هواتف الآيفون */
  }

  .search-box i {
    font-size: 18px;
  }

  /* 4. كروت الأبطال (Athletes Cards) */
  .athletes-card-section {
    display: grid;
    grid-template-columns: 1fr; /* عرض كارت واحد في الصف */
    gap: 20px;
    justify-items: center; /* توسيط الكارت في منتصف الشاشة تماماً */
    margin-top: 24px;
  }

  .athletes-card {
    width: 100%; /* جعل الكارت يملأ العرض المتاح له بشكل متجاوب */
    max-width: 380px; /* تحديد حد أقصى للعرض لكي لا يصبح الكارت ضخماً جداً */
    padding: 20px;
  }

  .tags-container {
    flex-wrap: wrap; /* السماح للأوسمة بالنزول لسطر جديد إذا ضاقت الشاشة */
    gap: 8px;
  }
}