/* Active Users Page Styles */

/* Teams Dropdown Styles */
.teams-dropdown {
  animation: slideDown 0.3s ease-out;
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.teams-dropdown.hidden {
  display: none !important;
}

/* Toggle Button Animation */
.toggle-teams-btn svg {
  transition: transform 0.2s ease;
}

.toggle-teams-btn:hover {
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
  padding: 2px;
}

/* Table Row Hover Effects */
.hover\:bg-gray-700:hover {
  background-color: rgba(55, 65, 81, 0.8);
}

/* User Avatar Styles */
.user-avatar {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* Role Badge Styles */
.role-badge-admin {
  background-color: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-badge-user {
  background-color: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Team Item Styles */
.team-item {
  padding: 8px 12px;
  border-radius: 6px;
  background-color: rgba(55, 65, 81, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.2);
  transition: all 0.2s ease;
}

.team-item:hover {
  background-color: rgba(55, 65, 81, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Summary Cards */
.summary-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(75, 85, 99, 0.2);
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Refresh Button */
#refresh-active-users {
  transition: all 0.2s ease;
}

#refresh-active-users:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Loading States */
.loading-indicator {
  background: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(4px);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(4px);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade in animation to table rows */
tbody tr {
  animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for multiple rows */
tbody tr:nth-child(1) { animation-delay: 0.1s; }
tbody tr:nth-child(2) { animation-delay: 0.2s; }
tbody tr:nth-child(3) { animation-delay: 0.3s; }
tbody tr:nth-child(4) { animation-delay: 0.4s; }
tbody tr:nth-child(5) { animation-delay: 0.5s; }

/* Empty State Styles */
.empty-state {
  background: rgba(31, 41, 55, 0.5);
  border: 2px dashed rgba(75, 85, 99, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .teams-dropdown {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
  
  .summary-card {
    padding: 1rem;
  }
  
  table {
    font-size: 0.875rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  /* Stack table cells vertically on mobile */
  .mobile-stack {
    display: block;
  }
  
  .mobile-stack td {
    display: block;
    text-align: left;
    border: none;
    padding: 0.5rem 1rem;
  }
  
  .mobile-stack td:first-child {
    padding-top: 1rem;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
  }
  
  .mobile-stack td:last-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .teams-dropdown {
    border-color: #ffffff;
    background-color: #000000;
  }
  
  .team-item {
    border-color: #ffffff;
    background-color: #000000;
  }
  
  .role-badge-admin,
  .role-badge-user {
    border-color: #ffffff;
    background-color: #000000;
  }
}

/* Print Styles */
@media print {
  .teams-dropdown {
    display: block !important;
    border: 1px solid #000;
    background: #fff;
    color: #000;
  }
  
  .toggle-teams-btn {
    display: none;
  }
  
  .summary-card {
    border: 1px solid #000;
    background: #fff;
    color: #000;
    break-inside: avoid;
  }
  
  #refresh-active-users {
    display: none;
  }
}
/* Admin Dashboard Styles */

/* Dashboard Layout */
.admin-dashboard-metrics {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Styling */
.metric-section {
  background: rgba(31, 41, 55, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

/* Metric Cards Grid */
.metric-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* Individual Metric Cards */
.metric-card {
  background: rgba(17, 24, 39, 0.8);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid rgba(75, 85, 99, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover::before {
  opacity: 1;
}

/* Metric Card Header */
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.metric-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon {
  font-size: 1.25rem;
  opacity: 0.7;
}

/* Metric Values */
.metric-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.metric-value.small-text {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

.metric-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Color Coding for Different Metric Types */
.metric-card.users-active .metric-value { color: #10b981; }
.metric-card.users-websocket .metric-value { color: #3b82f6; }
.metric-card.users-total .metric-value { color: #8b5cf6; }

.metric-card.cache-memory .metric-value { color: #f59e0b; }
.metric-card.cache-teams .metric-value { color: #06b6d4; }
.metric-card.cache-hit-rate .metric-value { color: #10b981; }

.metric-card.teams-total .metric-value { color: #3b82f6; }
.metric-card.games-today .metric-value { color: #10b981; }
.metric-card.last-sync .metric-value { color: #6b7280; }

.metric-card.errors-24h .metric-value { color: #f59e0b; }
.metric-card.critical-issues .metric-value { color: #ef4444; }
.metric-card.last-error .metric-value { color: #6b7280; }

/* Status Indicators */
.metric-card[data-status="good"] .metric-value { color: #10b981; }
.metric-card[data-status="warning"] .metric-value { color: #f59e0b; }
.metric-card[data-status="error"] .metric-value { color: #ef4444; }
.metric-card[data-status="unavailable"] .metric-value { color: #6b7280; }

/* Loading and Error States */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(31, 41, 55, 0.8);
  border-radius: 8px;
  color: #d1d5db;
  margin-top: 1rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  margin-top: 1rem;
}

.error-icon {
  font-size: 1.25rem;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.metric-card {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-dashboard-metrics {
    gap: 1.5rem;
  }
  
  .metric-section {
    padding: 1rem;
  }
  
  .metric-cards-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .metric-card {
    padding: 1rem;
  }
  
  .metric-value {
    font-size: 1.875rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .metric-value {
    font-size: 1.5rem;
  }
  
  .metric-value.small-text {
    font-size: 0.875rem;
  }
  
  .metric-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .metric-icon {
    align-self: flex-end;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .metric-card {
    border-width: 2px;
    border-color: #ffffff;
  }
  
  .metric-value {
    color: #ffffff;
  }
  
  .section-title {
    border-bottom-color: #ffffff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .metric-card {
    transition: none;
    animation: none;
  }
  
  .metric-card:hover {
    transform: none;
  }
  
  .loading-spinner {
    animation: none;
  }
}

/* Clickable Metric Cards */
.clickable-metric {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.clickable-metric:hover {
  text-decoration: none;
  color: inherit;
}

.clickable-metric .metric-value {
  transition: color 0.3s ease;
}

.clickable-metric:hover .metric-value {
  color: #60a5fa !important;
}

/* Focus Styles for Accessibility */
.metric-card:focus-within,
.clickable-metric:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .admin-dashboard-metrics {
    display: block;
  }
  
  .metric-section {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .metric-card {
    break-inside: avoid;
    border: 1px solid #000;
    background: #fff;
    color: #000;
  }
  
  .metric-value {
    color: #000;
  }
}
/* Admin Users Styling */

/* Pagination Styling */
.pagination-wrapper .pagination {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.pagination-wrapper .pagination li {
  display: inline-block;
}

.pagination-wrapper .pagination a,
.pagination-wrapper .pagination span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination-wrapper .pagination a {
  color: #9CA3AF;
  background-color: #374151;
  border: 1px solid #4B5563;
}

.pagination-wrapper .pagination a:hover {
  color: #FFFFFF;
  background-color: #4B5563;
  border-color: #6B7280;
}

.pagination-wrapper .pagination .current {
  color: #FFFFFF;
  background-color: #3B82F6;
  border: 1px solid #3B82F6;
}

.pagination-wrapper .pagination .disabled {
  color: #6B7280;
  background-color: #1F2937;
  border: 1px solid #374151;
  cursor: not-allowed;
}

.pagination-wrapper .pagination .disabled:hover {
  color: #6B7280;
  background-color: #1F2937;
  border-color: #374151;
}

/* User Table Enhancements */
.user-status-badge {
  font-weight: 600;
  letter-spacing: 0.025em;
}

.user-email {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Action Buttons */
.edit-email-btn,
.ban-toggle-btn {
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.edit-email-btn:hover,
.ban-toggle-btn:hover {
  background-color: rgba(55, 65, 81, 0.5);
  transform: scale(1.1);
}

/* Modal Styling */
#edit-email-modal {
  backdrop-filter: blur(4px);
}

#edit-email-modal .bg-gray-800 {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Loading Indicator */
#loading-indicator {
  backdrop-filter: blur(2px);
}

/* Message Alerts */
.message-alert {
  min-width: 300px;
  max-width: 500px;
  word-wrap: break-word;
}

/* Stats Cards */
.bg-gray-800 {
  transition: all 0.2s ease-in-out;
}

.bg-gray-800:hover {
  background-color: #1F2937;
}

/* Table Row Hover Effects */
tr.hover\:bg-gray-700:hover {
  background-color: #374151 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pagination-wrapper .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .pagination-wrapper .pagination a,
  .pagination-wrapper .pagination span {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .message-alert {
    min-width: 250px;
    max-width: 90vw;
  }
}

/* Focus States for Accessibility */
.edit-email-btn:focus,
.ban-toggle-btn:focus {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

#new-email:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animation for status changes */
.user-status-badge {
  transition: all 0.3s ease-in-out;
}

/* Improved button states */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
}
/* Loading Spinner Styles */
#loading-spinner {
  background: var(--scoreboard-background-color);
  color: var(--scoreboard-font-color);
}

#loading-spinner .animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Scoreboard Scaling System */

/* CSS Custom Properties for Scalable Elements */
:root {
  /* Base scaling factor - can be overridden by JavaScript */
  --scoreboard-scale: 1.0;

  /* Color customization - can be overridden by JavaScript */
  --scoreboard-background-color: #1f2937;
  --scoreboard-font-color: #ffffff;

  /* Logo dimensions */
  --logo-size: calc(500px * var(--scoreboard-scale));
  --logo-fallback-size: calc(24rem * var(--scoreboard-scale)); /* size-96 equivalent */

  /* Font sizes */
  --score-font-size: calc(10rem * var(--scoreboard-scale));
  --team-name-font-size: calc(3rem * var(--scoreboard-scale)); /* text-5xl */
  --sport-font-size: calc(3rem * var(--scoreboard-scale)); /* text-5xl */
  --at-font-size: calc(3rem * var(--scoreboard-scale)); /* text-5xl */
  --broadcast-font-size: calc(2.25rem * var(--scoreboard-scale)); /* text-4xl */
  --time-status-font-size: calc(2.25rem * var(--scoreboard-scale)); /* text-4xl */
  --record-font-size: calc(1.25rem * var(--scoreboard-scale)); /* text-xl */

  /* Spacing and layout */
  --spacing-unit: calc(2rem * var(--scoreboard-scale)); /* m-8 equivalent */
  --margin-small: calc(0.5rem * var(--scoreboard-scale));
  --margin-medium: calc(1rem * var(--scoreboard-scale));
  --margin-large: calc(2rem * var(--scoreboard-scale));
  --margin-top-sport: calc(1rem * var(--scoreboard-scale)); /* mt-4 */
  --margin-bottom-sport: calc(-2rem * var(--scoreboard-scale));
  --margin-top-broadcast: calc(-1rem * var(--scoreboard-scale));

  /* Responsive breakpoints for aspect ratio adjustments */
  --aspect-ratio-multiplier: 1.0;
  --layout-width-multiplier: 1.0;
}

/* Aspect ratio specific adjustments */
:root[data-aspect-ratio="21:9"] {
  --aspect-ratio-multiplier: 1.2;
  --layout-width-multiplier: 1.1;
}

:root[data-aspect-ratio="16:10"] {
  --aspect-ratio-multiplier: 1.05;
}

:root[data-aspect-ratio="4:3"] {
  --aspect-ratio-multiplier: 0.9;
  --layout-width-multiplier: 0.95;
}

:root[data-aspect-ratio="ipad"] {
  --aspect-ratio-multiplier: 0.85;
  --layout-width-multiplier: 1.0;
}

/* iPad aspect ratio specific layout adjustments */
:root[data-aspect-ratio="ipad"] .flex.justify-between {
  width: 100%;
  justify-content: space-evenly;
}

/* Additional spacing for broadcast on iPad to prevent overlap */
:root[data-aspect-ratio="ipad"] .flex.text-center.flex-col.text-4xl {
  margin-top: calc(0rem * var(--scoreboard-scale)) !important;
}

:root[data-aspect-ratio="iphone"] {
  --aspect-ratio-multiplier: 0.7;
  --layout-width-multiplier: 1.0;
}

/* iPhone aspect ratio specific layout adjustments */
:root[data-aspect-ratio="iphone"] .flex.justify-between {
  width: 100%;
  justify-content: space-between;
  align-items: center; /* Keep everything vertically centered */
  padding: 0 2rem; /* Add more horizontal padding */
  min-width: 100vw;
  box-sizing: border-box;
}

/* Spread out the score elements more for iPhone */
:root[data-aspect-ratio="iphone"] #away-score {
  margin-left: 2rem !important;
  margin-right: 1rem !important;
}

:root[data-aspect-ratio="iphone"] #home-score {
  margin-left: 1rem !important;
  margin-right: 2rem !important;
}

:root[data-aspect-ratio="iphone"] #at {
  margin: 0 2rem !important;
  flex-shrink: 0;
  align-self: center; /* Ensure AT stays centered */
}

/* Additional spacing for broadcast on iPhone to prevent overlap */
:root[data-aspect-ratio="iphone"] .flex.text-center.flex-col.text-4xl {
  margin-top: calc(0.5rem * var(--scoreboard-scale)) !important;
}

/* Apply scaling to scoreboard elements */

/* Sport title */
#sport {
  font-size: var(--sport-font-size) !important;
  margin-top: var(--margin-top-sport) !important;
  margin-bottom: var(--margin-bottom-sport) !important;
}

/* Score displays */
#away-score,
#home-score {
  font-size: var(--score-font-size) !important;
}

/* AT separator */
#at {
  font-size: var(--at-font-size) !important;
}

/* Team logos - both img and SVG fallback */
#away img,
#home img {
  height: var(--logo-size) !important;
  width: var(--logo-size) !important;
}

#away svg,
#home svg {
  height: var(--logo-fallback-size) !important;
  width: var(--logo-fallback-size) !important;
}

/* Team names */
#away .text-5xl,
#home .text-5xl {
  font-size: var(--team-name-font-size) !important;
}

/* Team records */
#away .text-xl,
#home .text-xl {
  font-size: var(--record-font-size) !important;
}

/* Broadcast and time status */
#broadcast,
#time-status {
  font-size: var(--broadcast-font-size) !important;
}

/* Broadcast container margin adjustment */
.flex.text-center.flex-col.text-4xl {
  margin-top: var(--margin-top-broadcast) !important;
}

/* Team container spacing */
#away .m-8,
#home .m-8 {
  margin: var(--spacing-unit) !important;
}

/* Responsive scaling for different screen sizes */
@media (max-width: 768px) {
  :root {
    --scoreboard-scale: calc(var(--scoreboard-scale) * 0.7);
  }
}

@media (max-width: 480px) {
  :root {
    --scoreboard-scale: calc(var(--scoreboard-scale) * 0.5);
  }
}

@media (min-width: 1920px) {
  :root {
    --scoreboard-scale: calc(var(--scoreboard-scale) * var(--aspect-ratio-multiplier));
  }
}

@media (min-width: 2560px) {
  :root {
    --scoreboard-scale: calc(var(--scoreboard-scale) * var(--aspect-ratio-multiplier) * 1.2);
  }
}

/* Ensure no horizontal scrolling */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Center the scoreboard vertically on the scoreboard page */
body:has(.scoreboard-container) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  background: var(--scoreboard-background-color);
  color: var(--scoreboard-font-color);
}

/* Scoreboard page wrapper to center everything */
.scoreboard-page-wrapper {
  min-height: calc(100vh - 60px); /* Account for any header/nav elements */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
}

/* Full screen centering for larger displays */
@media (min-width: 768px) {
  .scoreboard-page-wrapper {
    min-height: 100vh;
    padding: 0;
  }
}

/* Maintain visual balance and proportions */
.scoreboard-container {
  max-width: calc(100vw * var(--layout-width-multiplier));
  width: 100%;
  color: var(--scoreboard-font-color);
  /* Remove margin since body is now centering everything */
}

/* Override width constraints for mobile aspect ratios */
:root[data-aspect-ratio="iphone"] .scoreboard-container {
  max-width: 100vw;
  width: 100%;
  padding: 0; /* Remove padding to use full width */
}

:root[data-aspect-ratio="ipad"] .scoreboard-container {
  max-width: 100vw;
  width: 100%;
  padding: 0 1rem; /* Add some padding to prevent edge touching */
}

/* Ensure team containers spread out more on mobile aspect ratios */
:root[data-aspect-ratio="iphone"] #away,
:root[data-aspect-ratio="iphone"] #home {
  flex: 1 1 25%; /* Give teams more space */
  display: flex;
  justify-content: center;
  min-width: 0; /* Allow shrinking if needed */
}

/* Make scores take up less relative space so teams get more room */
:root[data-aspect-ratio="iphone"] #away-score,
:root[data-aspect-ratio="iphone"] #home-score {
  flex: 0 0 auto; /* Don't grow, just take what they need */
  align-self: center; /* Keep scores vertically centered */
}

/* Additional iPhone spacing adjustments */
:root[data-aspect-ratio="iphone"] .flex.justify-between > *:first-child {
  margin-left: 2rem;
}

:root[data-aspect-ratio="iphone"] .flex.justify-between > *:last-child {
  margin-right: 2rem;
}

:root[data-aspect-ratio="ipad"] #away,
:root[data-aspect-ratio="ipad"] #home {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Performance optimizations */
#away,
#home,
#away-score,
#home-score {
  will-change: transform;
  transform: translateZ(0); /* Force hardware acceleration */
}

/* Scalable classes for dynamically generated content */
.scalable-sport-text {
  font-size: var(--sport-font-size) !important;
}

.scalable-score-text {
  font-size: var(--score-font-size) !important;
}

.scalable-broadcast-text {
  font-size: var(--broadcast-font-size) !important;
}

.scalable-time-text {
  font-size: var(--time-status-font-size) !important;
}

.scalable-team-name-text {
  font-size: var(--team-name-font-size) !important;
}

.scalable-team-record-text {
  font-size: var(--record-font-size) !important;
}

.scalable-team-container {
  margin: var(--spacing-unit) !important;
}

.team-logo {
  height: var(--logo-size) !important;
  width: var(--logo-size) !important;
}

.team-logo-svg {
  height: var(--logo-size) !important;
  width: var(--logo-size) !important;
}

/* Accessibility: Ensure minimum touch target sizes on mobile */
@media (max-width: 768px) {
  #away,
  #home {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Horizontal Scrolling Scoreboard Ticker Styles */

.scoreboard-ticker-container {
  width: 100% !important;
  height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  background: var(--scoreboard-background-color) !important;
  position: relative !important;
  z-index: 10 !important;
}

.scoreboard-ticker-scroll {
  display: flex !important;
  animation: scoreboardScroll 120s linear infinite !important;
  align-items: center !important;
  height: 100vh !important;
}

.ticker-game-scoreboard {
  min-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  color: var(--scoreboard-font-color) !important;
  padding: 2rem !important;
  box-sizing: border-box !important;
}

.ticker-team-section {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 300px !important;
}

/* Better spacing for ticker scores */
.ticker-game-scoreboard .scalable-score-text {
  margin: 0 4rem !important;
  flex-shrink: 0 !important;
}

.ticker-game-scoreboard .text-5xl {
  margin: 0 5rem !important;
  flex-shrink: 0 !important;
}

/* Horizontal scrolling animation for scoreboards */
@keyframes scoreboardScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Aspect ratio adjustments for scoreboard ticker */
:root[data-aspect-ratio="21:9"] .ticker-game-scoreboard {
  --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 1.2);
}

:root[data-aspect-ratio="16:10"] .ticker-game-scoreboard {
  --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 1.05);
}

:root[data-aspect-ratio="4:3"] .ticker-game-scoreboard {
  --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 0.9);
}

:root[data-aspect-ratio="ipad"] .ticker-game-scoreboard {
  --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 0.85);
}

:root[data-aspect-ratio="iphone"] .ticker-game-scoreboard {
  --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ticker-game-scoreboard {
    --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 0.7);
  }
}

@media (max-width: 480px) {
  .ticker-game-scoreboard {
    --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 0.5);
  }
}

/* Fullscreen adjustments */
.fullscreen .scoreboard-ticker-container {
  height: 100vh !important;
  width: 100vw !important;
}

.fullscreen .ticker-game-scoreboard {
  --scoreboard-scale: calc(var(--scoreboard-scale, 1) * 1.2);
}

/* Reduced motion accessibility support */
@media (prefers-reduced-motion: reduce) {
  .scoreboard-ticker-scroll {
    animation: none !important;
    transform: translateX(0) !important;
  }
  
  .scoreboard-ticker-container {
    justify-content: center;
    align-items: center;
  }
  
  .ticker-game-scoreboard:not(:first-child) {
    display: none;
  }
}

/* Small Dropdown Menu */
.scoreboard-dropdown {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.scoreboard-menu-trigger {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: rgba(68, 170, 153, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scoreboard-menu-trigger:hover {
  background: rgba(68, 170, 153, 0.2);
  color: #4a9;
  border-radius: 6px;
}

.scoreboard-dropdown-content {
  position: absolute;
  top: 45px;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #444;
  border-radius: 6px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scoreboard-dropdown:hover .scoreboard-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  transition: all 0.2s ease;
  border-bottom: 1px solid #333;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #4a9;
  color: #000;
  text-decoration: none;
}

/* Hide in fullscreen mode */
.fullscreen .scoreboard-dropdown {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scoreboard-dropdown {
    top: 15px;
    left: 15px;
  }
  
  .scoreboard-menu-trigger {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .dropdown-item {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}/*
 Fullscreen toggle button styling */
.dropdown-item#fullscreen-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item#fullscreen-toggle:hover {
  background: #4a9;
  color: #000;
}
/* Team Settings Styles - Retro Theme */

/* Import retro color palette from user_settings */
:root {
  --retro-primary: #4a9;
  --retro-secondary: #c85;
  --retro-accent: #5ac;
  --retro-warning: #da5;
  --retro-error: #c55;
  --retro-bg-dark: #111;
  --retro-bg-panel: #1e1e1e;
  --retro-border: #444;
  --retro-text: #aaa;
  --retro-text-bright: #ccc;
  --retro-text-dim: #777;
}

/* Retro Header */
.retro-header {
  text-align: center;
  margin-bottom: 2rem;
}

.retro-title {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--retro-text-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.retro-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--retro-text-dim);
  letter-spacing: 0.05em;
}

/* Retro Form */
.retro-form {
  font-family: 'Courier New', monospace;
  /* Ensure form can expand naturally */
  min-height: auto;
  height: auto;
}

/* Retro Alert */
.retro-alert {
  border: 2px solid;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.retro-alert-error {
  border-color: var(--retro-error);
  background: linear-gradient(135deg, rgba(204, 85, 85, 0.1), rgba(204, 85, 85, 0.05));
}

.retro-alert-header {
  background: var(--retro-error);
  color: #000;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.retro-alert-body {
  padding: 1rem;
  color: var(--retro-error);
}

.retro-error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.retro-error-list li {
  margin-bottom: 0.25rem;
  font-family: 'Courier New', monospace;
}

/* Retro Panels */
.retro-panel {
  background: var(--retro-bg-panel);
  border: 1px solid var(--retro-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.retro-panel:hover {
  border-color: var(--retro-primary);
  transform: translateY(-1px);
}

.retro-panel-header {
  background: linear-gradient(90deg, var(--retro-bg-dark), #2a2a2a);
  padding: 1rem;
  border-bottom: 1px solid var(--retro-border);
}

.retro-panel-title {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--retro-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.retro-panel-body {
  padding: 1.5rem;
}

/* Retro Form Fields */
.retro-field-group {
  margin-bottom: 1.5rem;
}

.retro-label {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--retro-text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Retro Content Containers */
.retro-sports-container,
.retro-teams-container {
  margin-bottom: 1.5rem;
}

.retro-sports-content,
.retro-teams-content {
  /* Content flows naturally without tabs */
}

.retro-sport-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--retro-border);
}

.retro-sport-section:last-child {
  border-bottom: none;
}

/* Retro Search */
.retro-search-container {
  position: relative;
}

.retro-search-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 4px;
  color: var(--retro-text-bright);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.retro-search-input:focus {
  outline: none;
  border-color: var(--retro-primary);
}

.retro-search-input::placeholder {
  color: var(--retro-text-dim);
}

/* Retro Sports Grid */
.retro-sports-grid {
  margin-bottom: 1rem;
}

.retro-sport-group {
  margin-bottom: 2rem;
}

.retro-group-title {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  color: var(--retro-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--retro-border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.retro-sport-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.retro-sport-item {
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 4px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.retro-sport-item:hover,
.retro-team-item:hover {
  border-color: var(--retro-primary);
  background: #222;
}

.retro-sport-item.selected,
.retro-team-item.selected {
  border-color: var(--retro-primary);
  background: #1a2332;
}

.retro-sport-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

.retro-sport-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 3px;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retro-sport-checkbox:checked {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
}

.retro-sport-text {
  color: var(--retro-text-bright);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

/* Selected Sports and Teams */
.retro-selected-sports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

/* Sports Actions Section */
.retro-sports-actions {
  border-top: 1px solid var(--retro-border);
  padding-top: 2rem;
  margin-top: 2rem;
  display: none; /* Initially hidden */
}

.retro-sports-actions.show {
  display: block;
}

.retro-sports-actions .retro-actions {
  justify-content: center;
  margin-bottom: 1rem;
}

.retro-save-hint {
  text-align: center;
}

.retro-hint-text {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--retro-text-dim);
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.02em;
}

.retro-selected-item {
  background: var(--retro-primary);
  border-radius: 4px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
}

.retro-selected-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.retro-selected-icon {
  font-size: 1rem;
}

.retro-selected-text {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 0.9rem;
}

.retro-remove-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.retro-remove-button:hover {
  transform: scale(1.2);
}

/* Empty States */
.retro-empty-state,
.retro-no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.retro-empty-content,
.retro-no-results-content {
  color: var(--retro-text-dim);
}

.retro-empty-icon,
.retro-no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.retro-empty-title,
.retro-no-results-title {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--retro-text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.retro-empty-text,
.retro-no-results-text {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Retro Buttons */
.retro-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.retro-button-primary {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
  color: #000;
}

.retro-button-primary:hover {
  background: var(--retro-accent);
  transform: translateY(-1px);
  color: #000;
}

.retro-button-secondary {
  background: var(--retro-bg-dark);
  border-color: var(--retro-border);
  color: var(--retro-text-dim);
}

.retro-button-secondary:hover {
  border-color: var(--retro-secondary);
  color: var(--retro-secondary);
  transform: translateY(-1px);
}

/* Retro Actions */
.retro-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--retro-bg-panel);
  border-radius: 8px;
  border: 1px solid var(--retro-border);
}

/* Main Container - Allow Natural Scrolling */
.team-settings-container {
  /* Ensure natural page scrolling */
  overflow: visible;
  height: auto;
  min-height: auto;
}

/* Content Area - Allow Natural Flow */
.team-settings-form {
  /* Ensure natural content flow */
  overflow: visible;
  height: auto;
  min-height: auto;
  max-height: none;
}

/* Tab Navigation Styles */
.sports-tab-button,
.teams-tab-button {
  @apply border-transparent text-gray-400 hover:text-gray-300 hover:border-gray-300;
}

.sports-tab-button.active,
.teams-tab-button.active {
  @apply border-blue-500 text-blue-400;
}

/* Tab Content Styles - Natural Flow */
.tab-pane {
  @apply hidden;
}

.tab-pane.active {
  @apply block;
}

/* Sports Grid - Natural Flow */
.sports-grid {
  /* Allow natural content flow */
}

/* Teams Grid - Natural Flow */
.teams-grid {
  /* Allow natural content flow */
}

/* Selected Sports List - Natural Flow */
.selected-sports-list {
  /* Allow natural content flow */
}

/* Sport and Team Item Hover Effects */
.sport-item:hover,
.team-item:hover {
  @apply transform scale-105;
}

.sport-item input[type="checkbox"]:checked+.sport-label,
.team-item input[type="checkbox"]:checked+.team-label {
  @apply text-blue-300;
}

.sport-item input[type="checkbox"]:checked,
.team-item input[type="checkbox"]:checked {
  @apply bg-blue-600 border-blue-600;
}

/* Selected Sport Item Animations */
.selected-sport-item {
  @apply animate-pulse;
  animation-duration: 2s;
  animation-iteration-count: 1;
}

/* Loading States */
.team-settings-form.loading {
  @apply opacity-50 pointer-events-none;
}

.team-settings-form.loading #save-button {
  @apply bg-gray-500 cursor-not-allowed;
}

/* Search Input Focus States */
.search-input:focus {
  @apply ring-2 ring-blue-500 border-blue-500;
}

/* Responsive Grid Adjustments */
@media (max-width: 640px) {

  .sports-grid .grid,
  .teams-grid .grid {
    @apply grid-cols-1;
  }

  .selected-sports-list {
    @apply grid-cols-1;
  }
}

@media (min-width: 641px) and (max-width: 768px) {

  .sports-grid .grid,
  .teams-grid .grid {
    @apply grid-cols-2;
  }

  .selected-sports-list {
    @apply grid-cols-2;
  }
}

/* Smooth Transitions */
.sport-item,
.team-item,
.selected-sport-item,
.sports-tab-button,
.teams-tab-button {
  @apply transition-all duration-200 ease-in-out;
}

/* Form Validation Error Styles */
.field_with_errors {
  @apply inline;
}

.field_with_errors input,
.field_with_errors select {
  @apply border-red-500 ring-red-500;
}

/* Custom Checkbox Styles for Better Visibility */
.sport-checkbox,
.team-checkbox {
  @apply rounded border-2 border-gray-400 bg-gray-700;
}

.sport-checkbox:checked,
.team-checkbox:checked {
  @apply bg-blue-600 border-blue-600;
}

.sport-checkbox:focus,
.team-checkbox:focus {
  @apply ring-2 ring-blue-500 ring-offset-2 ring-offset-gray-800;
}

/* Loading Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Fade In Animation for Dynamic Content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Tab Content Slide Animation */
.tab-pane {
  @apply transition-opacity duration-300 ease-in-out;
}

.tab-pane:not(.active) {
  @apply opacity-0;
}

.tab-pane.active {
  @apply opacity-100;
}

/* Mobile-Specific Styles */
@media (max-width: 640px) {
  .team-settings-container {
    @apply px-2;
    /* Remove height and overflow constraints for natural scrolling */
  }

  .team-settings-form {
    /* Remove height and overflow constraints for natural scrolling */
  }

  .form-actions {
    @apply flex-col space-y-3;
    position: sticky;
    bottom: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    margin: 0 -1rem -1rem -1rem;
    border-top: 1px solid rgba(75, 85, 99, 0.5);
  }

  .form-actions .btn {
    @apply w-full text-center;
  }

  /* Make tabs scrollable on mobile */
  .nav {
    @apply overflow-x-auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav .nav-item {
    @apply flex-shrink-0;
  }

  /* Mobile containers - natural flow */
  .tab-pane {
    /* Allow natural content flow */
  }

  .sports-grid,
  .teams-grid,
  .selected-sports-list {
    /* Allow natural content flow */
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

  .sport-item,
  .team-item {
    @apply border border-gray-400;
  }

  .sport-checkbox,
  .team-checkbox {
    @apply border-2 border-white;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  .sport-item,
  .team-item,
  .selected-sport-item,
  .sports-tab-button,
  .teams-tab-button {
    @apply transition-none;
  }

  .animate-spin {
    animation: none;
  }

  .fade-in {
    animation: none;
  }
}

/* Print Styles */
@media print {
  .team-settings-container {
    @apply text-black bg-white;
  }

  .form-actions {
    @apply hidden;
  }

  .search-container {
    @apply hidden;
  }
}

/* Focus Visible for Better Accessibility */
.sport-checkbox:focus-visible,
.team-checkbox:focus-visible,
.sports-tab-button:focus-visible,
.teams-tab-button:focus-visible {
  @apply outline-2 outline-blue-500 outline-offset-2;
}

/* Error State Animations */
.error-shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* Success State Animation */
.success-pulse {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
  .team-settings-container {
    @apply px-1;
    /* Remove height and overflow constraints for natural scrolling */
  }

  .sports-section h2,
  .teams-section h2 {
    @apply text-xl;
    position: sticky;
    top: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    z-index: 10;
  }

  .sport-type-group h4 {
    @apply text-base;
    position: sticky;
    top: 3rem;
    background: rgba(55, 65, 81, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    z-index: 5;
  }

  .sport-item,
  .team-item {
    @apply p-2;
  }

  .sport-label,
  .team-label {
    @apply text-xs;
  }

  .selected-sport-item {
    @apply p-3;
  }

  /* Small screens - natural flow */
  .tab-pane {
    padding-bottom: 2rem;
  }

  .sports-grid,
  .teams-grid,
  .selected-sports-list {
    padding-bottom: 2rem;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {

  .sport-item,
  .team-item,
  .sports-tab-button,
  .teams-tab-button,
  .remove-sport {
    @apply min-h-12;
  }

  .sport-checkbox,
  .team-checkbox {
    @apply w-5 h-5;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .search-input::placeholder {
    @apply text-gray-500;
  }
}

/* Loading state improvements */
.team-settings-form.loading * {
  @apply pointer-events-none;
}

.team-settings-form.loading .sport-checkbox,
.team-settings-form.loading .team-checkbox {
  @apply opacity-50;
}

/* Improved focus indicators for keyboard navigation */
.sport-item:focus-within,
.team-item:focus-within {
  @apply ring-2 ring-blue-500 ring-offset-2 ring-offset-gray-800 rounded-lg;
}

/* Better visual hierarchy */
.sport-type-group:not(:last-child) {
  @apply mb-6;
}

.teams-tab-button span {
  @apply text-xs;
}

/* Scrollbar styles removed - no scrolling in sports section */

/* Grid containers - no scroll effects needed */
.sports-grid,
.teams-grid,
.selected-sports-list {
  position: relative;
}

/* Smooth Scroll Behavior */
.sports-grid,
.teams-grid,
.selected-sports-list,
.tab-pane,
.team-settings-form,
.team-settings-container {
  scroll-behavior: smooth;
}

/* Scroll Snap for Better UX */
.sport-type-group {
  scroll-snap-align: start;
}

.sports-grid {
  scroll-snap-type: y mandatory;
}

/* Loading State */
.team-settings-form.loading {
  /* Don't lock scrolling during loading */
}

/* Focus Management for Scroll Areas */
.sports-grid:focus,
.teams-grid:focus,
.selected-sports-list:focus {
  outline: 2px solid #3B82F6;
  outline-offset: -2px;
}

/* Scroll Indicators */
.sports-grid.scrollable::before,
.teams-grid.scrollable::before,
.selected-sports-list.scrollable::before {
  opacity: 1;
}

.sports-grid.scrolled-top::before,
.teams-grid.scrolled-top::before,
.selected-sports-list.scrolled-top::before {
  opacity: 0;
}

.sports-grid.scrollable::after,
.teams-grid.scrollable::after,
.selected-sports-list.scrollable::after {
  opacity: 1;
}

.sports-grid.scrolled-bottom::after,
.teams-grid.scrolled-bottom::after,
.selected-sports-list.scrolled-bottom::after {
  opacity: 0;
}

/* Focus States for Scroll Containers */
.sports-grid.focused,
.teams-grid.focused,
.selected-sports-list.focused {
  outline: 2px solid #3B82F6;
  outline-offset: -2px;
  border-radius: 0.5rem;
}

/* Scroll indicators removed - no scrolling needed */

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(50%) translateY(0);
  }

  40% {
    transform: translateX(50%) translateY(-5px);
  }

  60% {
    transform: translateX(50%) translateY(-3px);
  }
}

/* Mobile Touch Scroll Improvements */
@media (hover: none) and (pointer: coarse) {

  .sports-grid,
  .teams-grid,
  .selected-sports-list,
  .tab-pane {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y proximity;
  }

  .sport-type-group,
  .team-item,
  .selected-sport-item {
    scroll-snap-align: start;
  }
}

/* High Contrast Mode Scroll Indicators */
@media (prefers-contrast: high) {

  .sports-grid::-webkit-scrollbar-thumb,
  .teams-grid::-webkit-scrollbar-thumb,
  .selected-sports-list::-webkit-scrollbar-thumb {
    background: #ffffff;
    border: 1px solid #000000;
  }

  .sports-grid::-webkit-scrollbar-track,
  .teams-grid::-webkit-scrollbar-track,
  .selected-sports-list::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #ffffff;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .sports-grid,
  .teams-grid,
  .selected-sports-list,
  .tab-pane,
  .team-settings-form,
  .team-settings-container {
    scroll-behavior: auto;
  }

  .sports-grid.can-scroll-down::after,
  .teams-grid.can-scroll-down::after,
  .selected-sports-list.can-scroll-down::after,
  .sports-grid.can-scroll-up::before,
  .teams-grid.can-scroll-up::before,
  .selected-sports-list.can-scroll-up::before {
    animation: none;
  }
}

/* Tablet Specific - Fill Available Space */
@media (min-width: 768px) and (max-width: 1024px) {

  .sports-grid,
  .teams-grid,
  .selected-sports-list {
    height: auto;
  }

  .tab-pane {
    height: auto;
  }
}

/* Large Screen - Fill Available Space */
@media (min-width: 1025px) {

  .sports-grid,
  .teams-grid,
  .selected-sports-list {
    height: auto;
  }

  .tab-pane {
    height: auto;
  }

  /* Show more subtle scrollbars on larger screens */
  .sports-grid::-webkit-scrollbar,
  .teams-grid::-webkit-scrollbar,
  .selected-sports-list::-webkit-scrollbar {
    width: 12px;
  }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.scroll-to-top-btn:active {
  transform: translateY(0);
}

/* Mobile adjustments for scroll to top button */
@media (max-width: 640px) {
  .scroll-to-top-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem;
  }

  .scroll-to-top-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Ensure scroll to top button doesn't interfere with form actions */
@media (max-width: 640px) {
  .form-actions {
    padding-bottom: 5rem;
    /* Add space for scroll button */
  }
}

/* Improved scroll performance */
.team-settings-container,
.sports-grid,
.teams-grid,
.selected-sports-list {
  will-change: scroll-position;
}

/* Scroll momentum for iOS */
.team-settings-container,
.sports-grid,
.teams-grid,
.selected-sports-list,
.tab-pane {
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {

  .team-settings-container,
  .sports-grid,
  .teams-grid,
  .selected-sports-list {
    /* Only prevent horizontal overflow, allow vertical scrolling */
    overflow-x: hidden;
  }

  /* Ensure grid items don't cause horizontal overflow */
  .grid {
    min-width: 0;
  }

  .sport-item,
  .team-item,
  .selected-sport-item {
    min-width: 0;
    word-wrap: break-word;
  }
}
/* Res
ponsive Design */
@media (max-width: 768px) {
  .retro-title {
    font-size: 2rem;
  }
  
  .retro-sport-items {
    grid-template-columns: 1fr;
  }
  
  .retro-selected-sports {
    grid-template-columns: 1fr;
  }
  
  .retro-nav-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .retro-tab-button {
    border-radius: 4px;
    border: 1px solid var(--retro-border);
  }
  
  .retro-actions {
    flex-direction: column;
  }
  
  .retro-button {
    width: 100%;
    text-align: center;
  }
  
  .retro-panel-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .retro-title {
    font-size: 1.5rem;
  }
  
  .retro-panel-title {
    font-size: 1rem;
  }
  
  .retro-sport-items {
    gap: 0.5rem;
  }
  
  .retro-sport-item {
    padding: 0.5rem;
  }
}

/* Animation for interactive elements */
.retro-panel, .retro-button, .retro-sport-item {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Maintain existing functionality classes */
.sports-tab-button = .retro-tab-button;
.teams-tab-button = .retro-tab-button;
.sport-checkbox = .retro-sport-checkbox;
.team-checkbox = .retro-sport-checkbox;
.sport-item = .retro-sport-item;
.team-item = .retro-sport-item;
.selected-sport-item = .retro-selected-item;

/* Loading states */
.retro-form.loading {
  opacity: 0.5;
  pointer-events: none;
}

.retro-form.loading .retro-button-primary {
  background: var(--retro-text-dim);
  cursor: not-allowed;
}
/* Ensu
re page-level scrolling works */
body {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
}

html {
  overflow-y: auto !important;
  height: auto !important;
}

/* Ensure main containers don't restrict scrolling */
.min-h-screen {
  overflow: visible !important;
  height: auto !important;
}

/* Fix any potential Tailwind conflicts */
.max-w-6xl {
  overflow: visible !important;
  height: auto !important;
}/* Re
tro Teams Styling */
.retro-teams-container {
  margin-top: 2rem;
}

.retro-team-count {
  background: var(--retro-bg-dark);
  color: var(--retro-text-dim);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-family: 'Courier New', monospace;
}

.retro-tab-button.active .retro-team-count {
  background: #000;
  color: var(--retro-text-dim);
}

/* Retro Teams Grid */
.retro-teams-grid {
  margin-bottom: 2rem;
}

.retro-team-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.retro-team-item {
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 4px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.retro-team-item:hover {
  border-color: var(--retro-primary);
  background: #222;
}

.retro-team-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

.retro-team-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 3px;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retro-team-checkbox:checked {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
}

.retro-team-text {
  color: var(--retro-text-bright);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

/* Fix spacing between sections */
.retro-panel-body > .retro-teams-container {
  margin-top: 0;
}

.retro-field-group + .retro-teams-grid {
  margin-top: 1rem;
}

/* Ensure proper spacing between search and teams */
.retro-search-container {
  margin-bottom: 1.5rem;
}

/* Add clear separation between sections */
.retro-teams-grid .retro-team-items {
  padding-top: 1rem;
  border-top: 1px solid var(--retro-border);
  margin-top: 1rem;
}

/* Mobile responsive for teams */
@media (max-width: 768px) {
  .retro-team-items {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .retro-team-item {
    padding: 0.5rem;
  }
  
  .retro-nav-buttons {
    flex-wrap: wrap;
  }
  
  .retro-tab-button {
    margin-bottom: 0.5rem;
  }
  
  .retro-sports-actions .retro-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .retro-sports-actions .retro-button {
    width: 100%;
    text-align: center;
  }
  
  .retro-hint-text {
    font-size: 0.75rem;
    padding: 0 1rem;
  }
}

/* Ensure teams section doesn't overlap with search */
.retro-teams-grid {
  clear: both;
  position: relative;
  z-index: 1;
}

.retro-search-container {
  position: relative;
  z-index: 2;
  background: var(--retro-bg-panel);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

/* Add visual separation */
.retro-field-group:last-of-type {
  border-bottom: 1px solid var(--retro-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}/* Select
ed Sports Section */
.retro-selected-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--retro-border);
}

/* Sport Sections in Teams */
.retro-sport-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}

.retro-sport-section:not(:last-child) {
  border-bottom: 1px solid var(--retro-border);
}

/* Remove tab-related mobile styles */
@media (max-width: 768px) {
  .retro-sport-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .retro-selected-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}/* Re
tro Navigation */
.retro-nav {
  text-align: center;
  margin-bottom: 2rem;
}

.retro-nav-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 4px;
  color: var(--retro-text-bright);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.retro-nav-link:hover {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
  color: #000;
  transform: translateY(-1px);
  text-decoration: none;
}

.retro-nav-link:focus {
  outline: 2px solid var(--retro-primary);
  outline-offset: 2px;
}

/* Mobile responsive for navigation */
@media (max-width: 768px) {
  .retro-nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}
/* Retro User Settings Styles */

/* Retro Color Palette - Muted */
:root {
  --retro-primary: #4a9;
  --retro-secondary: #c85;
  --retro-accent: #5ac;
  --retro-warning: #da5;
  --retro-error: #c55;
  --retro-bg-dark: #111;
  --retro-bg-panel: #1e1e1e;
  --retro-border: #444;
  --retro-text: #aaa;
  --retro-text-bright: #ccc;
  --retro-text-dim: #777;
}

/* Retro Header */
.retro-header {
  text-align: center;
  margin-bottom: 2rem;
}

.retro-title {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--retro-text-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.retro-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--retro-text-dim);
  letter-spacing: 0.05em;
}

/* Retro Form */
.retro-form {
  font-family: 'Courier New', monospace;
}

/* Retro Alert */
.retro-alert {
  border: 2px solid;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.retro-alert-error {
  border-color: var(--retro-error);
  background: linear-gradient(135deg, rgba(255, 7, 58, 0.1), rgba(255, 7, 58, 0.05));
}

.retro-alert-header {
  background: var(--retro-error);
  color: #000;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.retro-alert-body {
  padding: 1rem;
  color: var(--retro-error);
}

.retro-error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.retro-error-list li {
  margin-bottom: 0.25rem;
  font-family: 'Courier New', monospace;
}

/* Retro Panels */
.retro-panel {
  background: var(--retro-bg-panel);
  border: 1px solid var(--retro-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.retro-panel:hover {
  border-color: var(--retro-primary);
  transform: translateY(-1px);
}

.retro-panel-header {
  background: linear-gradient(90deg, var(--retro-bg-dark), #2a2a2a);
  padding: 1rem;
  border-bottom: 1px solid var(--retro-border);
}

.retro-panel-title {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--retro-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.retro-panel-body {
  padding: 1.5rem;
}

/* Retro Form Fields */
.retro-field-group {
  margin-bottom: 1.5rem;
}

.retro-label {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--retro-text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.retro-input, .retro-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 4px;
  color: var(--retro-text-bright);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.retro-input:focus, .retro-select:focus {
  outline: none;
  border-color: var(--retro-primary);
}

.retro-help-text {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--retro-text-dim);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* Retro Toggle Controls */
.retro-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.retro-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retro-checkbox:checked {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
}

.retro-toggle-label {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--retro-text-bright);
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Retro Button Grid */
.retro-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Retro Radio Buttons */
.retro-radio-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 3rem;
}

.retro-radio-btn:hover {
  border-color: var(--retro-primary);
  background: #222;
}

.retro-radio-btn.active {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
  color: #000;
}

.retro-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.retro-radio-label {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--retro-text-bright);
  letter-spacing: 0.05em;
  text-align: center;
}

.retro-radio-btn.active .retro-radio-label {
  color: #000;
}

/* Retro Color Picker */
.retro-color-picker-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

.retro-color-input {
  width: 80px;
  height: 50px;
  padding: 0.25rem;
  background: var(--retro-bg-dark);
  border: 2px solid var(--retro-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retro-color-input:hover {
  border-color: var(--retro-primary);
}

.retro-color-input:focus {
  outline: none;
  border-color: var(--retro-primary);
}

.retro-color-value {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Retro Slider */
.retro-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

.retro-slider {
  flex: 1;
  height: 8px;
  background: linear-gradient(90deg, var(--retro-bg-dark), var(--retro-border));
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.retro-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--retro-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retro-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.retro-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--retro-primary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retro-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.retro-slider-label {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--retro-text-dim);
  font-weight: bold;
  min-width: 2.5rem;
  text-align: center;
}

.retro-value-display {
  text-align: center;
  margin: 0.75rem 0;
}

.retro-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--retro-primary);
  color: #000;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  letter-spacing: 0.05em;
  min-width: 4rem;
}

/* Retro Buttons */
.retro-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.retro-button-primary {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
  color: #000;
}

.retro-button-primary:hover {
  background: var(--retro-accent);
  transform: translateY(-1px);
  color: #000;
}

.retro-button-secondary {
  background: var(--retro-bg-dark);
  border-color: var(--retro-border);
  color: var(--retro-text-dim);
}

.retro-button-secondary:hover {
  border-color: var(--retro-secondary);
  color: var(--retro-secondary);
  transform: translateY(-1px);
}

/* Retro Actions */
.retro-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--retro-bg-panel);
  border-radius: 8px;
  border: 1px solid var(--retro-border);
}

/* Responsive Design */
@media (max-width: 768px) {
  .retro-title {
    font-size: 2rem;
  }
  
  .retro-button-grid {
    grid-template-columns: 1fr;
  }
  
  .retro-slider-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .retro-actions {
    flex-direction: column;
  }
  
  .retro-button {
    width: 100%;
    text-align: center;
  }
  
  .retro-panel-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .retro-title {
    font-size: 1.5rem;
  }
  
  .retro-panel-title {
    font-size: 1rem;
  }
}

/* Animation for interactive elements */
.retro-panel, .retro-button, .retro-radio-btn {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove scan lines effect for cleaner look *//* Retro 
Navigation */
.retro-nav {
  text-align: center;
  margin-bottom: 2rem;
}

.retro-nav-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--retro-bg-dark);
  border: 1px solid var(--retro-border);
  border-radius: 4px;
  color: var(--retro-text-bright);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.retro-nav-link:hover {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
  color: #000;
  transform: translateY(-1px);
  text-decoration: none;
}

.retro-nav-link:focus {
  outline: 2px solid var(--retro-primary);
  outline-offset: 2px;
}

/* Mobile responsive for navigation */
@media (max-width: 768px) {
  .retro-nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}
/*
 * 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.
 *


 */
