/* Global Styles */
:root {
  --primary-color: #6441a5;
  --secondary-color: #ff5733;
  --tertiary-color: #1a1a2e;
  --text-color: #333333;
  --light-text: #ffffff;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a2e;
  --border-color: #e1e1e1;
  --gradient: linear-gradient(to right, #6441a5, #ff5733);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--light-text);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--light-text);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-3px);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--primary-color);
  position: relative;
}

.btn-tertiary::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--gradient);
  transition: var(--transition);
}

.btn-tertiary:hover::after {
  width: 100%;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn-outline:hover {
  background-color: var(--light-bg);
  border-color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--tertiary-color);
}

.logo img {
  margin-right: 0.5rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: var(--gradient);
  padding: 6rem 0;
  color: var(--light-text);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  width: 50%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons .btn-secondary {
  border-color: var(--light-text);
  color: var(--light-text);
}

.hero-buttons .btn-secondary:hover {
  background-color: var(--light-text);
  color: var(--primary-color);
}

.hero-image {
  width: 45%;
}

/* Section Styling */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Featured Games */
.featured-games {
  background-color: var(--light-bg);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.game-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.game-image {
  height: 160px;
  overflow: hidden;
}

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

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

.game-card h3 {
  padding: 1rem 1rem 0.5rem;
}

.game-card p {
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.game-card .btn {
  margin: 0 1rem 1rem;
}

/* Gaming Sites Section */
.gaming-sites {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.site-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
}

.site-card h3 {
  margin-bottom: 1rem;
}

.site-links {
  margin-top: 1.5rem;
}

.site-links li {
  margin-bottom: 0.75rem;
}

.site-links a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
}

.site-links a:hover {
  text-decoration: underline;
  color: var(--light-text);
}

/* Latest News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

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

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: 0.25rem;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 0.5rem;
}

.see-more-container {
  text-align: center;
  margin-top: 3rem;
}

/* Tournaments Section */
.tournaments {
  background-color: var(--light-bg);
}

.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tournament-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tournament-date {
  background: var(--gradient);
  color: #fff;
  min-width: 100px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.tournament-date .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.tournament-date .month {
  font-size: 1rem;
  font-weight: 500;
}

.tournament-details {
  padding: 1.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tournament-game, .tournament-prize {
  color: #666;
}

.tournament-details .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Community Section */
.community {
  background: var(--gradient);
  color: var(--light-text);
  overflow: hidden;
}

.community .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.community-content {
  width: 50%;
}

.community-content .section-title {
  text-align: left;
}

.community-content .section-title::after {
  left: 0;
  transform: none;
}

.community-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.community-image {
  width: 45%;
}

/* Partners Section */
.partners {
  background-color: #fff;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.partner-logo {
  flex: 0 0 calc(20% - 3rem);
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--tertiary-color);
  color: var(--light-text);
  padding: 3rem 0;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
}

.newsletter-form button {
  border-radius: 0 50px 50px 0;
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin: 1rem 0;
  opacity: 0.8;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: var(--light-text);
}

.footer-logo img {
  margin-right: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gradient);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
}

/* Icons for Social Media */
.icon-facebook::before,
.icon-twitter::before,
.icon-instagram::before,
.icon-youtube::before,
.icon-discord::before {
  font-size: 1.25rem;
}

.icon-facebook::before { content: '󰈌'; }
.icon-twitter::before { content: '󰕄'; }
.icon-instagram::before { content: '󰋾'; }
.icon-youtube::before { content: '󰗃'; }
.icon-discord::before { content: '󰙯'; }

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

@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero .container, 
  .community .container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-content, 
  .hero-image, 
  .community-content, 
  .community-image {
    width: 100%;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 1rem 0;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .games-grid,
  .news-grid,
  .sites-grid {
    grid-template-columns: 1fr;
  }
  
  .community-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    border-radius: 50px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .partner-logo {
    flex: 0 0 calc(50% - 3rem);
  }
}
