/* DevlopIA Design System */
:root {
  --primary-blue: #5B9FFF;
  --primary-dark: #3B7FDF;
  --secondary-bg: #F4F7FB;
  --white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-gray: #7F8C8D;
  --success: #2ECC71;
  --error: #E74C3C;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Inter, system-ui, sans-serif;
  background-color: var(--secondary-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: 0.3s;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--white);
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Quiz Cards */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding-bottom: 60px;
}

.category-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text-dark);
  border-left: 5px solid var(--primary-blue);
  padding-left: 15px;
}

.quiz-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.quiz-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quiz-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.quiz-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-start {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-start:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Admin Styles */
.admin-container {
  max-width: 800px;
  margin: 50px auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.btn-admin {
  background: var(--success);
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-admin:hover {
  background: #27ae60;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-gray);
  border-top: 1px solid #eee;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .quiz-grid {
    grid-template-columns: 1fr;
  }
}

/* --- New Gamification & UI Enhancements --- */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Enhanced Quiz Container */
.quiz-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Enhanced Option Buttons */
.option-btn {
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-size: 1.15rem;
  padding: 20px 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy effect */
}

.option-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 15px rgba(91, 159, 255, 0.15);
  border-color: var(--primary-blue);
}

.option-btn:active {
  transform: scale(0.98);
}

/* Feedback Box Animation */
.feedback {
  animation: slideIn 0.3s ease-out;
  border-left-width: 6px;
  font-size: 1.05rem;
}

/* Result Card */
.result-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.score-text {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 20px 0;
  text-shadow: 2px 2px 0px rgba(91, 159, 255, 0.1);
}

.fun-message {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  font-style: italic;
  background: #eef5ff;
  padding: 15px;
  border-radius: 10px;
  display: inline-block;
}