* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: system-ui, sans-serif; 
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-container {
  max-width: 650px;
  width: 100%;
}

/* Potpisi */
.corner {
  position: fixed;
  top: 20px;
  font-size: 0.8rem;
  background: rgba(20,20,40,0.9);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(100,100,180,0.3);
  backdrop-filter: blur(10px);
}
.corner span { color: #22c55e; font-weight: 600; }
.corner-top-left { left: 20px; }
.corner-top-right { right: 20px; }

/* Hero */
.hero-text {
  text-align: center;
  margin-bottom: 40px;
}
.hero-text h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
}
.hero-text p { 
  color: #9ca3af; 
  font-size: 1.1rem;
  margin-top: 8px;
}

/* Kartice */
.card {
  background: rgba(20,20,40,0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(100,100,180,0.3);
  display: none;
  animation: slideIn 0.5s ease;
}
.card.active { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Start ekran */
.start-content {
  text-align: center;
}
.chip-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.start-content h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.start-content p {
  color: #9ca3af;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Buttons */
.primary-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(34,197,94,0.4);
}
.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(34,197,94,0.5);
}
.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.next-btn {
  width: auto !important;
  padding: 14px 28px !important;
}

/* Quiz header */
.quiz-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
#question-number {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 600;
}
.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(40,40,80,0.6);
  border-radius: 4px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  width: 0;
  transition: width 0.4s;
}

#question-text {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Odgovori */
#answers-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.answer-btn {
  background: rgba(15,15,35,0.8);
  border: 1px solid rgba(75,85,99,0.5);
  border-radius: 16px;
  padding: 18px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  gap: 12px;
}
.answer-btn:hover:not(:disabled) {
  background: rgba(25,25,55,0.9);
  border-color: #6b7280;
  transform: translateX(5px);
}
.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.answer-btn span {
  width: 28px;
  height: 28px;
  background: rgba(34,197,94,0.3);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.answer-btn.correct {
  background: rgba(34,197,94,0.2);
  border-color: #22c55e;
}
.answer-btn.wrong {
  background: rgba(239,68,68,0.2);
  border-color: #ef4444;
}

/* Footer */
.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(100,100,180,0.3);
}
#feedback { color: #9ca3af; }

/* REZULTAT - NOVI DIZAJN */
.result-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
#final-score {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
}
.result-emoji {
  font-size: 3.5rem;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.8rem;
}
#result-text {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .app-container { padding: 10px; }
  .card { padding: 30px 20px; }
  .hero-text h1 { font-size: 2.2rem; }
  .result-header { flex-direction: column; gap: 10px; }
  #final-score { font-size: 3.5rem; }
}
