.download-main {
  margin: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f14935 0%, #73218e 100%);
  border-radius: 24px;
  color: white;
}

.hero-section h1 {
  font-size: 32px;
  font-family: "fanoos";
  margin-bottom: 12px;
}

.hero-section p {
  font-size: 18px;
  opacity: 0.9;
}

.download-card {
  background: #f9f9f9;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* آیکون‌های کارت */
.card-icon {
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.gta-icon {
  background-image: url("../img/gta-icon.png");
  background-size: 70%;
}

.samp-icon {
  background-image: url("../img/samp-icon.png");
  background-size: 70%;
}

/* محتوای کارت */
.card-content {
  flex: 1;
}

.card-content h2 {
  font-size: 24px;
  color: #f14935;
  margin-bottom: 12px;
}

.card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

/* اطلاعات فایل */
.file-info {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

.file-info span {
  background: #eee;
  padding: 4px 12px;
  border-radius: 20px;
}

/* دکمه دانلود */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f14935;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background: #c73e2c;
  transform: scale(1.02);
}

.download-btn .material-icons {
  font-size: 20px;
}

/* لینک‌های آینه (mirror) */
.mirror-link {
  margin-top: 12px;
  font-size: 13px;
  color: #888;
}

.mirror-link a {
  color: #f14935;
  text-decoration: none;
  margin: 0 4px;
}

.mirror-link a:hover {
  text-decoration: underline;
}

/* کارت اطلاعات راهنما */
.info-card {
  background: #f0f0f0;
  border-radius: 24px;
  padding: 24px;
}

.info-card h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* مراحل نصب */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-num {
  width: 36px;
  height: 36px;
  background: #f14935;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.step-text {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.step-text strong {
  color: #f14935;
  direction: ltr;
  display: inline-block;
}

/* نکته ویدئویی */
.video-tip {
  background: #fff3e0;
  border-right: 4px solid #f14935;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tip-icon {
  font-size: 24px;
}

.video-tip code {
  background: #e0e0e0;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  direction: ltr;
  display: inline-block;
}

/* کارت اطلاعات سرور */
.server-card {
  background: linear-gradient(135deg, #73218e 0%, #4a0e5e 100%);
  border-radius: 24px;
  padding: 24px;
  color: white;
}

.server-card h3 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
}

.server-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.detail-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-label {
  font-weight: bold;
  font-size: 14px;
  opacity: 0.9;
}

.detail-value {
  font-family: monospace;
  font-size: 14px;
  direction: ltr;
}

.detail-value.online {
  color: #4caf50;
  font-weight: bold;
}

/* دکمه کپی */
.copy-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-family: "Dana";
  transition: background 0.3s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 830px) {
  .download-card {
    flex-direction: column;
    text-align: center;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .file-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .hero-section p {
    font-size: 14px;
  }

  .step {
    padding: 10px 16px;
  }

  .step-num {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .step-text {
    font-size: 13px;
  }

  .detail-item {
    width: 100%;
    justify-content: space-between;
  }
}

/* برای دستگاه‌های بسیار کوچک */
@media (max-width: 480px) {
  .download-main {
    margin: 12px;
    gap: 16px;
  }

  .hero-section {
    padding: 24px 16px;
  }

  .download-card {
    padding: 16px;
  }

  .card-content h2 {
    font-size: 20px;
  }

  .info-card,
  .server-card {
    padding: 16px;
  }
}

/* آیکون‌های پیش‌فرض در صورت نبودن فایل تصویری */
.gta-icon {
  background-color: #f14935;
  border-radius: 20px;
  background-image: none;
  position: relative;
}

.gta-icon::after {
  content: "GTA";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.samp-icon {
  background-color: #2c7a4d;
  border-radius: 20px;
  background-image: none;
  position: relative;
}

.samp-icon::after {
  content: "SAMP";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: bold;
  color: white;
}
