/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Base rem size — bumped up for readability (default browser is 16px) */
  font-size: 18px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ff-white);
  background: var(--ff-bg-gradient);
  -webkit-font-smoothing: antialiased;
}

/* Scrollable content areas */
.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--ff-button-gradient);
  color: var(--ff-blue-dark);
  box-shadow: var(--gold-glow);
}

.btn-primary:hover {
  background: var(--ff-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 197, 24, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--ff-white);
  border: 2px solid var(--ff-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--ff-red-gradient);
  color: var(--ff-white);
  box-shadow: var(--red-glow);
}

.btn-danger:hover {
  box-shadow: 0 0 30px rgba(204, 34, 34, 0.7);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Inputs */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ff-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input:focus {
  border-color: var(--ff-yellow);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.2);
}

.input::placeholder {
  color: var(--ff-gray);
}

/* Cards / panels */
.card {
  background: rgba(18, 34, 68, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

/* Utility */
.text-center { text-align: center; }
.text-yellow { color: var(--ff-yellow); }
.text-gold { color: var(--ff-gold); }
.text-red { color: var(--ff-red); }
.text-green { color: var(--ff-green); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.items-center { align-items: center; }
.justify-center { justify-content: center; }

.hidden { display: none !important; }

/* Toast / error messages */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  z-index: 1000;
  animation: toastSlideUp 0.3s ease;
}

.toast-error {
  background: var(--ff-red);
  color: var(--ff-white);
}

.toast-success {
  background: var(--ff-green);
  color: var(--ff-blue-dark);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Logo / title styling */
.ff-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--ff-yellow);
  text-shadow:
    0 0 10px rgba(245, 197, 24, 0.6),
    0 0 30px rgba(245, 197, 24, 0.3),
    2px 2px 0 var(--ff-gold);
  line-height: 1;
}

.ff-logo-sub {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ff-white);
  letter-spacing: 0.3em;
  opacity: 0.9;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 197, 24, 0.4),
    transparent
  );
  margin: 24px 0;
}

/* Label */
.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ff-gray);
  margin-bottom: 6px;
}

/* Radio / toggle buttons */
.toggle-group {
  display: flex;
  gap: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-option {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ff-gray);
  border: none;
  transition: all var(--transition-fast);
}

.toggle-option.active {
  background: var(--ff-yellow);
  color: var(--ff-blue-dark);
}

.toggle-option:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ff-white);
}
