/*
 Theme Name:  TwistyMoto Child
 Description: Child theme voor TwistyMoto (neon/antraciet) op basis van Extendable
 Version:     1.0.1
 License:     GPL-2.0+
 Text Domain: twistymoto-child
 Template:    extendable
*/

/* ===========================================================
   404 Pagina – TwistyMoto stijl
   =========================================================== */

.tm-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: var(--tm-surface-alt);
  color: var(--tm-text-bright);
}

.tm-404__wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.tm-404__content {
  text-align: center;
}

.tm-404__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--tm-text-muted);
  margin-bottom: 0.75rem;
}

.tm-404__title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin: 0 0 1rem;
  color: var(--tm-text-bright);
}

.tm-404__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tm-text-muted-4);
  margin-bottom: 2rem;
}

.tm-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tm-404__hint {
  font-size: 0.9rem;
  color: var(--tm-text-muted);
}

/* ===========================================================
   TwistyMoto – Knoppen (basis)
   =========================================================== */

.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

/* ===========================================================
   PRIMARY Button – TwistyMoto neon (var(--tm-accent))
   =========================================================== */

.tm-btn-primary,
.tm-btn-primary:link,
.tm-btn-primary:visited {
  background-color: var(--tm-accent) !important;   /* neon */
  color: var(--tm-surface-alt) !important;              /* bijna-zwart */
  border-color: var(--tm-accent-soft) !important;       /* donkerdere neonrand */
  box-shadow: 0 0 18px rgba(var(--tm-accent-rgb) / 0.55) !important;
  text-decoration: none !important;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  background-color: var(--tm-accent-soft) !important;
  color: var(--tm-surface-alt) !important;
  border-color: var(--tm-accent-soft) !important;
  text-decoration: none !important;
  box-shadow: 0 0 24px rgba(var(--tm-accent-rgb) / 0.80) !important;
  transform: translateY(-1px);
}

/* Kleine variant (login button in header) */
.tm-btn-primary.tm-btn-small {
  padding: 0.4rem 0.9rem !important;
  font-size: 0.85rem !important;
}

/* Active klik-feedback */
.tm-btn-primary:active {
  transform: scale(0.97);
}

/* ===========================================================
   SECONDARY Button – TwistyMoto stijl
   =========================================================== */

.tm-btn-secondary,
.tm-btn-secondary:link,
.tm-btn-secondary:visited {
  background-color: transparent;
  color: var(--tm-text);
  border-color: var(--tm-border-muted);
  text-decoration: none;
}

.tm-btn-secondary:hover,
.tm-btn-secondary:focus {
  background-color: var(--tm-bg-dark);
  color: var(--tm-text-bright);
  border-color: var(--tm-text-muted);
  transform: translateY(-1px);
}

/* Kleine variant */
.tm-btn-secondary.tm-btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* ===========================================================
   404 Primary Button fix op mobiel
   =========================================================== */

.error404 .tm-btn-primary {
  background-color: var(--tm-accent) !important;
  color: var(--tm-surface-alt) !important;
  border-color: var(--tm-accent-soft) !important;
}

@media (max-width: 768px) {
  .error404 .tm-btn-primary {
    background-color: var(--tm-accent) !important;
    color: var(--tm-surface-alt) !important;
    border-color: var(--tm-accent-soft) !important;
  }
}

/* ===========================================================
   Header login-knop fix op mobiel
   =========================================================== */

@media (max-width: 768px) {
  .tm-site-header .tm-btn.tm-btn-primary.tm-btn-small {
    background-color: var(--tm-accent) !important;
    color: var(--tm-surface-alt) !important;
    border-color: var(--tm-accent-soft) !important;
  }
}

/* ===========================================================
   Reisverhalen pagina
   =========================================================== */

.tm-page-reisverhalen {
  padding: 4rem 1.5rem;
  background: var(--tm-surface-alt);
  color: var(--tm-text-bright);
}

.tm-reisverhalen__subtitel {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.tm-reisverhalen__uitleg {
  color: var(--tm-text-muted-4);
  max-width: 640px;
}

.tm-reisverhalen__cta {
  margin-top: 2.5rem;
}

/* ===========================================================
   Gymkhana pagina
   =========================================================== */

.tm-page-gymkhana {
  padding: 4rem 1.5rem;
  background: var(--tm-surface-alt);
  color: var(--tm-text-bright);
}

.tm-gymkhana__subtitel {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.tm-gymkhana__uitleg {
  max-width: 640px;
  color: var(--tm-text-muted-4);
}

.tm-gymkhana__cta {
  margin-top: 2.5rem;
}

/* ===========================================================
   Route bewerken formulier
   =========================================================== */

.tm-route-bewerken__form {
  max-width: 720px;
  margin-top: 2rem;
}

.tm-form__field {
  margin-bottom: 1.5rem;
  text-align: left;
}

.tm-form__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tm-form__field input[type="text"],
.tm-form__field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--tm-border-strong);
  background: var(--tm-surface-4);
  color: var(--tm-text-bright);
}

.tm-route-bewerken__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tm-notice--status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--tm-notice-success-bg);
  color: var(--tm-notice-success-text);
  border: 1px solid var(--tm-notice-success-border);
}

/* Thumbnails voor huidige afbeeldingen */
.tm-form__thumb {
  margin-bottom: 0.5rem;
}

.tm-form__thumb img {
  display: block;
  max-width: 250px;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--tm-border-strong);
}

/* ===========================================================
   YouTube video embed op de routepagina
   =========================================================== */

.route-video {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.route-video-inner {
  max-width: 480px;
  width: 100%;
  padding: 0 1rem;
}

.route-video-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.route-video-iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================================================
   Loginpagina
   =========================================================== */

.tm-login {
  max-width: 420px;
  margin: 3rem auto;
  padding: 2rem 1.75rem;
  background: var(--tm-surface-4);
  border-radius: 1rem;
  border: 1px solid var(--tm-border-panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.tm-login__title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.tm-login__form .tm-form__field {
  margin-bottom: 1.25rem;
}

.tm-login__form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tm-login__form input[type="text"],
.tm-login__form input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--tm-border-strong);
  background: var(--tm-surface-5);
  color: var(--tm-text-bright);
}

.tm-form__field--remember label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}

.tm-login__actions {
  margin-top: 1.25rem;
}

.tm-login__links {
  margin-top: 1.5rem;
  text-align: right;
}

.tm-notice--error {
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--tm-notice-error-bg);
  color: var(--tm-notice-error-text);
  border: 1px solid var(--tm-notice-error-border);
}
