/* ===================================
   المكونات - Components
   =================================== */

/* Header */
.header {
  display: flex;
  justify-content: flex-end;
  padding: var(--spacing-md) 0;
  margin-bottom: var(--spacing-lg);
}

/* Language Button */
.language-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-small);
  transition: all var(--transition-fast);
}

.language-btn:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Logo Section */
.logo-section {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.8s ease;
}

.logo-image {
  width: 250px;
  height: auto;
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 8px 25px rgba(59, 130, 246, 0.4));
  animation: glow 3s ease-in-out infinite;
}

/* Buttons */
.nav-btn {
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid rgba(59, 130, 246, 0.5);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-btn:hover {
  background: rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.8);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.nav-btn:active {
  transform: translateY(-1px);
}

/* Dropdown */
.dropdown {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 18px 20px 18px 50px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2359b5f6' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center, right 20px center;
}

.dropdown:hover {
  background-color: var(--glass-hover);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow-md);
}

.dropdown:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown option {
  background: var(--bg-gradient-middle);
  color: var(--text-primary);
  padding: var(--spacing-sm);
}

/* Stat Card */
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: var(--spacing-sm);
}

.stat-number {
  font-size: var(--font-size-xlarge);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

/* Download Button */
.download-btn {
  background: white;
  color: var(--color-primary);
  border: none;
  padding: var(--spacing-lg) 50px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse-shadow 2s infinite;
}

.download-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

/* QR Container */
.qr-container {
  background: white;
  padding: 25px;
  border-radius: var(--radius-lg);
  display: inline-block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(59, 130, 246, 0.3);
  transition: all var(--transition-fast);
}

.qr-container:hover {
  transform: scale(1.05);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.3);
}

.qr-code {
  width: 220px;
  height: 220px;
  display: block;
}

.phone-icon {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .logo-image {
    width: 180px;
  }
  
  .qr-code {
    width: 180px;
    height: 180px;
  }
  
  .stat-card {
    padding: var(--spacing-md);
  }
}