/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* User Navigation */
.user-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
}

.user-nav span {
  color: #666;
}

.user-nav button {
  padding: 0.5rem 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.user-nav button:hover {
  background: #555;
}

/* Basketball Learning Styles */
.basketball-learning {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.learning-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.learning-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.learning-subtitle {
  color: #666;
  font-size: 1rem;
}

.learning-toc {
  background: #f9f9f9;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.learning-toc h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.learning-toc ol {
  padding-left: 1.5rem;
}

.learning-toc li {
  margin-bottom: 0.5rem;
}

.learning-toc ul {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}

.learning-toc a {
  color: #0066cc;
  text-decoration: none;
}

.learning-toc a:hover {
  text-decoration: underline;
}

.learning-module {
  margin-bottom: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.learning-module h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.module-description {
  color: #666;
  margin-bottom: 1.5rem;
}

.learning-topic {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 4px;
}

.learning-topic h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.topic-resources {
  margin-bottom: 1.5rem;
}

.topic-resources h4 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.topic-resources ul {
  list-style: none;
  padding: 0;
}

.topic-resources li {
  margin-bottom: 1rem;
  padding-left: 0;
}

.topic-resources a {
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
}

.topic-resources a:hover {
  text-decoration: underline;
}

.resource-description {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.topic-notes {
  margin-top: 1rem;
}

.topic-notes h4 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.topic-notes p {
  margin-bottom: 1rem;
}

.topic-notes strong {
  color: #222;
}

.back-to-top {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.back-to-top a {
  color: #666;
}

.learning-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.learning-footer a {
  color: #0066cc;
}

/* ==========================================================================
   Shared Pagination - Fizzy pattern
   ========================================================================== */

.pagination-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.pagination-link[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Fizzy class name - used by automatic pagination */
.pagination-link--active-when-observed {
  height: 0;
  width: 0;
  overflow: hidden;
  visibility: hidden;
}

/* Legacy class name - kept for backwards compatibility */
.pagination-link--auto {
  height: 0;
  width: 0;
  overflow: hidden;
  visibility: hidden;
}
