/**
 * ThemeSelector コンポーネントのスタイル
 */

#theme-selector-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-selector select {
  padding: 10px 16px;
  padding-left: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #ffffff;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342b983' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.theme-selector select:hover {
  border-color: #bbb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.theme-selector select:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-selector select option {
  padding: 8px;
  background: white;
  color: #2c3e50;
  font-weight: normal;
}

.theme-selector select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* エラー表示 */
.theme-selector-error {
  animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  #theme-selector-container {
    top: 10px;
    right: 10px;
  }

  .theme-selector select {
    font-size: 12px;
    padding: 8px 12px;
    min-width: 120px;
  }
}

/* ダークテーマ対応（ゲームテーマ用） */
.theme-selector.dark-mode select {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  border-color: #ff6b35;
}

.theme-selector.dark-mode select:hover {
  border-color: #ff8c69;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.theme-selector.dark-mode select:focus {
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.25), 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  .theme-selector select {
    transition: none;
  }

  .theme-selector select:hover {
    transform: none;
  }

  .theme-selector-error {
    animation: none;
  }
}

/* 高コントラストモード */
@media (prefers-contrast: high) {
  .theme-selector select {
    border-width: 3px;
    box-shadow: none;
  }
}