/**
 * Styles for the clubs list page.
 */

.clubs-list-page {
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.clubs-header {
  margin-bottom: 30px;
  text-align: left;
}

.clubs-title {
  font-size: 2.5rem;
  color: #1a365d;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.clubs-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 30px;
  line-height: 1.5;
}

.search-container {
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  font-size: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.search-input:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-icon {
  position: absolute;
  right: 15px;
  color: #a0aec0;
  font-size: 18px;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 45px;
  background: none;
  border: none;
  font-size: 18px;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-clear:hover {
  color: #4a5568;
  background-color: #f7fafc;
}

.search-clear.show {
  display: flex;
}

.results-info {
  text-align: center;
  margin-bottom: 20px;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: #4a5568;
  font-size: 18px;
}

.loading-dots::after {
  content: '';
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

.error {
  text-align: center;
  padding: 40px 20px;
  color: #e53e3e;
  font-size: 16px;
  background-color: #fed7d7;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #feb2b2;
}

/* Table styling removed - now handled by gridjs-shared.css */

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: #4a5568;
  font-size: 18px;
}

.no-results-icon {
  font-size: 48px;
  color: #a0aec0;
  margin-bottom: 16px;
  display: block;
}

.no-results-text {
  margin-bottom: 8px;
  font-weight: 500;
}

.no-results-hint {
  font-size: 14px;
  color: #718096;
}

/* Responsive design */
@media (max-width: 768px) {
  .clubs-list-page {
  }
  
  .clubs-title {
    font-size: 2rem;
  }
  
  .clubs-subtitle {
    font-size: 1rem;
  }
  
  .search-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Table styling removed - handled by gridjs-shared.css */
}

@media (max-width: 480px) {
  .clubs-title {
    font-size: 1.75rem;
  }
  
  .search-container {
    margin-bottom: 20px;
  }
  
  /* Table styling removed - handled by gridjs-shared.css */
}

/* Pagination Styles */
.pagination-container {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}

.pagination-info {
  text-align: center;
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 14px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #4a5568;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-page {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #4a5568;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  min-width: 40px;
  transition: all 0.2s ease;
}

.pagination-page:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.pagination-page.active {
  background: #3182ce;
  color: white;
  border-color: #3182ce;
}

.pagination-ellipsis {
  padding: 8px 4px;
  color: #a0aec0;
  font-size: 14px;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .pagination-pages {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ALL Grid.js styling removed - now handled by gridjs-shared.css */

/* Loading message styling */
#clubs-grid-loading {
  text-align: center;
  padding: 60px 20px;
  color: #4a5568;
  font-size: 18px;
}

/* Directory list map (Leaflet) */
.directory-map-section .directory-map {
  width: 100%;
  background: #e8e8e8;
}
.directory-map-section .leaflet-popup-content a {
  font-weight: 600;
}
.directory-map-reset.leaflet-bar {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  cursor: pointer;
}
.directory-map-reset.leaflet-bar:hover {
  background: #f4f4f4;
}