/* Mobile-specific fixes for Creator Doug website */

/* Base mobile adjustments */
@media (max-width: 768px) {
  /* Fix viewport height issues on mobile */
  .mobile-hero {
    height: 100vh !important;
    margin-top: 0 !important;
    width: 100vw !important;
    position: relative !important;
  }

  /* iOS Safari specific height fix */
  @supports (-webkit-touch-callout: none) {
    .mobile-hero {
      height: -webkit-fill-available !important;
    }
  }

  /* Mobile text positioning */
  .mobile-hero-text {
    padding: 0 16px !important;
    text-align: center !important;
  }

  .mobile-hero-text h1 {
    font-size: 42px !important;
    line-height: 1.2 !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  /* Mobile form container */
  .mobile-form-container {
    padding: 0 16px;
    margin-top: 24px;
  }

  /* General mobile button improvements */
  button {
    border-radius: 0.125rem !important; /* Ensure rounded corners on all mobile buttons */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  }

  /* Mobile input improvements */
  input[type="text"] {
    border-radius: 0.125rem !important; /* Ensure rounded corners on mobile inputs */
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-form-container input,
  .mobile-form-container button {
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  /* Mobile yellow highlight box */
  .mobile-form-container span {
    display: block;
    padding: 8px 12px !important;
    margin-bottom: 16px !important;
    text-align: left !important;
  }

  /* Mobile scroll button */
  .mobile-scroll-button {
    /* margin removed to eliminate extra padding */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* More specific rule to override any other CSS */
  div.mobile-scroll-button {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Target the button element directly */
  .mobile-scroll-button button {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Target any parent containers that might be adding spacing */
  .mobile-scroll-button,
  .mobile-scroll-button * {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ensure scroll button is circular on mobile */
  .mobile-scroll-button button {
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
  }

  /* Additional scroll button styling to ensure circular shape */
  button[onclick*="scrollIntoView"] {
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
  }

  /* Mobile body padding */
  body {
    padding-top: 0 !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .mobile-hero-text h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }

  .mobile-form-container {
    padding: 0 12px;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .mobile-hero {
    height: 100vh !important;
    min-height: -webkit-fill-available !important;
  }

  /* Fix iOS Safari input styling */
  input[type="text"] {
    -webkit-appearance: none;
  }

  /* Fix iOS Safari button styling */
  button {
    -webkit-appearance: none;
  }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .mobile-hero {
    height: 100vh !important;
  }
}

/* Navbar mobile improvements */
@media (max-width: 768px) {
  /* Ensure navbar has proper margins on mobile to match other pages */
  #navbar-container nav {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Improve mobile navbar spacing */
  #navbar-container .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Better mobile navbar height */
  #navbar-container nav {
    height: 48px !important;
  }

  /* Improve mobile logo size */
  #logo {
    font-size: 1.125rem !important; /* text-lg */
  }
}

/* Ensure consistent navbar width across all pages */
@media (min-width: 768px) {
  #navbar-container nav {
    width: 75% !important;
  }
}

@media (max-width: 767px) {
  #navbar-container nav {
    width: 90% !important;
  }
}
