/**
 * QEDU Interactive Live Activity - Player Interface Stylesheet
 */

.player-wrapper {
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: relative;
}

/* Player Header Bar */
.player-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(19, 34, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  margin-bottom: 16px;
}

.player-info-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-avatar-circle {
  font-size: 26px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--emerald-light);
}

.player-name-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #FFF;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-score-chip {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--gold-light);
}

/* Streak Pill */
.streak-pill {
  background: linear-gradient(135deg, #EF4444, #F97316);
  color: #FFF;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Player Views Container */
.player-screen-card {
  background: rgba(19, 34, 56, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-height: 480px;
}

/* Big Status Icons */
.status-icon-large {
  font-size: 72px;
  margin-bottom: 16px;
  line-height: 1;
}

.status-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #FFF;
}

.status-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* Kahoot Style Grid Buttons for Quiz */
.quiz-choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  flex: 1;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .quiz-choices-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.choice-tap-btn {
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}

.choice-tap-btn:active {
  transform: scale(0.95);
}

.choice-shape-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.choice-tap-btn.opt-red {
  background: linear-gradient(145deg, #E21B3C, #C01431);
  box-shadow: 0 8px 20px -4px rgba(226, 27, 60, 0.5);
}
.choice-tap-btn.opt-blue {
  background: linear-gradient(145deg, #1368CE, #0C4FA4);
  box-shadow: 0 8px 20px -4px rgba(19, 104, 206, 0.5);
}
.choice-tap-btn.opt-yellow {
  background: linear-gradient(145deg, #D89E00, #B28200);
  box-shadow: 0 8px 20px -4px rgba(216, 158, 0, 0.5);
}
.choice-tap-btn.opt-green {
  background: linear-gradient(145deg, #26890C, #1B6608);
  box-shadow: 0 8px 20px -4px rgba(38, 137, 12, 0.5);
}
.choice-tap-btn.opt-purple {
  background: linear-gradient(145deg, #864CBF, #6A359C);
  box-shadow: 0 8px 20px -4px rgba(134, 76, 191, 0.5);
}
.choice-tap-btn.opt-orange {
  background: linear-gradient(145deg, #E66415, #B84A09);
  box-shadow: 0 8px 20px -4px rgba(230, 100, 21, 0.5);
}

.choice-tap-btn.selected {
  outline: 4px solid #FFFFFF;
  filter: brightness(1.2);
  transform: scale(1.02);
}

.choice-tap-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Word Cloud Input Box */
.wordcloud-input-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 440px;
  margin: 20px auto 0;
}

.word-input-field {
  width: 100%;
  padding: 18px 22px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  background: rgba(7, 15, 30, 0.8);
  border: 2px solid var(--emerald);
  border-radius: var(--radius-lg);
  color: #FFF;
  outline: none;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.word-input-field:focus {
  border-color: var(--emerald-light);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
}

/* Result Feedback Cards */
.feedback-card {
  padding: 30px 20px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feedback-card.correct {
  background: linear-gradient(135deg, rgba(38, 137, 12, 0.3), rgba(16, 185, 129, 0.2));
  border: 2px solid var(--emerald);
}

.feedback-card.incorrect {
  background: linear-gradient(135deg, rgba(226, 27, 60, 0.3), rgba(239, 68, 68, 0.2));
  border: 2px solid var(--coral);
}

.points-earned-pill {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}
