/* PWA Mobile Styles */

/* Ensure HTML formatting tags render properly */
strong, b {
  font-weight: 700;
}

/* Safe area support for notched devices */
.safe-top {
  padding-top: env(safe-area-inset-top);
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.safe-area-inset {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Touch optimization */
button,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

/* Smooth scrolling */
html {
  -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="search"],
input[type="email"],
select,
textarea {
  font-size: 16px;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide scrollbars on horizontal scroll containers */
.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active state for touch */
.active\:bg-gray-50:active {
  background-color: rgb(249 250 251);
}

.active\:bg-gray-100:active {
  background-color: rgb(243 244 246);
}

.active\:bg-blue-700:active {
  background-color: rgb(29 78 216);
}

/* PWA install prompt */
@media (display-mode: standalone) {
  /* App is running as PWA */
  body {
    user-select: none;
  }

  /* Allow text selection in content areas */
  p, h1, h2, h3, h4, h5, h6 {
    user-select: text;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *
 * application.tailwind.css is the Tailwind CLI entry file, not a stylesheet:
 * bundling its raw source here shipped its css import line for the pwa
 * styles to every browser, which then requested the unfingerprinted
 * /assets/pwa.css on every page load. Tailwind inlines that file into
 * tailwind.css, so it is stubbed out of this bundle.



 */
[x-cloak] { display: none !important; }

/* Custom styles for button_to elements styled as links */
.button-link {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.button-link:hover {
  text-decoration: underline !important;
}
