/**
 * Language Selection Popup Styles
 * Premium glassmorphism design matching site aesthetic
 */

/* Popup Overlay */
.language-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.language-popup {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.language-popup-overlay.active .language-popup {
  transform: scale(1);
}

/* Logo */
.language-popup-logo {
  text-align: center;
  margin-bottom: 32px;
}

.language-popup-logo img {
  max-width: 180px;
  height: auto;
}

/* Header */
.language-popup-header {
  text-align: center;
  margin-bottom: 32px;
}

.language-popup-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.language-popup-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Language Options */
.language-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-option:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(4px);
}

.language-option:active {
  transform: translateX(4px) scale(0.98);
}

/* Flag Icon */
.language-flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Language Info */
.language-info {
  flex: 1;
}

.language-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.language-native {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Arrow Icon */
.language-arrow {
  color: #2563eb;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.language-option:hover .language-arrow {
  opacity: 1;
}

/* Close Button (optional - for manual close) */
.language-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.3s ease;
}

.language-popup-close:hover {
  color: #1a1a1a;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .language-popup {
    padding: 32px 24px;
    max-width: 95%;
  }

  .language-popup-logo img {
    max-width: 140px;
  }

  .language-popup-header h2 {
    font-size: 24px;
  }

  .language-popup-header p {
    font-size: 14px;
  }

  .language-option {
    padding: 14px 16px;
  }

  .language-flag {
    width: 40px;
    height: 40px;
  }

  .language-name {
    font-size: 16px;
  }

  .language-native {
    font-size: 13px;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .language-popup {
    background: rgba(26, 26, 26, 0.95);
  }

  .language-popup-header h2 {
    color: #ffffff;
  }

  .language-popup-header p {
    color: #a0a0a0;
  }

  .language-option {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .language-option:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
  }

  .language-name {
    color: #ffffff;
  }

  .language-native {
    color: #a0a0a0;
  }

  .language-popup-close {
    color: #a0a0a0;
  }

  .language-popup-close:hover {
    color: #ffffff;
  }
}
