/* ==========================================================================
   Modes & Games Hub Stylesheet (app/assets/stylesheets/modes.css)
   ========================================================================== */

.modes-container {
  max-width: 1120px;
  margin: 2.5rem auto 4rem auto;
  padding: 0 1.5rem;
}

.modes-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.modes-header-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.modes-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.modes-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Modes Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Mode Card Base */
.mode-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1.5px solid #e2e8f0;
  padding: 2.25rem 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* Featured Syllable Combo Mode Card (Morado / Purple Theme) */
.mode-card.mode-featured {
  border: 2px solid #a855f7;
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.18);
}

.mode-card.mode-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(168, 85, 247, 0.26);
}

.mode-ribbon {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(147, 51, 234, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mode Card Header */
.mode-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mode-icon-box {
  width: 62px;
  height: 62px;
  border-radius: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-card.mode-featured .mode-icon-box {
  background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.35);
}

.mode-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.mode-card.mode-featured .mode-name {
  color: #581c87;
}

.mode-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin: 0.15rem 0 0 0;
}

.mode-card.mode-featured .mode-tagline {
  color: #7e22ce;
}

.badge-status-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.badge-status-upcoming {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

/* Mode Body */
.mode-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.mode-description {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin: 0 0 1rem 0;
}

.mode-difficulties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.diff-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.diff-pill.diff-easy {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.diff-pill.diff-normal {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.diff-pill.diff-hard {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Powerups Panel */
.mode-powerups-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.45);
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(6px);
  margin-top: auto;
}

.powerups-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b21a8;
  margin-bottom: 0.5rem;
}

.powerups-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.powerup-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #cbd5e1;
}

.powerup-badge.active {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
  font-weight: 700;
}

/* Upcoming Perks */
.upcoming-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-top: auto;
}

.upcoming-perks span {
  background: #f8fafc;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

/* Mode Footer Buttons */
.mode-footer {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-play-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #07379d 0%, #1e40af 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(7, 55, 157, 0.25);
}

.btn-play-mode:hover:not(.disabled) {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 55, 157, 0.35);
  color: #ffffff;
}

.btn-play-mode.disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}
