/* ==========================================================================
   ProcurUK - Modern Premium Design System
   Univerzita Komenského v Bratislave
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* UK Paleta */
  --uk-red: #8A1B29;
  --uk-red-dark: #66101D;
  --uk-red-light: #B92B3E;
  --uk-red-subtle: #FFF1F2;
  --uk-gold: #D97706;
  --uk-gold-light: #FDE68A;

  /* Neutrály & Pozadia */
  --slate-950: #020617;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Systémové indikátory */
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-50:  #ECFDF5;
  --amber-500:   #F59E0B;
  --amber-600:   #D97706;
  --amber-50:    #FFFBEB;
  --blue-500:    #3B82F6;
  --blue-50:     #EFF6FF;
  --rose-500:    #F43F5E;
  --rose-50:     #FFF1F2;

  /* Efekty & tiene */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px -5px rgba(138, 27, 41, 0.25);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset a základné nastavenie */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(at 10% 10%, rgba(138, 27, 41, 0.04) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(15, 23, 42, 0.03) 0px, transparent 50%);
  color: var(--slate-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Hlavička */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.2;
}

.brand-title span {
  color: var(--uk-red);
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-header-link:hover {
  color: var(--uk-red);
  background-color: var(--uk-red-subtle);
}

.btn-admin {
  background: var(--slate-900);
  color: var(--white) !important;
  box-shadow: var(--shadow-sm);
}

.btn-admin:hover {
  background: var(--uk-red) !important;
  transform: translateY(-1px);
}

/* Hlavný kontajner */
.main-wrapper {
  flex: 1;
  max-width: 940px;
  width: 100%;
  margin: 1.5rem auto 2rem auto;
  padding: 0 1.25rem;
}

/* Hero / Úvodný banner */
.hero-card {
  text-align: center;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--uk-red-subtle);
  color: var(--uk-red);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  border: 1px solid rgba(138, 27, 41, 0.15);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.hero-title em {
  font-style: normal;
  color: var(--uk-red);
}

.hero-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--slate-600);
  max-width: 800px;
  margin: 0 auto;
}

/* Wizard Wrapper */
.wizard-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

/* Progress bar */
.wizard-progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--slate-100);
  position: relative;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--uk-red) 0%, var(--uk-red-light) 100%);
  width: 25%;
  transition: width 0.4s ease;
}

/* Wizard Header / Breadcrumb */
.wizard-header {
  padding: 0.65rem 1.75rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-step-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  line-height: 1;
}

.wizard-step-indicator span {
  color: var(--uk-red);
}

.wizard-history-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-400);
}

.btn-restart {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-restart:hover {
  color: var(--uk-red);
  background: var(--slate-200);
}

/* Wizard Content */
.wizard-body {
  padding: 1.85rem 2.25rem 1.75rem 2.25rem;
}

.question-view {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.question-subtitle {
  font-size: 1rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

/* Metodická pomôcka / Help box */
.help-box {
  background: #F8FAFC;
  border-left: 4px solid var(--uk-red);
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--slate-600);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.help-box-icon {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--uk-red);
  background: var(--uk-red-subtle);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.help-box svg {
  color: var(--uk-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Možnosti odpovedí (Choice Grid) */
.answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.answer-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

.answer-card:hover {
  border-color: var(--uk-red);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -8px rgba(138, 27, 41, 0.15);
}

.answer-card.selected {
  border-color: var(--uk-red);
  background-color: var(--uk-red-subtle);
  box-shadow: 0 0 0 1px var(--uk-red);
}

.answer-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  color: var(--uk-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.answer-card:hover .answer-icon {
  background: var(--uk-red);
  color: var(--white);
}

.answer-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.answer-subtext {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.4;
}

/* Zadanie sumy PHZ (Amount input) */
.amount-input-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.6rem;
}

.input-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency {
  position: absolute;
  left: 1.25rem;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-main);
  color: var(--slate-400);
}

.input-amount {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-main);
  color: var(--slate-900);
  background: var(--white);
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.input-amount:focus {
  border-color: var(--uk-red);
  box-shadow: 0 0 0 4px rgba(138, 27, 41, 0.12);
}

.input-hint {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
}

.amount-bracket-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-pill {
  background: var(--white);
  border: 1px solid var(--slate-300);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: var(--transition);
}

.btn-pill:hover {
  background: var(--slate-200);
  border-color: var(--slate-400);
}

/* Päta sprievodcu (Akcie) */
.wizard-footer {
  padding: 1.25rem 2.5rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn-primary {
  background: var(--uk-red);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(138, 27, 41, 0.3);
}

.btn-primary:hover {
  background: var(--uk-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(138, 27, 41, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Výsledná obrazovka (Outcome View)
   ========================================================================== */

.outcome-view {
  animation: fadeIn 0.4s ease;
}

.outcome-hero-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #1E293B 40%, #581C24 100%);
  color: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.outcome-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(138, 27, 41, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.outcome-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-primary { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #FCD34D; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger  { background: rgba(244, 63, 94, 0.25); color: #FDA4AF; border: 1px solid rgba(244, 63, 94, 0.4); }
.badge-info    { background: rgba(59, 130, 246, 0.2); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }

.outcome-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.outcome-legal-ref {
  font-size: 0.95rem;
  color: var(--slate-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.outcome-summary-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* UK Interné usmernenie */
.uk-guidance-box {
  background: var(--uk-red-subtle);
  border: 1px solid rgba(138, 27, 41, 0.2);
  border-left: 5px solid var(--uk-red);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.uk-guidance-header {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--uk-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uk-guidance-body {
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.5;
}

/* Checklist sekcia */
.checklist-section {
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.phase-group {
  margin-bottom: 1.75rem;
}

.phase-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 1rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.checklist-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-sm);
}

.check-circle {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.step-docs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

/* PDF Export Bar */
.action-banner {
  background: var(--slate-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.action-banner-text h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.action-banner-text p {
  font-size: 0.88rem;
  color: var(--slate-300);
}

.btn-download-pdf {
  background: var(--uk-red);
  color: var(--white);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(138, 27, 41, 0.4);
  transition: var(--transition);
}

.btn-download-pdf:hover {
  background: var(--uk-red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(138, 27, 41, 0.5);
}

/* Päta stránky */
.site-footer {
  margin-top: auto;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 2rem 1.5rem;
  color: var(--slate-500);
  font-size: 0.85rem;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Responzivita */
@media (max-width: 768px) {
  .wizard-body {
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .outcome-title {
    font-size: 1.5rem;
  }
  .action-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-download-pdf {
    justify-content: center;
  }
}
