/**
 * i18n.css - 語言選擇器樣式
 * 圓弧排列的地球村風格
 */

/* 語言選擇器容器 */
.lang-globe {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
  perspective: 1000px;
}

/* 語言弧形排列 */
.lang-arc {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  transform-style: preserve-3d;
}

/* 第一排 - 稍微往上彎 */
.lang-arc-top {
  transform: rotateX(-5deg);
}

/* 中間排 */
.lang-arc-middle {
  transform: rotateX(0deg);
}

/* 第三排 - 稍微往下彎 */
.lang-arc-bottom {
  transform: rotateX(5deg);
}

/* 特殊語言排 */
.lang-arc-special {
  transform: rotateX(8deg);
  margin-top: 5px;
}

/* 語言按鈕 */
.lang-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: #333;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
  background: #12d4df;
  border-color: #12d4df;
  color: #fff;
  box-shadow: 0 4px 15px rgba(18, 212, 223, 0.5);
}

/* Hero 區塊的向下箭頭 */
.hero-arrow {
  margin-top: 30px;
  text-align: left;
}

.hero-arrow img {
  width: 60px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}

/* RWD 響應式設計 */
@media (max-width: 768px) {
  .lang-globe {
    margin-top: 30px;
    text-align: center;
  }

  /* 手機版：取消弧形分組，改成統一網格排列 */
  .lang-arc {
    display: contents;
  }

  .lang-arc-top,
  .lang-arc-middle,
  .lang-arc-bottom,
  .lang-arc-special {
    transform: none;
  }

  #lang-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .lang-btn {
    padding: 8px 12px;
    font-size: 14px;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .lang-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  #lang-selector {
    gap: 6px;
  }

  .hero-arrow img {
    width: 40px;
  }
}

/* 阿拉伯文 RTL 支援 */
[lang="ar"] .lang-btn {
  direction: rtl;
}

/* 藏文字體調整 */
.lang-btn[data-lang="bo"] {
  font-size: 12px;
}
