/* ==========================================================================
   VOCE.RUN - Orange Dominant High-Contrast Theme
   ========================================================================== */

:root {
  --tf-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Strava Orange Dominant Palette */
  --tf-strava-orange: #FC5200;
  --tf-strava-orange-hover: #e04800;
  --tf-strava-black: #121214;
  --tf-strava-dark-card: #18181b;
  
  --tf-bg-gradient: linear-gradient(135deg, #121214 0%, #1c1917 100%);
  --tf-bg-card: #FC5200;
  --tf-card-border: #121214;
  --tf-card-shadow: 8px 8px 0px #121214;
  
  --tf-text-primary: #ffffff;
  --tf-text-secondary: #ffffff;
  
  /* Buttons */
  --tf-btn-primary-bg: #121214;
  --tf-btn-primary-text: #ffffff;
  --tf-btn-primary-border: #121214;
  --tf-btn-primary-shadow: 4px 4px 0px #ffffff;
  
  --tf-btn-secondary-bg: #ffffff;
  --tf-btn-secondary-text: #121214;
  --tf-btn-secondary-border: #121214;
  --tf-btn-secondary-shadow: 4px 4px 0px #121214;
  
  --tf-btn-accent-bg: #121214;
  --tf-btn-accent-text: #ffffff;
  --tf-btn-accent-border: #121214;
  --tf-btn-accent-shadow: 4px 4px 0px #ffffff;
  
  /* Inputs */
  --tf-input-bg: #ffffff;
  --tf-input-text: #121214;
  --tf-input-border: #121214;
  
  /* Dynamic Result Items */
  --tf-result-bg: #121214;
  --tf-result-border: #121214;
  --tf-result-text: #ffffff;
  --tf-result-accent: #FC5200;
  --tf-result-shadow: 4px 4px 0px #ffffff;
  
  /* Warning & Help */
  --tf-warning-bg: #121214;
  --tf-warning-border: #ffffff;
  --tf-warning-text: #ffffff;
  
  --tf-help-bg: #FC5200;
  --tf-help-border: #121214;
  --tf-help-text: #ffffff;
  --tf-help-shadow: 4px 4px 0px #121214;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: var(--tf-font);
  background: var(--tf-bg-gradient);
  color: var(--tf-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tf-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2.5rem 1rem;
}

/* Main Container */
.tf-app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem; /* Generously spread out outer blocks */
}

/* Main Card */
.tf-card {
  background: var(--tf-bg-card);
  border: 4px solid var(--tf-card-border);
  border-radius: 24px;
  padding: 2.5rem 1.75rem;
  box-shadow: var(--tf-card-shadow);
}

.tf-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.25rem; /* Spread out from subtitle */
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tf-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem; /* Spread out from buttons stack */
  opacity: 0.95;
}

/* Buttons & Stack */
.tf-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Doubled spacing between buttons */
}

.tf-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-family: var(--tf-font);
  text-decoration: none;
  border: 3px solid var(--tf-strava-black);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
  outline: none;
  user-select: none;
}

.tf-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.tf-btn-primary {
  background-color: var(--tf-btn-primary-bg);
  color: var(--tf-btn-primary-text);
  box-shadow: var(--tf-btn-primary-shadow);
}

.tf-btn-secondary {
  background-color: var(--tf-btn-secondary-bg);
  color: var(--tf-btn-secondary-text);
  box-shadow: var(--tf-btn-secondary-shadow);
}

.tf-btn-accent {
  background-color: var(--tf-btn-accent-bg);
  color: var(--tf-btn-accent-text);
  box-shadow: var(--tf-btn-accent-shadow);
  font-weight: 800;
  font-size: 1.15rem;
  justify-content: center;
}

.tf-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.tf-btn:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px var(--tf-strava-black);
}

.tf-btn-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-btn-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  margin: 0 0.85rem;
}

.tf-btn-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.tf-btn-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.tf-btn-arrow {
  flex-shrink: 0;
  color: var(--tf-strava-orange);
}

.tf-btn-secondary .tf-btn-arrow {
  color: var(--tf-strava-orange);
}

/* Date Picker & Inputs */
.tf-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 2rem; /* Spread out from inputs */
  text-align: center;
  color: #ffffff;
}

.tf-input-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem; /* Spread out from turnstile widget */
}

.tf-input-label {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.tf-input {
  width: 100%;
  height: 56px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background-color: var(--tf-input-bg);
  color: var(--tf-input-text);
  border: 3px solid var(--tf-input-border);
  font-family: var(--tf-font);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.tf-input:focus {
  border-color: var(--tf-strava-black);
  box-shadow: 0 0 0 3px rgba(18, 18, 20, 0.3);
}

.tf-turnstile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.tf-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem; /* Spread out actions from widgets */
}

.tf-btn-link {
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--tf-font);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}

.tf-btn-link:hover {
  opacity: 0.85;
}

/* Dynamic Results Items */
.tf-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Increased spacing between result items */
  margin-bottom: 2rem;
}

.tf-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background-color: var(--tf-result-bg);
  border: 3px solid var(--tf-result-border);
  border-radius: 14px;
  color: var(--tf-result-text);
  text-decoration: none;
  box-shadow: var(--tf-result-shadow);
  transition: transform 0.15s ease;
}

.tf-result-item:hover {
  transform: translateY(-2px);
}

.tf-result-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.2rem;
}

.tf-result-date {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-strava-orange);
}

.tf-result-desc {
  font-size: 1.1rem;
  font-weight: 800;
}

.tf-result-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--tf-strava-orange);
  flex-shrink: 0;
}

/* Countdown Timer & Footer */
.tf-timer-display {
  font-size: 3.25rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin: 1.5rem 0 3.5rem 0;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tf-countdown-footer {
  display: flex;
  justify-content: center;
  margin-top: 4rem; /* Doubled space */
}

.tf-countdown-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background-color: var(--tf-bg-card);
  border: 3px solid #121214;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0px #121214;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.tf-countdown-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.tf-countdown-link .tf-btn-arrow {
  color: #ffffff;
}

/* Footer & Warnings */
.tf-footer {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* Quadrupled gap */
  margin-top: auto;
}

.tf-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  background-color: var(--tf-warning-bg);
  border: 3px solid var(--tf-warning-border);
  border-radius: 14px;
  color: var(--tf-warning-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-wrap;
}

.tf-warning-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--tf-strava-orange);
}

.tf-help-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem; /* Quadrupled distance to help container */
}

.tf-help-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  background-color: var(--tf-help-bg);
  border: 3px solid var(--tf-help-border);
  border-radius: 9999px;
  color: var(--tf-help-text);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--tf-help-shadow);
  transition: transform 0.15s ease;
}

.tf-help-link:hover {
  transform: translateY(-2px);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--tf-font);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 4px 4px 0px #121214;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1000;
  text-align: center;
  max-width: 90vw;
  border: 3px solid #121214;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background-color: #15803d;
}

.toast-error {
  background-color: #121214;
  color: var(--tf-strava-orange);
}



