/* فونت‌ها و ریست */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
  --primary: #4f46e5;
  --primary-light: #7f9cf5;
  --secondary: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazir', sans-serif;
}

body {
  background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
  color: #334155;
  line-height: 1.7;
  direction: rtl;
}

/* طرح‌بندی اصلی */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* هدر */
.header {
  background: linear-gradient(to bottom, #fff, #f8fafc);
  box-shadow: var(--shadow);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 16px 16px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  color: var(--primary-light);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* بخش اصلی */
.main {
  padding: 4rem 0;
}

.hero {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(79, 70, 229, 0.05), transparent);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-weight: 700;
}

.hero p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* فرم ثبت نام */
.registration-form {
  background: linear-gradient(to bottom, #fff, #f8fafc);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 3rem;
  max-width: 900px;
  margin: 3rem auto;
}

.form-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--dark);
  font-size: 1.8rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(to bottom, #f8fafc, #eef2f7);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-control:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-footer {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.5rem;
}

/* جداول */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(to bottom, #f8fafc, #eef2f7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th {
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  color: #ffffff;
  padding: 16px;
  text-align: right;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: 12px 12px 0 0;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.95rem;
}

/* تنظیم پس‌زمینه سفید برای ستون‌های مشخص‌شده */
.data-table th:nth-child(1),
.data-table td:nth-child(1), /* نام */
.data-table th:nth-child(2),
.data-table td:nth-child(2), /* نام خانوادگی */
.data-table th:nth-child(3),
.data-table td:nth-child(3), /* سن */
.data-table th:nth-child(4),
.data-table td:nth-child(4), /* قد */
.data-table th:nth-child(5),
.data-table td:nth-child(5), /* وزن */
.data-table th:nth-child(6),
.data-table td:nth-child(6), /* شماره تلفن */
.data-table th:nth-child(7),
.data-table td:nth-child(7), /* آیدی تلگرام */
.data-table th:nth-child(8),
.data-table td:nth-child(8) /* آیدی اینستاگرام */ {
  background-color: #fff;
  color: #334155; /* رنگ متن تیره برای خوانایی روی پس‌زمینه سفید */
}

.data-table tr:hover {
  background: #e2e8f0;
  transform: scale(1.01);
  transition: background 0.2s ease, transform 0.2s ease;
}

.data-table tr:hover td:nth-child(1),
.data-table tr:hover td:nth-child(2),
.data-table tr:hover td:nth-child(3),
.data-table tr:hover td:nth-child(4),
.data-table tr:hover td:nth-child(5),
.data-table tr:hover td:nth-child(6),
.data-table tr:hover td:nth-child(7),
.data-table tr:hover td:nth-child(8) {
  background-color: #f1f5f9; /* پس‌زمینه کمی تیره‌تر هنگام هاور برای تمایز */
}

/* فوتر */
.footer {
  background: linear-gradient(to top, #1e293b, #2d3748);
  color: #f8fafc;
  padding: 3rem 0;
  text-align: center;
  font-size: 0.95rem;
  border-radius: 16px 16px 0 0;
}

/* رسپانسیو */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 3rem 0;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
    font-size: 0.85rem;
    color: #334155;
  }

  .data-table th:nth-child(1),
  .data-table td:nth-child(1),
  .data-table th:nth-child(2),
  .data-table td:nth-child(2),
  .data-table th:nth-child(3),
  .data-table td:nth-child(3),
  .data-table th:nth-child(4),
  .data-table td:nth-child(4),
  .data-table th:nth-child(5),
  .data-table td:nth-child(5),
  .data-table th:nth-child(6),
  .data-table td:nth-child(6),
  .data-table th:nth-child(7),
  .data-table td:nth-child(7),
  .data-table th:nth-child(8),
  .data-table td:nth-child(8) {
    background-color: #fff;
    color: #334155;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .registration-form {
    padding: 2rem;
    border-radius: 12px;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
    font-size: 0.85rem;
    color: #334155;
  }

  .data-table th:nth-child(1),
  .data-table td:nth-child(1),
  .data-table th:nth-child(2),
  .data-table td:nth-child(2),
  .data-table th:nth-child(3),
  .data-table td:nth-child(3),
  .data-table th:nth-child(4),
  .data-table td:nth-child(4),
  .data-table th:nth-child(5),
  .data-table td:nth-child(5),
  .data-table th:nth-child(6),
  .data-table td:nth-child(6),
  .data-table th:nth-child(7),
  .data-table td:nth-child(7),
  .data-table th:nth-child(8),
  .data-table td:nth-child(8) {
    background-color: #fff;
    color: #334155;
  }
}