/* styles.css - Final Version with All Updates */
/* Author: Grok | Date: November 15, 2025 */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* === بک‌گراند با عکس (همه صفحات) === */
body {
  background: url('images/wallpaper.jpg') center/cover no-repeat fixed;
  background-attachment: fixed;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  position: relative;
  overflow-y: auto;
  font-family: inherit;
}

.selector-page {
  background: url('images/wallpaper.jpg') center/cover no-repeat fixed;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  position: relative;
  overflow-y: auto;
}

/* === سوئیچ زبان === */
.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10;
}
.lang-switch a {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.lang-switch a.active,
.lang-switch a:hover {
  background: #3b82f6;
  color: white;
}

/* === کادر اصلی (صفحات زبان) - شفاف شیشه‌ای === */
.container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 40px 20px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 1;
  margin-top: 60px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === لوگو در صفحات زبان === */
.page-logo {
  width: 180px;
  height: auto;
  max-height: 150px;
  margin: 0 auto 30px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}

h1 {
  font-size: 2.4rem;
  color: #0f4c81;
  margin-bottom: 16px;
  font-weight: 700;
}

/* === اطلاعات تماس === */
.contact-info {
  margin: 32px 0;
  font-size: 1rem;
  color: #334155;
}
.contact-info p {
  margin: 8px 0;
}
.contact-info a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* === دکمه دانلود === */
.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}
.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* === صفحه انتخاب زبان === */
.selector-container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 40px 20px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  margin-top: 60px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === لوگو در صفحه انتخاب زبان === */
.selector-logo {
  width: 180px;
  height: auto;
  max-height: 150px;
  margin: 0 auto 30px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}

.subtitle {
  font-size: 1.2rem;
  color: #334852;
  margin-bottom: 40px;
}

/* === کارت‌های زبان === */
.lang-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.lang-card {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  background: white;
  border-radius: 18px;
  padding: 24px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}
.lang-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}
.flag {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.lang-card h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 8px;
}
.lang-card p {
  font-size: 0.95rem;
  color: #64748b;
}

.selector-footer {
  margin-top: 50px;
  font-size: 0.9rem;
  color: #90a4ae;
}

/* === ریسپانسیو کامل === */
@media (max-width: 640px) {
  body, .selector-page {
    justify-content: flex-start;
    padding: 10px;
  }
  .lang-switch {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    gap: 8px;
  }
  .container, .selector-container {
    padding: 30px 15px;
    margin-top: 80px;
    margin-bottom: 60px;
    border-radius: 20px;
  }
  h1 { font-size: 1.9rem; }
  .page-logo, .selector-logo {
    width: 140px;
    max-height: 120px;
    margin-bottom: 24px;
  }
  .lang-cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .lang-card {
    max-width: 100%;
    width: 90%;
  }
  .selector-container h1 { font-size: 2.2rem; }
  .contact-info { font-size: 0.95rem; }
  .download-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}