/* Szoftvertechnológia Labor Beugró Stíluslap */

:root {
  --bg: #090a10;
  --surface: #121422;
  --surface-card: #141624;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(168, 85, 247, 0.5);
  --primary: #a855f7;
  --primary-light: #c084fc;
  --indigo: #6366f1;
  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #f59e0b;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
}

h1, h2, h3, .font-heading {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Interactive Option Tile */
.option-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.option-tile:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateX(4px);
}

.option-tile.selected {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.option-tile.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #a7f3d0 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.option-tile.wrong {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.6) !important;
  color: #fecdd3 !important;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

.option-tile:disabled {
  cursor: default;
}

.option-letter-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-tile:hover .option-letter-badge {
  background: rgba(168, 85, 247, 0.25);
  color: #f3e8ff;
  border-color: rgba(168, 85, 247, 0.5);
}

.option-tile.selected .option-letter-badge {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.option-tile.correct .option-letter-badge {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

.option-tile.wrong .option-letter-badge {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
}

/* Matrix Jump Button */
.matrix-btn {
  height: 2.25rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.15s ease;
  position: relative;
}

.matrix-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.matrix-btn.current {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5);
  color: #ffffff !important;
}

.matrix-btn.correct {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.matrix-btn.wrong {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fb7185;
}

.matrix-btn.flagged::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
}

/* SVG Diagrams stage */
#diagram-container svg,
#exam-diagram-container svg {
  max-width: 100%;
  height: auto;
  user-select: none;
}

/* Cheat Sheet Card Styling */
.cheat-card {
  background: linear-gradient(180deg, rgba(20, 22, 36, 0.8) 0%, rgba(14, 16, 26, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s ease;
  display: flex;
  flex-col: column;
}

.cheat-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(168, 85, 247, 0.15);
}
