/* =========================================
   APP CALCULATOR – Premium dark theme
   ========================================= */

/* Buitenste sectie in de app */
.df-app-calculator {
  padding-block: 2.6rem 3.2rem;
}

/* Buitenste card - premium dark look met glow */
.df-app-calculator .df-app-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.2rem 2.4rem 2.6rem;
  border-radius: 1.8rem;
  background: radial-gradient(circle at top, #020617, #020617 45%, #050b1f 100%);
  border: 1px solid rgba(234, 179, 8, 0.15);
  box-shadow: 
    0 0 60px rgba(234, 179, 8, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
}

/* Subtle top glow accent */
.df-app-calculator .df-app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.5), transparent);
}

/* Binnenste wrapper */
.db-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--df-text, #e5e7eb);
  font-size: 0.95rem;
}

/* -----------------------------------------
   INVOER + KNOPPEN
   ----------------------------------------- */

.db-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--df-text-muted, #9ca3af);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 600px;
}

/* Input group with +/- buttons */
.db-input-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(2, 6, 23, 0.9);
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  transition: all 0.2s ease-out;
}

.db-input-group:focus-within {
  border-color: var(--df-accent, #eab308);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2), 0 0 20px rgba(234, 179, 8, 0.15);
}

.db-adjust-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease-out;
  user-select: none;
}

.db-adjust-btn:hover {
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.1);
}

.db-adjust-btn:active {
  transform: scale(0.95);
}

.db-adjust-btn:first-child {
  border-radius: 999px 0 0 999px;
  padding-left: 4px;
}

.db-adjust-btn:last-child {
  border-radius: 0 999px 999px 0;
  padding-right: 4px;
}

.db-input {
  width: 80px;
  padding: 0.5rem 0.2rem;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #f9fafb;
  font-size: 1.2rem;
  font-weight: 600;
  outline: none;
  text-align: center;
}

.db-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
  font-weight: 400;
  font-size: 0.9rem;
}

/* Hide number input spinners */
.db-input::-webkit-outer-spin-button,
.db-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.db-input[type=number] {
  -moz-appearance: textfield;
}

/* Rij met score + knoppen */
.db-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

/* Basis-knop - premium gold */
.db-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #020617;
  transition: all 0.15s ease-out;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.db-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.15);
}

.db-button:active {
  transform: translateY(0);
}

/* Secundaire knoppen */
.db-button-secondary {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.db-button-secondary:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* Tip onder de knoppen */
.tip-note {
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--df-text-muted, #9ca3af);
}

/* -----------------------------------------
   SUGGEST SECTION (onderaan)
   ----------------------------------------- */

.suggest-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.suggest-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--df-text-muted, #9ca3af);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s ease-out;
}

.suggest-toggle:hover {
  color: #fbbf24;
}

.suggest-box {
  margin-top: 1rem;
  padding: 1.2rem 1.3rem 1.3rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  animation: fadeSlideIn 0.2s ease-out;
}

.suggest-intro {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  color: var(--df-text-muted, #9ca3af);
  line-height: 1.5;
}

.suggest-email-row {
  margin-bottom: 0.6rem;
}

.suggest-email-input,
.suggest-textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.8);
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  transition: all 0.15s ease-out;
}

.suggest-email-input:focus,
.suggest-textarea:focus {
  border-color: var(--df-accent, #eab308);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.15);
}

.suggest-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

.suggest-submit {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}

.suggest-status {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--df-text-muted, #9ca3af);
}

/* -----------------------------------------
   ROUTE-CARDS
   ----------------------------------------- */

.routes-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.route-box {
  background: radial-gradient(circle at top left, #020617, #020617 55%, #050b1f 100%);
  border-radius: 1.4rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  position: relative;
  overflow: hidden;
}

/* Subtle glow on route boxes */
.route-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.3), transparent);
}

.route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.route-title {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--df-accent, #eab308);
  font-weight: 600;
}

/* Difficulty indicator */
.route-difficulty {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
}

.route-difficulty .star {
  color: rgba(148, 163, 184, 0.3);
  transition: color 0.2s ease-out;
}

.route-difficulty .star.filled {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* -----------------------------------------
   TIP BLOCK (direct zichtbaar)
   ----------------------------------------- */

.tip-block {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(30, 41, 59, 0.6);
  border-left: 3px solid rgba(234, 179, 8, 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
}

.tip-block p {
  margin: 0;
}

.tip-block p + p {
  margin-top: 0.5rem;
}

.tip-label {
  color: #fbbf24;
  font-weight: 600;
  margin-right: 0.3rem;
}

.tip-why {
  color: #e5e7eb;
}

.tip-tip {
  color: var(--df-text-muted, #9ca3af);
}

.route-card {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Main route styling */
.route-main {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

/* -----------------------------------------
   PLAN B - USP HIGHLIGHT (Golden fallback)
   ----------------------------------------- */

.fallback-block {
  margin-top: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(234, 179, 8, 0.4);
  position: relative;
  overflow: hidden;
}

/* Animated golden glow for Plan B */
.fallback-block::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(234, 179, 8, 0.15), transparent 50%);
  animation: fallbackGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fallbackGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.fallback-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fbbf24;
  margin-bottom: 0.6rem;
  position: relative;
}

.fallback-label::before {
  content: "★";
  font-size: 0.9rem;
  animation: starPulse 1.5s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.fallback-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #fef3c7;
  position: relative;
}


/* -----------------------------------------
   DID YOU HIT IT? FEEDBACK
   ----------------------------------------- */

.hit-feedback {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hit-feedback-label {
  display: block;
  font-size: 0.85rem;
  color: var(--df-text-muted, #9ca3af);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hit-feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease-out;
}

.hit-btn-icon {
  font-size: 1.1rem;
}

.hit-btn-yes {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.hit-btn-yes:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
}

.hit-btn-no {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.hit-btn-no:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

.hit-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Stats display */
.hit-stats {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.85rem;
  color: var(--df-text-muted, #9ca3af);
}

.hit-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.hit-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hit-stat-value {
  font-weight: 700;
  font-size: 1rem;
}

.hit-stat-value.success {
  color: #4ade80;
}

.hit-stat-value.total {
  color: #e5e7eb;
}

.hit-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-weight: 600;
  animation: streakPulse 2s ease-in-out infinite;
}

@keyframes streakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.2); }
}

/* -----------------------------------------
   TAGLINE + SHARE + SEO
   ----------------------------------------- */

.tagline {
  margin: 2rem 0 1rem;
  font-size: 0.9rem;
  color: var(--df-text-muted, #9ca3af);
}

/* Share icons */
.share-icons {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.share-icons h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--df-text-muted, #9ca3af);
}

.share-row {
  display: flex;
  gap: 0.6rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #9ca3af;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s ease-out;
}

.share-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #facc15, #f59e0b);
  border-color: transparent;
  color: #020617;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.35);
}

/* SEO tekst onderaan in de card */
.seo-text {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.88rem;
  color: var(--df-text-muted, #9ca3af);
}

.seo-text h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

.seo-text p {
  margin: 0 0 0.8rem;
  line-height: 1.65;
}

/* -----------------------------------------
   RESPONSIVE
   ----------------------------------------- */

@media (max-width: 900px) {
  .df-app-calculator .df-app-card {
    padding: 1.6rem 1.3rem 2rem;
    border-radius: 1.4rem;
  }

  .routes-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .route-box {
    padding: 1.1rem 1.2rem;
  }

  .route-main {
    font-size: 1.15rem;
  }

  .fallback-block {
    padding: 0.9rem 1rem;
  }

  .db-input-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .db-input {
    width: 90px;
    padding: 0.55rem 0.7rem;
    font-size: 1rem;
  }

  .db-button {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .quick-scores-row {
    gap: 0.4rem;
  }

  .quick-btn {
    min-width: 42px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .df-app-calculator .df-app-card {
    padding: 1.4rem 1rem 1.6rem;
  }

  .db-label {
    font-size: 0.88rem;
  }

  .db-input-row {
    flex-wrap: wrap;
  }

  .db-input-group {
    flex: 0 0 auto;
  }

  .db-adjust-btn {
    width: 32px;
    height: 32px;
  }

  .db-input {
    width: 60px;
    font-size: 1rem;
  }

  .route-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .hit-feedback {
    padding: 1rem;
  }

  .hit-feedback-buttons {
    gap: 0.6rem;
  }

  .hit-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .hit-stats-row {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}
