/* Index Page Styles */

.stats{
    margin-top: -10vw;
}
.feature-icon {
    font-size: 2rem;
    color: #870000;
    margin: 0 0.5rem; 
}
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/Images/Elements/background_1.jpg') no-repeat center center/cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    border-radius: 15px;
    color: black;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3em;
    margin: 0 0 1rem 0;
    color: #670000;
}

.hero-content h2 {
    font-size: 2.5em;
    margin: 1rem 0;
    color: #670000;
}

.hero-content h3 {
    font-size: 1.5em;
    margin: 0.5rem 0;
    color: #333;
}

/* Hero Labels */
.hero-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(103, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
    font-size: 0.9rem;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.hero-btn-primary {
    background: #670000;
    color: white;
    border-color: #670000;
}

.hero-btn-primary:hover {
    background: #a70000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(103, 0, 0, 0.3);
}

.hero-btn-secondary {
    background: white;
    color: #670000;
    border-color: #670000;
}

.hero-btn-secondary:hover {
    background: #670000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(103, 0, 0, 0.3);
}

.hero-btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-btn-outline:hover {
    background: white;
    color: #670000;
    transform: translateY(-3px);
}

.hero-video {
    background: black;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(103, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-video-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-lg, blur(16px));
    -webkit-backdrop-filter: var(--blur-lg, blur(16px));
    color: white;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
}

.hero-video-content h1,
.hero-video-content h3 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Design for Heroes */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content h3 {
        font-size: 1.2em;
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

.video-section {
    background-color: #fff;
    text-align: center;
}

.video-container video {
    width: 50%;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    border: 2px outset #670000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-container {
    flex: 1;
}

.video-section h3 {
    text-align: center;
    color: #670000;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .video-container video {
        max-width: 100%;
        width: 20rem;
        height: 12rem;
    }
}

.stats-leaders {
    margin-top: -30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
  }

  .leader {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px outset #670000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    padding: 0.1rem;
    width: 17rem;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .leader a {
    text-decoration: none;
    color: inherit;
  }

  .leader img {
    width: 15rem;

  }

  .leader h3 {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #333;
  }

  .leader:hover {
    transform: translateY(-0.5rem);
  }

  @media (max-width: 48rem) {
    .stats-leaders {
      flex-direction: column;
      align-items: center;
    }
  }

/* Season Dashboard Styles */
.season-dashboard {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #670000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dashboard-card h3 {
  color: #670000;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.highlight-card {
  background: linear-gradient(135deg, #670000 0%, #a70000 100%);
  color: white;
}

.highlight-card h3 {
  color: white;
}

.progress-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.big-number {
  font-size: 3rem;
  font-weight: bold;
  color: #670000;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #670000, #a70000);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: #666;
}

.matchday-badge {
  background: white;
  color: #670000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.matchday-date {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem 0;
}

.upcoming-matches {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mini-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

.mini-match .team {
  flex: 1;
  font-weight: 500;
}

.mini-match .vs {
  padding: 0 0.5rem;
  opacity: 0.7;
}

.mini-match .match-time {
  font-size: 0.85rem;
  opacity: 0.8;
}

.more-matches {
  font-style: italic;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Countdown Timer Styles */
.countdown-container {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown-value {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
}

.countdown-suffix {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.countdown-separator {
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0.6;
  margin: 0 0.1rem;
}

.countdown-expired {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  animation: pulse 2s infinite;
}

/* Dark mode already handled by highlight-card parent */

@media (max-width: 480px) {
  .countdown-value {
    font-size: 1.4rem;
    min-width: 32px;
    padding: 0.2rem 0.4rem;
  }

  .countdown-unit {
    min-width: 40px;
  }

  .countdown-separator {
    font-size: 1.2rem;
  }

  .countdown-suffix {
    font-size: 0.65rem;
  }
}

.quick-stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #670000;
}

.biggest-win {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
  font-size: 0.9rem;
}

/* Top Performers Styles */
.top-performers-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.performers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.performer-category h3 {
  color: #670000;
  text-align: center;
  margin-bottom: 1rem;
}

.performer-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Performer card link wrapper */
.performer-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 8px;
}

.performer-card-link:focus {
  outline: 3px solid #670000;
  outline-offset: 2px;
}

.performer-card {
  background: #fff;
  border: 2px solid #670000;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.performer-card-link:hover .performer-card,
.performer-card-link:focus .performer-card {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.player-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #333;
}

.player-team {
  color: #666;
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.player-stat {
  color: #670000;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* Group Leaders Styles */
.group-leaders-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.groups-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.group-table {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #670000;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.group-table h3 {
  text-align: center;
  color: #670000;
  margin-bottom: 1rem;
}

.group-table table {
  width: 100%;
  border-collapse: collapse;
}

.group-table th {
  background: #670000;
  color: white;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
}

.group-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  font-size: 0.9rem;
}

.group-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.group-table a {
  color: #670000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.group-table a:hover {
  color: #a70000;
  text-decoration: underline;
}

.group-table tr:hover {
  background: #f9f9f9;
}

/* Latest Results Styles */
.latest-results-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Result card link wrapper */
.result-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 10px;
}

.result-card-link:focus {
  outline: 3px solid #670000;
  outline-offset: 2px;
}

.result-card {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #670000;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card-link:hover .result-card,
.result-card-link:focus .result-card {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.match-group {
  display: block;
  text-align: center;
  color: #670000;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.result-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.result-team {
  flex: 1;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
}

.result-score {
  font-size: 1.8rem;
  font-weight: bold;
  color: #670000;
  padding: 0.5rem;
  background: #f9f9f9;
  border-radius: 5px;
  min-width: 60px;
  text-align: center;
}

/* Responsive Design */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .season-dashboard,
  .top-performers-section,
  .group-leaders-section,
  .latest-results-section {
    padding: 0 1.5rem;
  }

  .dashboard-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .performers-container,
  .groups-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
  .season-dashboard,
  .top-performers-section,
  .group-leaders-section,
  .latest-results-section {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .season-dashboard h2,
  .top-performers-section h2,
  .group-leaders-section h2,
  .latest-results-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .dashboard-container,
  .performers-container,
  .groups-container,
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .dashboard-card {
    padding: 1.25rem;
  }

  .big-number {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .result-score {
    font-size: 1.5rem;
  }

  .mini-match {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }

  .mini-match .vs {
    padding: 0.3rem 0;
  }

  .quick-stats {
    flex-direction: column;
    gap: 0.8rem;
  }

  .stat-item {
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 5px;
  }

  /* Improve table readability on mobile */
  .group-table th,
  .group-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }

  .group-table th {
    font-size: 0.8rem;
  }

  /* Better spacing for performer cards */
  .performer-card {
    padding: 1.25rem;
  }

  .player-name {
    font-size: 1rem;
  }

  .player-stat {
    font-size: 1.1rem;
  }

  /* Optimize result cards */
  .result-card {
    padding: 1.25rem;
  }

  .result-team {
    font-size: 0.95rem;
  }

  /* All-time legends section */
  .leader {
    width: 100%;
    max-width: 320px;
    margin: 0.75rem auto;
  }

  .leader img {
    width: 100%;
    max-width: 280px;
  }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 1.8em;
  }

  .hero-content h3 {
    font-size: 1em;
  }

  .season-dashboard,
  .top-performers-section,
  .group-leaders-section,
  .latest-results-section {
    padding: 0 0.75rem;
    margin: 1rem auto;
  }

  .season-dashboard h2,
  .top-performers-section h2,
  .group-leaders-section h2,
  .latest-results-section h2 {
    font-size: 1.5rem;
  }

  .dashboard-card,
  .performer-card,
  .result-card {
    padding: 1rem;
  }

  .big-number {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .matchday-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .matchday-date {
    font-size: 1rem;
  }

  .mini-match {
    font-size: 0.85rem;
    padding: 0.6rem 0.4rem;
  }

  .mini-match .match-time {
    font-size: 0.75rem;
  }

  .progress-bar {
    height: 16px;
  }

  .progress-text {
    font-size: 0.85rem;
  }

  .player-name {
    font-size: 0.95rem;
  }

  .player-team {
    font-size: 0.85rem;
  }

  .player-stat {
    font-size: 1rem;
  }

  .result-score {
    font-size: 1.3rem;
    min-width: 50px;
  }

  .result-team {
    font-size: 0.9rem;
  }

  .match-group {
    font-size: 0.8rem;
  }

  /* Make tables more compact */
  .group-table {
    padding: 0.75rem;
  }

  .group-table th,
  .group-table td {
    padding: 0.4rem 0.2rem;
    font-size: 0.8rem;
  }

  .group-table th {
    font-size: 0.75rem;
  }

  .group-table h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  /* All-time legends */
  .leader {
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto;
    padding: 0.5rem;
  }

  .leader h3 {
    font-size: 1rem;
  }

  .leader img {
    width: 100%;
    max-width: 240px;
  }

  /* Video section */
  .video-container video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .video-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  /* Ensure proper spacing between sections */
  section {
    margin-bottom: 1.5rem;
  }

  /* Improve touch targets for links */
  .group-table a,
  .result-card {
    min-height: 44px;
  }
}

/* Very small devices (360px and below) */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.5em;
  }

  .hero-content h3 {
    font-size: 0.9em;
  }

  .hero-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .big-number {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .dashboard-card h3,
  .performer-category h3,
  .group-table h3 {
    font-size: 1.1rem;
  }

  .result-score {
    font-size: 1.2rem;
  }

  .season-dashboard h2,
  .top-performers-section h2,
  .group-leaders-section h2,
  .latest-results-section h2 {
    font-size: 1.3rem;
  }
}

/* Feature Announcement Banner Styles */
.feature-announcement {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 998;
  background: linear-gradient(135deg, #670000 0%, #a70000 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.5s ease-out;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.announcement-text {
  flex: 1;
  text-align: left;
  line-height: 1.5;
}

.announcement-text strong {
  font-weight: bold;
  margin-right: 0.5rem;
}

.announcement-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.5rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* What's New Floating Button Styles */
.whats-new-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  background: linear-gradient(135deg, #670000 0%, #a70000 100%);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(103, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  will-change: transform;
  transform: translateZ(0);
}

.whats-new-btn:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 6px 20px rgba(103, 0, 0, 0.5);
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: #ffcc00;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* What's New Modal Styles */
.whats-new-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  will-change: opacity;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.whats-new-content {
  position: relative;
  background: white;
  margin: 5% auto;
  padding: 2rem;
  width: 90vw;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes slideUp {
  from {
    transform: translateY(30px) translateZ(0);
    opacity: 0;
  }
  to {
    transform: translateY(0) translateZ(0);
    opacity: 1;
  }
}

.whats-new-content h2 {
  color: #670000;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
}

.close-whats-new {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  line-height: 1;
  will-change: transform;
  transform: translateZ(0);
}

.close-whats-new:hover {
  color: #670000;
  transform: scale(1.1) translateZ(0);
}

.feature-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid #670000;
  transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.2s ease;
  will-change: transform;
  transform: translateZ(0);
}

.feature-item:hover {
  transform: translateX(5px) translateZ(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upcoming-feature {
  background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
  border-left: 4px solid #ffa500;
  opacity: 0.85;
}

.upcoming-feature h3 {
  color: #cc7000;
}

.upcoming-feature:hover {
  opacity: 1;
}

.feature-date {
  color: #670000;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  color: #333;
  margin: 0.5rem 0;
  font-size: 1.3rem;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.feature-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #670000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.feature-link:hover {
  color: #a70000;
  text-decoration: underline;
  transform: translateX(3px) translateZ(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .announcement-content {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .announcement-text {
    text-align: center;
  }

  .announcement-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }

  .whats-new-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .whats-new-content {
    width: 85%;
    margin: 10% auto;
    padding: 1.5rem;
  }

  .whats-new-content h2 {
    font-size: 1.5rem;
  }

  .feature-item {
    padding: 1rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }
}

/* Your Follows Section Styles */
.your-follows-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.follows-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.follows-category h3 {
  color: #670000;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.follows-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.follow-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 10px;
}

.follow-card-link:focus {
  outline: 3px solid #670000;
  outline-offset: 2px;
}

.follow-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 2px solid #670000;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  min-width: 180px;
}

.follow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(103, 0, 0, 0.2);
  background: #670000;
  color: white;
}

.follow-card .follow-icon {
  font-size: 1.5rem;
}

.follow-card .follow-name {
  font-weight: 600;
  font-size: 1rem;
}

.follow-team {
  border-left: 4px solid #670000;
}

.follow-player {
  border-left: 4px solid #a70000;
}

/* Responsive Design for Follows Section */
@media (max-width: 768px) {
  .your-follows-section {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .follows-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .follows-list {
    gap: 0.75rem;
  }

  .follow-card {
    padding: 0.8rem 1.2rem;
    min-width: 150px;
  }

  .follow-card .follow-icon {
    font-size: 1.3rem;
  }

  .follow-card .follow-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .follows-list {
    flex-direction: column;
    align-items: stretch;
  }

  .follow-card {
    min-width: auto;
    justify-content: center;
  }
}
