/**
 * Mobile Responsive Styles - Additional mobile optimizations
 */

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 0.5rem 1rem;
  }

  nav .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav .flex {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  nav a, nav button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Admin Panel Tabs */
  .admin-tabs {
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tabs button {
    min-width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }

  /* Tables - Stack on mobile */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Cards */
  .bg-black\/20 {
    padding: 1rem;
  }

  /* Forms */
  input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Buttons */
  button {
    min-height: 44px; /* Touch target size */
    min-width: 44px;
  }

  /* Modals/Dialogs */
  .modal {
    padding: 1rem;
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }

  /* Toast notifications */
  .toast {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  /* Transaction lists */
  .transaction-item {
    padding: 0.75rem;
  }

  /* Wallet connection */
  .wallet-connect {
    flex-direction: column;
    width: 100%;
  }

  .wallet-connect button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects on touch devices */
  button:hover {
    transform: none;
  }

  /* Better focus indicators */
  button:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }
}

/* Landscape mobile */
@media (max-width: 1024px) and (orientation: landscape) {
  .admin-tabs {
    flex-wrap: nowrap;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .text-3xl {
    font-size: 1.5rem;
  }

  .text-2xl {
    font-size: 1.25rem;
  }

  .text-xl {
    font-size: 1.125rem;
  }

  button, a {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}
