/*
 * 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.
 *
 *= require_tree .
 *= require_self
 */

/* Import Bootstrap via CDN for Rails 8 */
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css");

/* Import responsive base styles FIRST */
@import "responsive_base";

/* Global responsive utilities */
.container-responsive {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .container-responsive {
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .container-responsive {
    padding: 0 0.25rem;
  }
}

/* Responsive text utilities */
.text-responsive {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .text-responsive {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .text-responsive {
    font-size: 0.85rem;
  }
}

/* Hide/show elements based on screen size */
.hide-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-mobile {
    display: block;
  }
}

/* Responsive spacing utilities */
.spacing-responsive {
  margin: 1rem;
  padding: 1rem;
}

@media (max-width: 768px) {
  .spacing-responsive {
    margin: 0.75rem;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .spacing-responsive {
    margin: 0.5rem;
    padding: 0.5rem;
  }
}
