/* DynastyHub Home Page CSS */

/* Hero Section */
.dynastyhub-welcome-bg {
  background: url('/static/images/dynastyhub-bg.jpg') center center/100% no-repeat;
  min-height: 50vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  position: relative;
}

.hero {
  text-align: center;
  padding: 30px;
  width: 80%;
  max-width: 700px;
  background: rgba(20, 20, 30, 0.85);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #a0aec0;
}

.hero .cta-btn {
  background-color: #FFD700;
  color: #111;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1em;
}

/* Section styles */
.section-card {
  margin-bottom: 30px;
  background-color: transparent !important;
  padding: 20px;
  border-radius: 8px;
}

/* Force all backgrounds to be transparent */
.features-grid,
.featured-stream,
.empty-state,
.feature-card {
  background: transparent !important;
  background-color: transparent !important;
}

.section-header h2 {
  text-align: center;
  color: #FFD700;
  margin: 20px 0;
}

.section-divider {
  margin: 40px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.content-divider {
  margin: 20px 0;
  border-bottom: 1px solid rgba(160, 174, 192, 0.1);
}

/* Active Leagues Grid - 3 per row on desktop, 1 per row on mobile */
.leagues-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin: 20px 0 !important;
  padding: 0 15px !important;
  width: 100% !important;
}

/* Remove horizontal scroll styling since we're using grid now */

.league-card {
  width: 100% !important;
  background: #1a1a2f !important;
  border-radius: 10px !important;
  padding: 15px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
}

.league-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
  background-color: #202042 !important;
  border-color: rgba(255,215,0,0.2) !important;
}

.league-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.5);
  transform: translateY(-3px);
}

.league-card:focus:not(:focus-visible) {
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.league-card:focus-visible {
  outline: 2px solid #FFD700;
  box-shadow: 0 0 0 4px rgba(255,215,0,0.3);
}

/* Add subtle glowing effect on hover */
.league-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  box-shadow: 0 0 15px 2px rgba(255,215,0,0);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.league-card:hover::after {
  opacity: 0.15;
  box-shadow: 0 0 15px 2px rgba(255,215,0,0.3);
}

.league-logo {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.league-logo img {
  background: transparent !important;
  background-color: transparent !important;
}

.league-name {
  color: #FFD700;
  font-size: 1.4em;
  margin-bottom: 8px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.league-name-text {
  display: inline-block;
}

.private-icon {
  display: inline-block;
  margin-left: 8px;
  color: #FFD700;
  font-size: 0.7em;
  vertical-align: top;
}

.application-icon {
  display: inline-block;
  margin-left: 8px;
  color: #3b82f6;
  font-size: 0.7em;
  vertical-align: top;
}

.league-description {
  color: #a0aec0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.league-meta {
  display: flex;
  justify-content: space-between;
  color: #e2e8f0;
  border-top: 1px solid #2d3748;
  padding-top: 15px;
  font-size: 0.9em;
}

.meta-label {
  display: block;
  color: #a0aec0;
  font-size: 0.8em;
  margin-bottom: 2px;
}

.meta-value {
  font-weight: 500;
  color: #e2e8f0;
}

.league-timestamp {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8em;
  color: #718096;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* Difficulty badges */
.difficulty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-freshman {
  background: #4ade80;
  color: #052e16;
}

.difficulty-varsity {
  background: #fbbf24;
  color: #713f12;
}

.difficulty-allamerican {
  background: #fb7185;
  color: #881337;
}

.difficulty-heisman {
  background: #a855f7;
  color: #581c87;
}

/* Activity badge */
.activity-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3b82f6;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: bold;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Responsive Grid Design - 3 per row on desktop, 1 per row on mobile */
@media (max-width: 1200px) {
  .leagues-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}

@media (max-width: 768px) {
  .leagues-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 15px !important;
    margin: 15px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .league-card {
    padding: 15px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .league-name {
    font-size: 1.2em !important;
  }
}

@media (max-width: 580px) {
  .leagues-container {
    gap: 12px !important;
    padding: 0 10px !important;
    margin: 10px 0 !important;
  }
  
  .league-card {
    padding: 12px !important;
  }
}

/* Remove old league grid styles - they're now redundant */
.league-grid {
  display: none;
}

/* Featured Stream */
.featured-stream {
  margin: 20px 0;
}

.featured-stream iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
}

.toggle-mute-btn {
  margin-top: 10px;
  background: #FFD700;
  color: #232345;
  border: none;
  border-radius: 5px;
  padding: 6px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toggle-mute-btn:hover {
  background: #e5c100;
}

.toggle-mute-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5);
}

/* Trophy Room & Hall of Fame */
.trophy-cards-container {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.trophy-card {
  flex: 1;
  background: #1a1a2f;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.trophy-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.trophy-card h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.trophy-card p {
  color: #a0aec0;
  margin-bottom: 20px;
}

.trophy-card a {
  display: inline-block;
  padding: 10px 20px;
  background: #ffd700;
  color: #1a1a2f;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.trophy-card a:hover {
  background: #e5c100;
}

.trophy-card a:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5);
}

/* Flex display container for multiple trophy boxes */
.trophy-boxes {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.trophy-box {
  flex: 1;
  background: #1a1a2f;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.trophy-box-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.trophy-box h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.trophy-box p {
  color: #a0aec0;
  margin-bottom: 20px;
}

.trophy-box a {
  display: inline-block;
  padding: 10px 20px;
  background: #ffd700;
  color: #1a1a2f;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

/* Call to Action */
.cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #FFD700;
  color: #1a1a2f;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #e5c100;
  transform: translateY(-2px);
}

.cta-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

.cta-section {
  text-align: center;
  padding: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.cta-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #2d3748;
  color: #ffd700;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: #374151;
  transform: translateY(-2px);
}

.cta-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.5);
}

/* Features Grid - Now supports both grid and flex layouts */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Features Scroll Container for horizontal scrolling */
.features-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #FFD700 rgba(255, 215, 0, 0.1);
  padding: 20px 0;
}

.features-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.features-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
}

.features-scroll-container::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 10px;
}

.features-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #FFA500;
}

/* Mobile responsive for features scroll */
@media (max-width: 768px) {
  .features-scroll-container {
    padding: 10px 0;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

.feature-card {
  background: transparent;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2em;
  margin-bottom: 10px;
  color: #FFD700;
}

.feature-title {
  color: #FFD700;
  margin-bottom: 10px;
  font-size: 1em;
}

.feature-description {
  color: #a0aec0;
  font-size: 0.9em;
}

/* Enhanced Loading, Error and Empty States */
.loading-news, .error-container, .empty-state {
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  margin: 20px 0;
}

.error-state {
  padding: 20px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: #ef4444;
  text-align: center;
  margin: 20px 0;
}

.empty-state {
  padding: 30px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  text-align: center;
  color: #94a3b8;
}

.empty-state-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #64748b;
}

.empty-state h3 {
  color: #FFD700;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.empty-state p {
  color: #a0aec0;
  margin-bottom: 15px;
}

.error-container {
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.3);
  padding: 30px 20px;
  border-radius: 10px;
}

.error-message, .empty-message {
  color: #a0aec0;
  text-align: center;
  margin-bottom: 15px;
}

.error-message {
  color: #fc8181;
}

.retry-button {
  display: inline-block;
  padding: 8px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.2s;
}

.retry-button:hover {
  background: #2563eb;
}

.retry-button:focus {
  outline: 2px solid #FFD700;
  box-shadow: 0 0 0 2px rgba(255,215,0,0.3);
}

.featured-message {
  color: #FFD700;
  margin-top: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Image and iFrame Loading */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-iframe-placeholder {
  background: #1a1a2f;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 250px;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: #a0aec0;
}

.text-gold {
  color: #FFD700;
}

.text-decoration-none {
  text-decoration: none;
}

.mt-4 {
  margin-top: 20px;
}

.mb-3 {
  margin-bottom: 15px;
}

/* === LEAGUE CARDS COMPLETE === */ 