/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #fff; /* أبيض */
  color: #333;
  line-height: 1.6;
}

/* ألوان رئيسية */
:root {
  --blue: #3a86ff; /* أزرق */
  --warm-pink: #ff6f91; /* وردي دافئ */
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-dark: #333333;
}

/* روابط */
a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  
}
.spinnerdiv {
  display: none;
  text-align:center; 
  margin-top:10px;

}
a:hover {
  text-decoration: underline;
  color: var(--warm-pink);
}

/* عناوين */
h1, h2, h3 {
  color: var(--blue);
}

/* Header */
header {
  background-color: rgb(255, 255, 255);
  padding: 1rem;
  border-bottom: 3px solid var(--blue);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.downform {
 display:none; 
 margin: 40px auto; 
 max-width: 500px; 
 padding: 20px; 
 background: #fff; 
 border-radius: 8px; 
 box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
 text-align: center;
}
.logo {
  flex: 1;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--warm-pink);
}

.social-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  font-weight: bold;
  color: var(--blue);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--warm-pink);
}

#language-switcher {
  flex: 0 0 auto; /* حتى ما يأخذ مساحة كبيرة */
  width: 120px; /* عرض ثابت أصغر */
  text-align: center; /* غيرت من right إلى center عشان الشكل أحسن */
  padding: 0.3rem 0.5rem; /* تقليل الحشوة */
  border-radius: 6px;
  border: 1.5px solid var(--blue);
  background-color: var(--gray-light);
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem; /* تصغير الخط شوية */
}


/* Main Container */
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--white);
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.1);
}

#subtitle {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #555;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}

input[type="text"], select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--blue);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--warm-pink);
}

button[type="submit"], .download-btn {
  background-color: var(--warm-pink);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  background-color: #d10733
}

button[type="submit"]:hover, .download-btn:hover {
  background-color: #5f2532;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem 2rem;
  border-radius: 14px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 8px 25px rgba(58, 134, 255, 0.25);
  text-align: center;
  position: relative;
  color: var(--gray-dark);
}

.modal-content .close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--warm-pink);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
}

.modal-content .close:hover {
  color: #c0465e;
}

#modal-video-thumb {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

#modal-video-title {
  font-size: 1.6rem;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 700;
}

#modal-spinner {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 25px;
}

#modal-final-download {
  display: inline-block;
  background-color: var(--warm-pink);
  color: var(--white);
  padding: 0.8rem 2.4rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 111, 145, 0.45);
  transition: background-color 0.3s ease;
}

#modal-final-download:hover {
  background-color: #c0465e;
}

.modal-content button {
  margin-top: 20px;
  background-color: transparent;
  border: 2px solid var(--warm-pink);
  color: var(--warm-pink);
  padding: 10px 26px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content button:hover {
  background-color: var(--warm-pink);
  color: var(--white);
}

/* Sections */
section {
  padding: 2.5rem;
  margin: 2.5rem auto;
  max-width: 900px;
  background-color: #fff0f5; /* وردي فاتح جدا */
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 111, 145, 0.15);
}

.features {
  background-color: var(--gray-light);
}

/* استخدام Grid لتوزيع العناصر */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  justify-items: stretch;
}

.feature-item {
  background-color: var(--white);
  padding: 1.4rem 1.8rem;
  border: 1px solid #ffcad4;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(255, 111, 145, 0.2);
  transition: box-shadow 0.3s ease;
}

.feature-item:hover {
  box-shadow: 0 5px 18px rgba(255, 111, 145, 0.35);
}

/* FAQ */
.faq details {
  margin-bottom: 1.2rem;
  background-color: var(--white);
  padding: 1.2rem 1.4rem;
  border: 1px solid #ffcad4;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.faq details:hover {
  box-shadow: 0 4px 14px rgba(255, 111, 145, 0.25);
}

/* Quick Links */
.quick-links {
  text-align: center;
  margin-top: 2.5rem;
}

.quick-links a {
  margin: 0 14px;
  font-weight: 700;
  background-color: var(--blue);
  color: var(--white);
  padding: 0.5rem 1.4rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.quick-links a:hover {
  background-color: #265ecf;
}

/* Footer */
/* Footer */
footer {
  background-color: rgb(36, 34, 34); /* خلفية رمادية خفيفة */
  padding: 3rem 2.5rem;
  text-align: center;
  border-top: 3px solid var(--blue);
  margin-top: 3rem;
  color: var(--dark-gray);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 3rem;
  justify-content: center;
  align-items: start;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.footer-section h4 {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.footer-links a:hover {
  color: var(--warm-pink);
  border-bottom-color: var(--warm-pink);
}

/* أيقونات Font Awesome */
.footer-links a i {
  font-size: 1.1rem;
  min-width: 20px; /* ثبات مساحة الأيقونة */
  color: var(--blue);
  transition: color 0.3s ease;
}

.footer-links a:hover i {
  color: var(--warm-pink);
}

.disclaimer {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: #d3c9c9;
  text-align: center;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.8); /* خلفية شفافة */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-box {
  text-align: center;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.custom-spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ddd;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

.spinner-text {
  margin-top: 15px;
  font-size: 16px;
  color: #222;
  font-weight: 500;
}




/* Responsive */
@media (max-width: 600px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links, #language-switcher {
    text-align: left;
    margin-top: 0.8rem;
  }

  form {
    width: 100%;
    max-width: 100%;
  }
  .footer-links a {
    justify-content: center;
  }

}
@keyframes spin {
  to { transform: rotate(360deg); }
}