/* Homepage specific styles */

/* Hero section with full-width video */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px; /* Account for fixed header */
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.5);
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dark-background), transparent, rgba(10, 10, 10, 0.3));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  line-height: 1.1;
}

.hero-subtitle {
  display: block;
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 300;
  margin-top: 0.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.hero-buttons .btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.fullscreen-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
  background-color: rgba(10, 10, 10, 0.6);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fullscreen-link:hover {
  background-color: rgba(10, 10, 10, 0.8);
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section-gradient {
  background: linear-gradient(to bottom, var(--dark-background), #030712);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--gray-400);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Upcoming Matches Horizontal Display */
.upcoming-matches-container {
  max-width: 100%;
  padding: 0 1rem;
}

.upcoming-matches-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Match Card Enhancements - Mobile First */
.match-card {
  background-color: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 191, 255, 0.5);
  border-color: rgba(0, 191, 255, 0.5);
}

.match-card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.match-card-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.match-card-players {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.player-info {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.player-info .avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-width: 2px;
  border-color: var(--primary-blue);
  border-radius: 9999px;
  object-fit: cover;
}

.player-info .player-name {
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  line-height: 1.2;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info .player-country {
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.player-info .flag-icon {
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.vs-separator {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-blue);
  padding-top: 1.25rem;
  flex-shrink: 0;
}

.winner-badge {
  background-color: #f59e0b;
  color: var(--dark-background);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.match-card-details {
  border-top: 1px solid var(--gray-800);
  padding-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--gray-300);
  gap: 1rem;
}

.detail-item .label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

.detail-item .label i {
  width: 1rem;
  height: 1rem;
}

/* Streamer list in match card */
.streamer-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.streamer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.streamer-item-link {
  text-decoration: none;
}

.streamer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  transition: background-color 0.2s;
}

.streamer-item-link:hover .streamer-item {
  background-color: rgba(0, 191, 255, 0.1);
}

.streamer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-300);
  font-weight: 500;
  min-width: 0;
}

.streamer-info span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streamer-platform {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-transform: capitalize;
  flex-shrink: 0;
  color: white;
}

.match-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  width: 100%;
}

.match-card-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  padding: 0.625rem 0.75rem;
}

/* Status-specific styles */
.match-card[data-status="live"] {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.match-card[data-status="upcoming"] {
  border-color: var(--primary-blue);
}

.match-card[data-status="completed"] {
  opacity: 0.8;
}

.match-card[data-status="completed"]:hover {
  opacity: 1;
}

/* Countdown badge */
.badge-countdown {
  background-color: var(--primary-blue);
  color: var(--dark-background);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  animation: pulse-countdown 1.5s infinite;
}

@keyframes pulse-countdown {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 191, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 191, 255, 0);
  }
}

/* RESPONSIVE BREAKPOINTS */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .hero {
    margin-top: 60px;
  }

  .hero-content {
    padding: 1.5rem 0.75rem 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    max-width: 240px;
    font-size: 0.875rem;
    padding: 0.875rem 1.25rem;
  }

  .fullscreen-link {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  .section-title {
    font-size: 1.625rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .match-card {
    max-width: 100%;
  }

  .match-card-content {
    padding: 0.75rem;
  }

  .match-card-header {
    padding: 0.625rem 0.75rem;
  }

  .player-info .avatar {
    width: 3rem;
    height: 3rem;
  }

  .player-info .player-name {
    font-size: 0.875rem;
  }

  .vs-separator {
    font-size: 1rem;
    padding-top: 1rem;
  }

  .detail-item {
    font-size: 0.75rem;
  }

  .match-card-actions .btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.625rem;
  }
}

/* Mobile (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  .hero-buttons .btn {
    max-width: 260px;
  }

  .upcoming-matches-grid {
    justify-content: center;
  }

  .match-card {
    max-width: 300px;
  }
}

/* Tablet Portrait (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    max-width: 500px;
  }

  .hero-buttons .btn {
    max-width: 200px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.625rem;
  }

  .upcoming-matches-grid {
    justify-content: center;
    gap: 1.25rem;
  }

  .match-card {
    max-width: 280px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.0625rem;
  }
}

/* Tablet Landscape & Small Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    margin-top: 70px;
  }

  .hero-content {
    padding: 4rem 1rem 5rem;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-subtitle {
    font-size: 1.875rem;
  }

  .hero-buttons {
    flex-direction: row;
    max-width: 600px;
  }

  .hero-buttons .btn {
    max-width: 220px;
  }

  .fullscreen-link {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.625rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 2.125rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
  }

  .upcoming-matches-grid {
    gap: 1.5rem;
  }

  .match-card {
    max-width: 300px;
  }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
  .hero {
    margin-top: 70px;
  }

  .hero-content {
    padding: 6rem 1rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: row;
    max-width: 700px;
  }

  .hero-buttons .btn {
    max-width: 250px;
  }

  .fullscreen-link {
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
  }

  .upcoming-matches-grid {
    gap: 1.5rem;
  }

  .match-card {
    flex: 0 1 320px;
  }

  .player-info .avatar {
    width: 4rem;
    height: 4rem;
  }

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

  .vs-separator {
    font-size: 1.25rem;
    padding-top: 1.5rem;
  }

  .detail-item {
    font-size: 0.875rem;
  }

  .match-card-actions .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .upcoming-matches-grid {
    gap: 2rem;
  }

  .match-card {
    max-width: 340px;
  }
}

/* Ultra-wide screens (1440px+) */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 64rem;
  }

  .upcoming-matches-grid {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    margin-top: 50px;
  }

  .hero-content {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* High DPI / Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-title {
    text-rendering: optimizeLegibility;
  }

  .logo-icon {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .match-card {
    transition: none;
  }

  .match-card:hover {
    transform: none;
  }

  .badge-countdown {
    animation: none;
  }

  .hero-video {
    animation-play-state: paused;
  }
}

/* Dark mode adjustments (if needed) */
@media (prefers-color-scheme: dark) {
  .hero-overlay {
    background-color: rgba(5, 5, 5, 0.6);
  }
}
