/**
 * チャレンジカード修正CSS
 * グラデーション背景を削除してカード内容を正しく表示
 */

/* チャレンジカードのスタイル修正 */
#challengeList .card,
.challenge-card,
.card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: visible !important;
}

/* カード内のコンテンツを表示 */
#challengeList .card > *,
.challenge-card > *,
.card > * {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ホバー効果 */
#challengeList .card:hover,
.challenge-card:hover,
.card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* プログレスバーのスタイル */
.progress-bar {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  height: 8px !important;
}

.progress-fill {
  height: 100% !important;
  border-radius: 10px !important;
  transition: width 0.5s ease !important;
}

/* カラークラス */
.bg-purple { background: #9333ea !important; }
.bg-pink { background: #ec4899 !important; }
.bg-blue { background: #3b82f6 !important; }
.bg-green { background: #10b981 !important; }
.bg-yellow { background: #f59e0b !important; }
.bg-red { background: #ef4444 !important; }

/* アイコンとテキストの色 */
.card svg {
  color: inherit !important;
  fill: currentColor !important;
}

.card h3 {
  color: white !important;
  font-size: 1.25rem !important;
  font-weight: bold !important;
  margin-bottom: 0.5rem !important;
}

.card p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 !important;
}

.card span {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 数値表示 */
.card .text-2xl {
  font-size: 1.5rem !important;
  color: white !important;
  font-weight: bold !important;
}

/* パーセンテージ表示 */
.text-green-400 { color: #4ade80 !important; }
.text-yellow-400 { color: #facc15 !important; }
.text-pink-400 { color: #f472b6 !important; }
.text-blue-400 { color: #60a5fa !important; }
.text-purple-400 { color: #a78bfa !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }

/* グループメンバー表示 */
.card .text-xs {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* 場所と日付 */
.card .flex.items-center.justify-between {
  margin-top: 0.75rem !important;
}

/* チケットアイコン */
.card svg[href*="ticket"] {
  color: #4ade80 !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #challengeList {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .card {
    padding: 16px !important;
  }
}