/* =============================================================================
   feitofabel.css — Feit of Fabel, responsive regels, mobiel slepen, verbindingsbanner.

   LET OP: de volgorde van de <link>-tags in index.html IS de cascade.
   Niet herschikken zonder die volgorde mee te wijzigen (zie AGENTS.md).
   ========================================================================== */
/* ── Feit of Fabel ── */
.feitofabel-question {
  text-align: center;
  padding: var(--space-lg) 0;
}

.feitofabel-statement {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.feitofabel-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.feitofabel-vote-btn {
  min-width: 120px;
}

.feitofabel-result {
  text-align: center;
  padding: var(--space-lg) 0;
}

.feitofabel-bar {
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.feitofabel-bar-fact {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.feitofabel-answer {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-top: var(--space-md);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .dashboard {
    padding: var(--space-md);
  }
  .dashboard-panel {
    padding: var(--space-lg);
  }
  .bike-section {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    margin-bottom: calc(-1 * var(--space-lg));
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  .login-panel {
    padding: var(--space-xl) var(--space-md);
  }
  .bell-time {
    font-size: 1.75rem;
  }
  .header-info {
    display: none;
  }
  .header-user {
    padding: 4px;
  }
}

/* ── Drag Handle on Mobile ── */
@media (max-width: 640px) {
  .panel-drag-handle {
    padding: 10px 14px;
    font-size: 1.5rem;
  }
}

/* ── Connection / Offline Banner ── */
.connection-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.connection-banner.connection-reconnecting {
  background: var(--warning);
  color: var(--text-inverse);
}

.connection-banner.connection-offline {
  background: var(--danger);
  color: var(--text-on-gradient);
}

.connection-banner-text {
  display: inline-block;
}

.connection-banner .retry-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 8px;
  font-weight: 700;
}

@keyframes bug-fill {
  0% { width: 0%; }
  100% { width: 90%; }
}
.bug-progress-fill {
  animation: bug-fill 2.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

/* ── Micro-interactions ── */
@keyframes celebrate-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.celebrate-pop {
  animation: celebrate-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bell-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.bell-time.bell-ringing {
  animation: bell-pulse 1.2s ease-in-out infinite;
}

@keyframes burst-out {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(1); opacity: 0; }
}
.burst-particle {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  pointer-events: none;
  z-index: var(--z-toast);
  animation: burst-out 0.6s ease-out forwards;
}

