/* ========================================
   أنماط زرار تبديل اللغة - Language Switcher Styles
   ======================================== */

/* التصميم 1: زرار بعلم وأيقونة */
.lang-switcher-1 {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.lang-switcher-1:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lang-switcher-1 i {
  font-size: 18px;
}

/* التصميم 2: زرار Toggle بسيط */
.lang-switcher-2 {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  background: white;
  border: 2px solid #4CAF50;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  color: #4CAF50;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.lang-switcher-2:hover {
  background: #4CAF50;
  color: white;
  transform: scale(1.05);
}

/* التصميم 3: زرار دائري بأيقونة فقط */
.lang-switcher-3 {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  background: #FF9800;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.lang-switcher-3:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

/* التصميم 4: زرار بقائمة منسدلة */
.lang-switcher-4 {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  background: #2196F3;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
  transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
  background: #1976D2;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.lang-dropdown:hover .lang-dropdown-content {
  display: block;
}

.lang-dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}

.lang-dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* التصميم 5: زرار متحرك (Floating) */
.lang-switcher-5 {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.lang-switcher-5:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

/* التصميم 6: زرار في الـ Navigation */
.nav-lang-switcher {
  background: #F57C00;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
}

.nav-lang-switcher:hover {
  background: #E65100;
  transform: scale(1.05);
  border-color: white;
}

.nav-lang-switcher i {
  font-size: 16px;
}

/* التصميم الجديد: زرار أنيق بتدرج لوني */
.lang-switcher {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  font-size: 15px;
}

.lang-switcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.lang-switcher i {
  font-size: 18px;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lang-switcher:hover i {
  animation-play-state: paused;
}

/* Responsive للموبايل */
@media (max-width: 768px) {
  .lang-switcher-1,
  .lang-switcher-2,
  .lang-switcher-4 {
    top: 10px;
    left: 10px;
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .lang-switcher-3 {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  
  .lang-switcher-5 {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* أيقونات الأعلام */
.flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* تأثير النبض */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}
