/* sample-challenges.css — Monthly Sample Challenge UI */

/* ==================== List View ==================== */
.challenge-list { max-width: 900px; margin: 0 auto; padding: 20px; }
.challenge-header { text-align: center; margin-bottom: 32px; }
.challenge-header h2 { font-size: 28px; margin: 0 0 8px; color: #fff; }
.challenge-subtitle { color: rgba(255,255,255,0.5); font-size: 14px; margin: 0; }
.challenge-section-title { color: rgba(255,255,255,0.4); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 32px 0 16px; }

/* ==================== Challenge Card ==================== */
.challenge-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.challenge-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.challenge-card.active { border-color: rgba(255,165,0,0.3); }
.challenge-card.ended { opacity: 0.7; }
.challenge-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.challenge-card.active .challenge-card-badge { background: rgba(255,100,0,0.2); color: #ff6a00; }
.challenge-card.ended .challenge-card-badge { background: rgba(100,255,100,0.1); color: #4ade80; }
.challenge-card-title { font-size: 20px; color: #fff; margin: 0 0 8px; }
.challenge-card-desc { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.challenge-card-stats {
  display: flex; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.challenge-card-tag {
  display: inline-block; margin-top: 12px;
  padding: 4px 10px; background: rgba(138,43,226,0.15); color: #a78bfa;
  border-radius: 8px; font-size: 12px; font-family: monospace;
}

/* ==================== Detail View ==================== */
.challenge-detail { max-width: 900px; margin: 0 auto; padding: 20px; }
.challenge-back {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 14px; cursor: pointer; padding: 8px 0; margin-bottom: 16px;
}
.challenge-back:hover { color: #fff; }

.challenge-hero {
  text-align: center; padding: 32px 20px; margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(255,100,0,0.08), rgba(138,43,226,0.08));
  border: 1px solid rgba(255,255,255,0.06); border-radius: 20px;
}
.challenge-hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  background: rgba(255,100,0,0.2); color: #ff6a00; margin-bottom: 16px;
}
.challenge-hero h2 { font-size: 28px; color: #fff; margin: 0 0 8px; }
.challenge-hero p { color: rgba(255,255,255,0.6); font-size: 15px; margin: 0 0 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.challenge-timer { color: rgba(255,255,255,0.4); font-size: 14px; font-family: monospace; }

/* ==================== Prizes ==================== */
.challenge-prizes { margin-bottom: 32px; }
.challenge-prizes h3 { color: #fff; font-size: 18px; margin: 0 0 16px; }
.challenge-prize-list { display: flex; flex-direction: column; gap: 8px; }
.challenge-prize {
  padding: 12px 16px; border-radius: 12px; font-size: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.challenge-prize.gold { border-color: rgba(255,215,0,0.3); color: #ffd700; }
.challenge-prize.silver { border-color: rgba(192,192,192,0.2); color: #c0c0c0; }
.challenge-prize.bronze { border-color: rgba(205,127,50,0.2); color: #cd7f32; }

/* ==================== Samples ==================== */
.challenge-samples-section { margin-bottom: 32px; }
.challenge-samples-section h3 { color: #fff; font-size: 18px; margin: 0 0 16px; }
.challenge-sample-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.challenge-sample-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.8);
}
.challenge-sample-icon { font-size: 16px; }
.challenge-sample-name { flex: 1; font-family: monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.challenge-sample-dur { color: rgba(255,255,255,0.3); font-size: 11px; font-family: monospace; }

/* Type-specific colors */
.challenge-sample-chip[data-type="bass"] { border-color: rgba(255,50,50,0.2); }
.challenge-sample-chip[data-type="drums"] { border-color: rgba(255,165,0,0.2); }
.challenge-sample-chip[data-type="melodic"] { border-color: rgba(138,43,226,0.2); }
.challenge-sample-chip[data-type="vocal"] { border-color: rgba(0,200,255,0.2); }
.challenge-sample-chip[data-type="texture"] { border-color: rgba(0,200,150,0.2); }
.challenge-sample-chip[data-type="fx"] { border-color: rgba(255,215,0,0.2); }

/* ==================== Entries ==================== */
.challenge-entries-section { margin-bottom: 32px; }
.challenge-entries-section h3 { color: #fff; font-size: 18px; margin: 0 0 16px; }
.challenge-entries-list { display: flex; flex-direction: column; gap: 8px; }
.challenge-empty-entries {
  text-align: center; padding: 40px; color: rgba(255,255,255,0.3);
  font-size: 15px;
}

.challenge-entry {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s ease;
}
.challenge-entry:hover { background: rgba(255,255,255,0.05); }
.challenge-entry.voted { border-color: rgba(255,100,0,0.3); }
.challenge-entry.mine { border-color: rgba(138,43,226,0.3); }

.challenge-entry-rank {
  font-size: 24px; min-width: 40px; text-align: center;
}
.challenge-entry-info { flex: 1; min-width: 0; }
.challenge-entry-title { font-size: 16px; color: #fff; font-weight: 600; }
.challenge-entry-artist { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.challenge-entry-meta { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 4px; font-family: monospace; }
.challenge-entry-desc { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 6px; font-style: italic; }

.challenge-vote-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 14px; cursor: pointer;
  transition: all 0.2s ease;
}
.challenge-vote-btn:hover:not([disabled]) { background: rgba(255,100,0,0.15); border-color: rgba(255,100,0,0.3); color: #ff6a00; }
.challenge-vote-btn.active { background: rgba(255,100,0,0.2); border-color: #ff6a00; color: #ff6a00; }
.challenge-vote-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ==================== Buttons ==================== */
.challenge-btn {
  padding: 10px 20px; border-radius: 10px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.challenge-btn-download { background: rgba(255,255,255,0.08); color: #fff; }
.challenge-btn-download:hover { background: rgba(255,255,255,0.12); }
.challenge-btn-submit { background: rgba(255,100,0,0.2); color: #ff6a00; border: 1px solid rgba(255,100,0,0.3); }
.challenge-btn-submit:hover { background: rgba(255,100,0,0.3); }
.challenge-btn-primary { background: #ff6a00; color: #fff; width: 100%; margin-top: 16px; }
.challenge-btn-primary:hover { background: #ff8533; }

/* ==================== Submit Modal ==================== */
.challenge-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.challenge-submit-modal {
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; max-width: 480px; width: 90%; overflow: hidden;
}
.challenge-submit-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.challenge-submit-header h3 { margin: 0; color: #fff; font-size: 18px; }
.challenge-submit-close {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 18px; cursor: pointer;
}
.challenge-submit-body { padding: 20px; }
.challenge-submit-body label {
  display: block; font-size: 12px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; margin-top: 14px;
}
.challenge-submit-body label:first-child { margin-top: 0; }
.challenge-input {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 14px; box-sizing: border-box;
}
.challenge-input:focus { outline: none; border-color: rgba(255,100,0,0.5); }
.challenge-textarea { min-height: 80px; resize: vertical; font-family: inherit; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
