/**
 * その他のコンポーネント
 */

/* タッチドラッグ中のスタイル */
.touch-dragging {
  pointer-events: none;
  opacity: 0.6;
  box-shadow: var(--shadow-touch);
  transition: opacity 0.2s ease;
}

/* 画像選択状態 */
.tier-item-wrapper.selected {
  border: 3px solid #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
  position: relative;
}

.tier-item-wrapper.selected::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  background: #4a90e2;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
}

/* 画像結合コントロール */
.composition-controls {
  text-align: center;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(100, 100, 100, 0.07);
  padding: 15px;
  border: 1.5px solid #e0e0e0;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.composition-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.composition-title {
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

.selection-count {
  font-size: 0.9rem;
  color: #4a90e2;
  font-weight: 500;
  background: #e3f2fd;
  padding: 3px 10px;
  border-radius: 12px;
}

.composition-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.compose-btn {
  background: linear-gradient(90deg, #5ba3f5 0%, #4a90e2 100%);
  color: white;
  border: 2px solid #3a7bc8;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.compose-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #4a90e2 0%, #3a7bc8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.compose-btn:active:not(:disabled) {
  transform: translateY(0);
}

.compose-btn:disabled {
  background: #e0e0e0;
  color: #999;
  border-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.compose-btn.clear-btn {
  background: linear-gradient(90deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #666;
  border-color: #ccc;
}

.compose-btn.clear-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #e0e0e0 0%, #d0d0d0 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.composition-help {
  font-size: 0.85rem;
  color: #666;
  margin: 8px 0 0 0;
}

/* Twitterリンク */
.twitter-link {
  text-decoration: none;
  color: var(--color-twitter);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.twitter-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* エラーメッセージ */
.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-error);
  color: var(--color-white);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-error);
  z-index: 1000;
  font-weight: bold;
  max-width: 300px;
  word-wrap: break-word;
}

/* アニメーション */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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