/**
 * VPR 7 Class - Exam Page Styles
 * Стили для страницы экзамена
 */

@import url("vpr7-main.css");

html,
body {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

/* Progress Section */
.progress-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.task-counter {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.task-counter span {
  color: #667eea;
}

.progress-bar-container {
  width: 200px;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(145deg, #11998e 0%, #38ef7d 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* Score Display */
.score-display {
  display: flex;
  align-items: center;
  gap: 15px;
}

.score-item {
  text-align: center;
  padding: 8px 15px;
  background: #f5f5f5;
  border-radius: 10px;
}

.score-value {
  font-size: 1.3rem;
  font-weight: bold;
  color: #11998e;
}

.score-label {
  font-size: 0.75rem;
  color: #666;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.task-frame-container {
  flex: 1;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.task-frame {
  width: 100%;
  height: 100% !important;
  border: none;
  display: block;
  min-height: 600px;
}

/* Navigation */
.navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  flex-wrap: wrap;
}

.nav-btn {
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn:hover:not(:disabled) {
  transform: translateY(-3px);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-prev {
  background: linear-gradient(145deg, #6c757d 0%, #495057 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-next {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-finish {
  background: linear-gradient(145deg, #11998e 0%, #38ef7d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

/* Task Indicators */
.task-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.task-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 3px solid transparent;
}

.task-indicator.current {
  border-color: #667eea;
  transform: scale(1.15);
}

.task-indicator.completed {
  background: #27ae60;
  color: white;
}

.task-indicator.completed-wrong {
  background: #f45c43;
  color: white;
}

.task-indicator.pending {
  background: #e0e0e0;
  color: #666;
}

.task-indicator:hover {
  transform: scale(1.1);
}

/* Results Screen */
.results-screen {
  display: none;
  flex: 1;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.results-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.results-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.results-score {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.results-score.excellent {
  background: linear-gradient(145deg, #11998e 0%, #38ef7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-score.good {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-score.satisfactory {
  background: linear-gradient(145deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-score.needs-work {
  background: linear-gradient(145deg, #eb3349 0%, #f45c43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-message {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 30px;
}

.results-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result-detail-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
}

.result-detail-value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.result-detail-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* Results Breakdown */
.results-breakdown {
  margin-top: 30px;
  text-align: left;
}

.results-breakdown h3 {
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.breakdown-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.breakdown-item.correct {
  border-left: 4px solid #38ef7d;
}

.breakdown-item.incorrect {
  border-left: 4px solid #f45c43;
}

.breakdown-item.skipped {
  border-left: 4px solid #ffc107;
}

.breakdown-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  background: #e0e0e0;
}

.breakdown-item.correct .breakdown-number {
  background: linear-gradient(145deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.breakdown-item.incorrect .breakdown-number {
  background: linear-gradient(145deg, #eb3349 0%, #f45c43 100%);
  color: white;
}

.breakdown-item.skipped .breakdown-number {
  background: linear-gradient(145deg, #ffc107 0%, #ff9800 100%);
  color: white;
}

.breakdown-status {
  font-size: 1.2rem;
}

/* Results Buttons */
.results-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.results-btn {
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  font-weight: 600;
  text-decoration: none;
}

.results-btn:hover {
  transform: translateY(-3px);
}

.btn-restart {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-home {
  background: linear-gradient(145deg, #6c757d 0%, #495057 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .progress-section {
    width: 100%;
    justify-content: center;
  }

  .progress-bar-container {
    width: 150px;
  }

  .task-frame {
    min-height: calc(100vh - 300px);
  }

  .nav-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .results-card {
    padding: 25px;
  }

  .results-title {
    font-size: 1.5rem;
  }

  .results-score {
    font-size: 3rem;
  }
}
