/* =============================================
   GLOBALNI STILOVI
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #e0e0e0;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  color: #e94560;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
  letter-spacing: 2px;
}

h2 {
  font-size: 1.6rem;
  color: #f0a500;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.2rem;
  color: #00d4ff;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #a0a0c0;
  margin-bottom: 30px;
  font-size: 1rem;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.nav-btn {
  background: linear-gradient(135deg, #e94560, #c62a47);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
}

.nav-btn.secondary {
  background: linear-gradient(135deg, #0f3460, #1a5276);
  box-shadow: 0 4px 15px rgba(15, 52, 96, 0.3);
}

.nav-btn.secondary:hover {
  box-shadow: 0 8px 25px rgba(15, 52, 96, 0.5);
}

/* =============================================
   UMNA MAPA
   ============================================= */
.mindmap-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mindmap-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mindmap-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  cursor: pointer;
}

.section-icon {
  font-size: 2rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: bold;
}

.color-red    { border-left: 5px solid #e94560; }
.color-blue   { border-left: 5px solid #00d4ff; }
.color-green  { border-left: 5px solid #2ecc71; }
.color-orange { border-left: 5px solid #f0a500; }
.color-purple { border-left: 5px solid #9b59b6; }
.color-teal   { border-left: 5px solid #1abc9c; }

.color-red   .section-title { color: #e94560; }
.color-blue  .section-title { color: #00d4ff; }
.color-green .section-title { color: #2ecc71; }
.color-orange .section-title { color: #f0a500; }
.color-purple .section-title { color: #9b59b6; }
.color-teal  .section-title { color: #1abc9c; }

.mindmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.mindmap-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.mindmap-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
}

.mindmap-card h4 {
  font-size: 0.95rem;
  color: #f0a500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mindmap-card ul {
  list-style: none;
  padding: 0;
}

.mindmap-card ul li {
  padding: 4px 0;
  font-size: 0.88rem;
  color: #c8d6e5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 12px;
  position: relative;
}

.mindmap-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #e94560;
  font-size: 0.75rem;
}

.stat-box {
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  margin: 5px 0;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e94560;
}

.stat-label {
  font-size: 0.8rem;
  color: #a0a0c0;
  margin-top: 4px;
}

.stat-box.blue {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
}

.stat-box.blue .stat-number { color: #00d4ff; }

.stat-box.green {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.3);
}

.stat-box.green .stat-number { color: #2ecc71; }

.stat-box.orange {
  background: rgba(240, 165, 0, 0.12);
  border-color: rgba(240, 165, 0, 0.3);
}

.stat-box.orange .stat-number { color: #f0a500; }

.highlight-box {
  background: rgba(240, 165, 0, 0.1);
  border-left: 4px solid #f0a500;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin: 8px 0;
  font-size: 0.9rem;
  color: #e0d0a0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: bold;
  margin: 3px 2px;
}

.badge-red    { background: rgba(233,69,96,0.25);   color: #e94560;  border: 1px solid #e94560; }
.badge-blue   { background: rgba(0,212,255,0.15);   color: #00d4ff;  border: 1px solid #00d4ff; }
.badge-green  { background: rgba(46,204,113,0.15);  color: #2ecc71;  border: 1px solid #2ecc71; }
.badge-orange { background: rgba(240,165,0,0.15);   color: #f0a500;  border: 1px solid #f0a500; }
.badge-purple { background: rgba(155,89,182,0.15);  color: #9b59b6;  border: 1px solid #9b59b6; }

/* =============================================
   KVIZ
   ============================================= */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-progress-bar-wrapper {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  height: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #e94560, #f0a500);
  border-radius: 20px;
  transition: width 0.5s ease;
}

.quiz-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #a0a0c0;
}

.quiz-score-badge {
  background: rgba(240,165,0,0.2);
  border: 1px solid #f0a500;
  border-radius: 20px;
  padding: 4px 14px;
  color: #f0a500;
  font-weight: bold;
}

.question-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.question-number {
  font-size: 0.8rem;
  color: #a0a0c0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.question-text {
  font-size: 1.15rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.options-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 20px;
  color: #d0d0d0;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-btn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  color: #ffffff;
  transform: translateX(5px);
}

.option-btn .option-label {
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.option-btn.correct {
  background: rgba(46, 204, 113, 0.2) !important;
  border-color: #2ecc71 !important;
  color: #2ecc71 !important;
  transform: none !important;
}

.option-btn.correct .option-label {
  background: #2ecc71;
  color: #fff;
}

.option-btn.wrong {
  background: rgba(233, 69, 96, 0.2) !important;
  border-color: #e94560 !important;
  color: #e94560 !important;
  transform: none !important;
}

.option-btn.wrong .option-label {
  background: #e94560;
  color: #fff;
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.feedback-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}

.feedback-box.show { display: block; }

.feedback-box.correct-feedback {
  background: rgba(46,204,113,0.15);
  border-left: 4px solid #2ecc71;
  color: #a8f0c6;
}

.feedback-box.wrong-feedback {
  background: rgba(233,69,96,0.15);
  border-left: 4px solid #e94560;
  color: #f5a0b0;
}

.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.next-btn {
  background: linear-gradient(135deg, #e94560, #c62a47);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233,69,96,0.5);
}

.next-btn.show { display: block; }

/* Rezultati */
.results-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  display: none;
}

.results-card.show { display: block; }

.results-emoji {
  font-size: 4rem;
  margin-bottom: 15px;
}

.results-score {
  font-size: 3.5rem;
  font-weight: bold;
  color: #f0a500;
  margin: 10px 0;
}

.results-text {
  font-size: 1.1rem;
  color: #a0a0c0;
  margin-bottom: 25px;
}

.results-message {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.results-breakdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.rb-item {
  text-align: center;
}

.rb-num {
  font-size: 2rem;
  font-weight: bold;
}

.rb-num.green { color: #2ecc71; }
.rb-num.red   { color: #e94560; }

.rb-label {
  font-size: 0.85rem;
  color: #a0a0c0;
}

.restart-btn {
  background: linear-gradient(135deg, #f0a500, #e67e22);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(240,165,0,0.3);
}

.restart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240,165,0,0.5);
}

/* =============================================
   RESPONZIVNOST
   ============================================= */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  .mindmap-grid { grid-template-columns: 1fr; }
  .question-card { padding: 20px; }
  .results-breakdown { gap: 20px; }
  .nav-buttons { flex-direction: column; align-items: center; }
}
