/* =============================================================================
   RESPONSIVE MODAL STYLES
   ============================================================================= */

@media screen and (max-width: 680px) {
  .base-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    transform: scale(0.95);
  }

  .base-modal-content.modal-open {
    transform: scale(1);
  }

  .modal-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .modal-footer .modal-button {
    margin-left: 0;
    width: 100%;
  }

  .save-slot-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .save-slot-actions {
    display: flex;
    width: 100%;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .save-action-button {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* =============================================================================
   VERY SMALL SCREENS - FULL SCREEN MODALS
   ============================================================================= */

@media screen and (max-width: 480px) {
  /* Full-screen modal takeover */
  .base-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    transform: none;
  }

  .base-modal-content,
  .base-modal-content.modal-open {
    transform: none;
  }

  /* Tighter modal header */
  .modal-header {
    margin-bottom: 1rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  /* Tighter modal footer */
  .modal-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }

  /* Settings-specific compacting */
  .settings-tabs {
    margin-bottom: 1rem;
  }

  .settings-tab {
    padding: 0.5rem 0.75rem;
  }

  .setting-item {
    margin-bottom: 0.75rem;
  }

  .setting-item:last-child {
    margin-bottom: 0.5rem;
  }

  .settings-section h3 {
    margin: 1rem 0 0.75rem 0;
    font-size: 1rem;
  }

  .settings-section:first-child h3 {
    margin-top: 0;
  }

  /* Saves modal compacting */
  .saves-section h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }

  .save-slot {
    padding: 0.75rem;
  }

  .save-slots-container {
    margin-bottom: 1rem;
  }

  .import-export-info {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}
