/* TOPIK Timer & Mode Styles */

/* Exam Mode Selection */
.exam-mode-section {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 12px;
  background: var(--ghost);
  border: 1px solid var(--ghost-border);
}

.exam-mode-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.exam-mode-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.exam-mode-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid var(--ghost-border);
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.exam-mode-btn:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
}

.exam-mode-btn.active {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  font-weight: 700;
}

.exam-mode-desc {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0;
  min-height: 20px;
}

/* Timer Display */
.topik-section-right {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.timer-display.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  animation: pulse-warning 2s ease-in-out infinite;
}

.timer-display.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulse-danger 1s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.timer-icon {
  font-size: 16px;
}

.timer-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
}

.timer-display.warning .timer-text {
  color: #d97706;
}

.timer-display.danger .timer-text {
  color: #dc2626;
}

/* Section Transition Modal */
.transition-content {
  padding: 20px;
  text-align: center;
}

.transition-message {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.transition-submessage {
  font-size: 15px;
  color: var(--ink-light);
  margin-bottom: 15px;
}

.transition-time {
  font-size: 14px;
  color: var(--ink-lighter);
  padding: 10px;
  background: var(--ghost);
  border-radius: 8px;
  margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .topik-section-bar {
    grid-template-columns: 1fr;
  }
  
  .topik-section-right {
    order: -1;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .exam-mode-buttons {
    flex-direction: column;
  }
}
