/**
 * VPR 8 Class - Task 2 Styles
 * Стили для задания 2: Сравнение чисел в системах счисления
 */

@import url("vpr8-common.css");

.options {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.option-btn {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.2rem;
  font-family: "Courier New", monospace;
  border: 3px solid #ddd;
  border-radius: 10px;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: #667eea;
  background-color: #f8f9ff;
}

.option-btn.selected {
  border-color: #667eea;
  background-color: #eef2ff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.option-btn.correct {
  border-color: #10b981;
  background-color: #ecfdf5;
  color: #065f46;
}

.option-btn.incorrect {
  border-color: #ef4444;
  background-color: #fef2f2;
  color: #991b1b;
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

/* Справочные таблицы перевода */
.reference-tables {
  margin-top: 40px;
  padding: 25px;
  background: #f8f9ff;
  border-radius: 15px;
  border: 2px solid #e0e0ff;
}

.reference-tables h2 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}

.tables-wrapper {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.table-block {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.table-block h3 {
  color: #333;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
}

.conversion-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.conversion-table thead {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.conversion-table th,
.conversion-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  color: #333;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
}

.conversion-table th {
  font-weight: 600;
  color: white;
}

.conversion-table tbody tr:last-child td {
  border-bottom: none;
}

.conversion-table tbody tr:hover {
  background: #f8f9fa;
}

/* Responsive */
@media (max-width: 600px) {
  .option-btn {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .tables-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .table-block {
    max-width: 100%;
  }

  .conversion-table th,
  .conversion-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}
