/* beslisboom.css - Premium Full-Screen UI (High Contrast Light Mode) */
:root {
  --tf-bg: #f8fafc; /* slate-50 */
  --tf-card-bg: #ffffff;
  --tf-card-hover: #f1f5f9; /* slate-100 */
  --tf-border: #cbd5e1; /* slate-300 (high contrast border) */
  --tf-border-hover: var(--color-primary-600);
  --tf-text-main: #0f172a; /* slate-900 (almost black, very readable) */
  --tf-text-muted: #334155; /* slate-700 (dark gray, high contrast) */
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--tf-bg);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* Header */
.tf-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 100;
  background: transparent;
}

.tf-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  text-decoration: none;
  color: var(--tf-text-main);
  font-weight: 800;
  font-size: 1.1rem;
}

.tf-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.05);
}

.tf-progress-bar {
  height: 100%;
  background: var(--color-primary-500);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Viewport & Container */
.tf-viewport {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 80px 2rem 60px;
  overflow-y: auto;
}

.tf-container {
  width: 100%;
  max-width: 700px;
  position: relative;
  margin: auto; /* Centers when small, pushes to top when tall */
  flex-shrink: 0;
}

/* Sliding Views */
.bb-view {
  display: none;
  width: 100%;
}

.bb-view.active {
  display: block;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Typography */
.bb-question {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--tf-text-main);
  line-height: 1.25;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* Options */
.bb-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bb-option {
  width: 100%;
  text-align: left;
  background: var(--tf-card-bg);
  border: 2px solid var(--tf-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tf-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.bb-option:hover, .bb-option:focus {
  border-color: var(--tf-border-hover);
  background: var(--tf-card-hover);
  transform: translateX(4px);
  outline: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.bb-option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--tf-text-muted);
  border: 1px solid rgba(0,0,0,0.1);
}

.bb-option:hover .bb-option-key, .bb-option:focus .bb-option-key {
  background: var(--color-primary-500);
  color: white;
  border-color: transparent;
}

/* Footer Hint */
.tf-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tf-hint {
  font-size: 0.85rem;
  color: var(--tf-text-muted);
  font-weight: 500;
  opacity: 0.8;
}

.tf-hint strong {
  background: rgba(0,0,0,0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* Results View */
.bb-result {
  text-align: left;
}

.bb-result-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bb-result-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tf-text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.bb-result-message {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--tf-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.bb-result-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-accent-600);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1.25rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.bb-result-cta:hover {
  background: var(--color-accent-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3);
}

/* Back Button */
.bb-back-btn {
  background: none;
  border: none;
  color: var(--tf-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.bb-back-btn:hover {
  color: var(--tf-text-main);
}

/* --- Expert Mobile Optimizations --- */
@media (max-width: 768px) {
  /* Hide keyboard hints on touch devices */
  .tf-footer {
    display: none;
  }
  
  /* Reduce viewport padding since footer is gone */
  .tf-viewport {
    padding: 70px 1.5rem 30px;
  }

  /* Make options slightly compacter on small screens */
  .bb-option {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    gap: 1rem;
  }
  
  .bb-option-key {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  /* Compact the result screen slightly to prevent excessive scrolling */
  .bb-result-title {
    font-size: 1.8rem;
  }
  .bb-result-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  .bb-result-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
  }
  .bb-result-icon svg {
    width: 28px;
    height: 28px;
  }
}
