/* Global Responsive & App-like Styles */
html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Tap targets */
button, a.button, .tmc-btn, .btn, .icon-btn {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Interaction feedback */
button:active, a:active, .tmc-btn:active, .btn:active {
  transform: scale(0.97);
  transition: transform 90ms ease-out;
}

/* Spacing between interactive elements */
.touch-gap > * {
  margin-right: 8px;
}
.touch-gap > *:last-child {
  margin-right: 0;
}

/* Typography scaling */
@media (min-width: 320px) {
  :root { font-size: 16px; }
}
@media (min-width: 768px) {
  :root { font-size: 17px; }
}
@media (min-width: 1024px) {
  :root { font-size: 18px; }
}

/* Smooth animations mimicking native apps */
.smooth-fade {
  animation: fadeIn 200ms ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image responsiveness helpers */
img.responsive {
  width: 100%;
  height: auto;
  display: block;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Breakpoints-specific layout refinements */
@media (max-width: 767.98px) {
  .container-responsive {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .container-responsive {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .container-responsive {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}
