/* StudijaAI — CSS varijable po temi + minimalni overridei (.card, .btn-primary, .action-btn, .glass).
   Layout i ostale komponente: style.css / pages.css. */

body.theme-classic {
  --theme-surface: #ffffff;
  --theme-bg: #ffffff;
  --theme-primary: #0d6efd;
  --theme-primary-dark: #0b5ed7;
  --theme-success: #198754;
  --theme-warning: #dc3545;
  --theme-muted: #6b7280;
  --theme-border: #e5e7eb;
  --theme-text: #111827;
  --theme-text-secondary: #374151;
  --theme-radius-card: 12px;
  --theme-radius-btn: 10px;
  --theme-shadow-card: none;
  --theme-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.theme-vibrant {
  --theme-surface: #ffffff;
  --theme-bg: #f8fafc;
  --theme-primary: #6366f1;
  --theme-primary-dark: #4f46e5;
  --theme-success: #6ee7b7;
  --theme-warning: #fb7185;
  --theme-muted: #94a3b8;
  --theme-border: #e5e7eb;
  --theme-text: #1e293b;
  --theme-text-secondary: #374151;
  --theme-radius-card: 16px;
  --theme-radius-btn: 12px;
  --theme-shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --theme-font: "Plus Jakarta Sans", system-ui, sans-serif;
  /* Globalni vibrant akcijski tokeni */
  --vibrant-purple: #8b5cf6;
  --vibrant-purple-deep: #7c3aed;
  --vibrant-purple-rgb: 139 92 246;
  --vibrant-purple-light: rgba(139, 92, 246, 0.08);
  --vibrant-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--theme-bg);
  color: var(--theme-text);
  font-family: var(--theme-font);
}

body.theme-vibrant .card {
  border-radius: var(--theme-radius-card);
  box-shadow: var(--theme-shadow-card);
}

body.theme-vibrant .card:hover {
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

body.theme-vibrant .btn-primary,
body.theme-vibrant button.btn-primary,
body.theme-vibrant a.btn-primary {
  border-radius: var(--theme-radius-btn);
  background: linear-gradient(135deg, var(--theme-primary), #8b5cf6);
  border: 0;
  color: #ffffff;
}

body.theme-vibrant .action-btn.primary,
body.theme-vibrant button.action-btn.primary,
body.theme-vibrant a.action-btn.primary {
  border-radius: var(--theme-radius-btn);
  background: linear-gradient(135deg, var(--theme-primary), #8b5cf6);
  border: 0;
  color: #ffffff;
}

body.theme-vibrant .btn-primary:hover,
body.theme-vibrant button.btn-primary:hover,
body.theme-vibrant a.btn-primary:hover,
body.theme-vibrant .action-btn.primary:hover,
body.theme-vibrant button.action-btn.primary:hover,
body.theme-vibrant a.action-btn.primary:hover {
  filter: brightness(1.03);
}

body.theme-vibrant .glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Čitljiv sekundarni sadržaj (odgovori, opisi) — koristi s HTML class="theme-text-secondary" */
body.theme-classic .theme-text-secondary,
body.theme-vibrant .theme-text-secondary {
  color: var(--theme-text-secondary);
}
