/* Esports Page Specific Styles */

/* Esports Hero Section */
.esports-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/esports/esports-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
}

.esports-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.esports-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Esports Categories Section */
.esports-categories {
  padding: 60px 0;
}

.categories-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-color);
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Esports Games Grid */
.esports-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.esport-game-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.esport-game-card:hover {
  transform: translateY(-10px);
}

.game-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.esport-game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.esport-game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 20px;
  text-align: center;
}

.game-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.game-info p {
  color: #999999;
  font-size: 0.9rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px;
}

.section-header h2 {
  font-size: 1.8rem;
}

.view-all {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.view-all i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.view-all:hover i {
  transform: translateX(5px);
}

/* Live Matches */
.live-matches,
.upcoming-matches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.match-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.3);
}

.game-logo {
  display: flex;
  align-items: center;
}

.game-logo img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.tournament-name {
  font-size: 0.9rem;
  color: #cccccc;
}

.match-status {
  display: flex;
  align-items: center;
}

.live-indicator {
  background-color: #dc3545;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 10px;
}

.upcoming-indicator {
  background-color: #17a2b8;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 10px;
}

.match-time {
  font-size: 0.9rem;
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 40%;
}

.team img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.team .score {
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 5px;
  color: var(--primary-color);
}

.vs {
  font-weight: 600;
  color: #999999;
}

.match-markets {
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.market {
  margin-bottom: 15px;
}

.market-name {
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 10px;
}

.odds-container {
  display: flex;
  gap: 10px;
}

.odds-btn {
  flex: 1;
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.odds-btn:hover {
  background-color: rgba(247, 211, 12, 0.1);
  border-color: var(--primary-color);
}

.odds-btn .team-name {
  font-size: 0.9rem;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.odds-btn .odds-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.more-markets {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-top: 10px;
}

/* Esports Guide Section */
.esports-guide {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.guide-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.guide-text {
  flex: 1;
}

.guide-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.guide-text p {
  margin-bottom: 20px;
}

.guide-text h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.guide-text ul,
.guide-text ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.guide-text li {
  margin-bottom: 10px;
}

.guide-image {
  flex: 1;
}

.guide-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Popular Tournaments Section */
.popular-tournaments {
  padding: 80px 0;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tournament-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tournament-card:hover {
  transform: translateY(-10px);
}

.tournament-image {
  height: 200px;
  position: relative;
}

.tournament-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.tournament-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.tournament-overlay p {
  font-size: 0.9rem;
  color: #cccccc;
}

.tournament-info {
  padding: 20px;
}

.tournament-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.tournament-detail {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #cccccc;
}

.tournament-detail i {
  margin-right: 5px;
  color: var(--primary-color);
}

.tournament-prize {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.tournament-prize span {
  color: var(--primary-color);
}

/* Esports FAQ Section */
.esports-faq {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--card-background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.2rem;
  margin: 0;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* SEO Content Section */
.seo-content {
  padding: 80px 0;
}

.seo-text {
  max-width: 1000px;
  margin: 0 auto;
}

.seo-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.seo-text h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.seo-text h4 {
  font-size: 1.3rem;
  margin: 25px 0 15px;
}

.seo-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.seo-text ul,
.seo-text ol {
  margin: 0 0 20px 20px;
}

.seo-text li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .esports-games {
    grid-template-columns: repeat(3, 1fr);
  }

  .live-matches,
  .upcoming-matches {
    grid-template-columns: 1fr;
  }

  .tournaments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .esports-games {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-content {
    flex-direction: column;
  }

  .guide-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .esports-hero h1 {
    font-size: 2.5rem;
  }

  .esports-games {
    grid-template-columns: 1fr;
  }

  .tournaments-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .match-teams {
    flex-direction: column;
    gap: 20px;
  }

  .team {
    width: 100%;
  }

  .vs {
    margin: 10px 0;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
