@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css');

:root {
  --primary-color: #E2C666;
  --secondary-color: #000000;
  --third-color: #111111;
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --accent-primary: #CD9F36;
}

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

p {
  margin-bottom: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Ubuntu', sans-serif;
  background-color: #0f0f0f;
  color: #e5e5e5;
  line-height: 1.8;
  min-height: 100vh;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  transition: color 0.3s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: cover;
  object-position: center;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.navbar {
  background-color: #0a0a0a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #1a1a1a;
  position: relative;
}

.navbar .logo img {
  height: 50px;
  align-items: center;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.navbar-menu li a:hover {
  color: var(--primary-color);
}

/* Hide mobile auth buttons on desktop */
.navbar-menu li.mobile-auth-buttons {
  display: none;
}

.navbar .auth-buttons {
  display: flex;
  gap: 10px;
}

.btn-login {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 2px solid #ffffff;
}

.btn-register {
  background-color: var(--accent-primary);
  color: #ffffff;
  border: 2px solid var(--accent-primary);
}

.btn-login:hover {
  background-color: transparent;
  color: #ffffff;
}

.btn-register:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background-color: #1a1a1a;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #b8b8b8;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: #666;
}

.breadcrumb a {
  color: #e5e5e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.breadcrumb span {
  color: #b8b8b8;
}

.hero {
  position: relative;
  padding: 80px 60px;
  margin: 40px 0;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #151515 100%);
  border-radius: 24px;
  border: 2px solid #2a2a2a;
  overflow: hidden;
  text-align: center;
}

.hero-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(205, 159, 54, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(226, 198, 102, 0.08) 0%, transparent 50%);
  opacity: 0.6;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.125rem;
  color: #b8b8b8;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.85;
}

.table-of-contents {
  margin: 40px 0;
  padding: 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
  border-radius: 16px;
  border: 1px solid #252525;
}

.toc-container {
  max-width: 900px;
  margin: 0 auto;
}

.toc-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e5e5e5;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  padding-left: 50px;
}

.toc-list a::before {
  content: '→';
  position: absolute;
  left: 20px;
  color: var(--accent-primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.toc-list a:hover {
  background: rgba(205, 159, 54, 0.1);
  border-color: rgba(205, 159, 54, 0.3);
  color: #ffffff;
  transform: translateX(5px);
}

.toc-list a:hover::before {
  transform: translateX(3px);
}

.game-categories {
  margin: 60px 0;
  padding: 60px 40px;
  background-color: #151515;
  border-radius: 20px;
  border: 1px solid #252525;
}

.categories-header {
  text-align: center;
  margin-bottom: 50px;
}

.categories-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-description {
  font-size: 1.0625rem;
  color: #b8b8b8;
  line-height: 1.85;
  max-width: 750px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.category-card {
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  transition: all 0.4s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: rgba(205, 159, 54, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.category-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.category-content {
  padding: 28px;
}

.category-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(205, 159, 54, 0.2) 0%, rgba(226, 198, 102, 0.15) 100%);
  border-radius: 12px;
  border: 1px solid rgba(205, 159, 54, 0.3);
}

.category-icon i {
  font-size: 2rem;
  color: var(--accent-primary);
}

.category-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.category-content > p {
  font-size: 1rem;
  color: #b8b8b8;
  line-height: 1.75;
  margin-bottom: 20px;
}

.category-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #b8b8b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-link {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--primary-color) 100%);
  color: #0f0f0f;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(205, 159, 54, 0.2);
}

.category-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(205, 159, 54, 0.3);
  color: #0f0f0f;
}

.featured-games {
  margin: 60px 0;
  padding: 60px 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
  border-radius: 20px;
  border: 1px solid #252525;
}

.featured-games-header {
  text-align: center;
  margin-bottom: 50px;
}

.featured-games-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.games-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.game-showcase-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  transition: all 0.4s ease;
}

.game-showcase-card:hover {
  transform: translateY(-8px);
  border-color: rgba(205, 159, 54, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.game-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.game-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.rtp-badge {
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(205, 159, 54, 0.5);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  backdrop-filter: blur(10px);
}

.game-info {
  padding: 24px;
}

.game-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.game-info p {
  font-size: 0.95rem;
  color: #b8b8b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

.game-play-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--primary-color) 100%);
  color: #0f0f0f;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(205, 159, 54, 0.2);
}

.game-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(205, 159, 54, 0.3);
  color: #0f0f0f;
}

.live-players {
  margin: 60px 0;
  padding: 60px 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
  border-radius: 20px;
  border: 1px solid #252525;
}

.live-players-header {
  text-align: center;
  margin-bottom: 50px;
}

.live-players-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.live-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.live-feed::-webkit-scrollbar {
  width: 6px;
}

.live-feed::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

.live-feed::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

.live-feed-item {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.live-feed-item:hover {
  border-color: rgba(205, 159, 54, 0.4);
  background: rgba(255, 255, 255, 0.02);
  transform: translateX(5px);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff6b6b;
  flex-shrink: 0;
}

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

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

.live-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-player-info i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.player-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.live-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-text {
  font-size: 0.9rem;
  color: #b8b8b8;
}

.prize-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(226, 198, 102, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(226, 198, 102, 0.3);
}

.live-game {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #b8b8b8;
}

.live-game i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.live-time {
  font-size: 0.8rem;
  color: #666666;
  flex-shrink: 0;
  min-width: 70px;
  text-align: right;
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.live-stat-item {
  background: #1a1a1a;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.live-stat-item:hover {
  border-color: rgba(205, 159, 54, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(205, 159, 54, 0.2) 0%, rgba(226, 198, 102, 0.15) 100%);
  border-radius: 16px;
  border: 1px solid rgba(205, 159, 54, 0.3);
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: #b8b8b8;
}

.game-features {
  margin: 60px 0;
  padding: 60px 40px;
  background-color: #151515;
  border-radius: 20px;
  border: 1px solid #252525;
}

.game-features-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.game-features-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(205, 159, 54, 0.08);
  border-color: rgba(205, 159, 54, 0.3);
  transform: translateX(5px);
}

.feature-item i {
  flex-shrink: 0;
  font-size: 2rem;
  color: var(--accent-primary);
  margin-top: 4px;
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.feature-item p {
  font-size: 0.95rem;
  color: #b8b8b8;
  line-height: 1.7;
  margin: 0;
}

.game-features-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #2a2a2a;
}

.game-features-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.footer {
  background-color: #0a0a0a;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid #1a1a1a;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  height: 50px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  color: #cccccc;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-copy p {
  font-size: 0.85rem;
  color: #cccccc;
  text-align: center;
}

.footer-copy a {
  color: var(--accent-primary);
}

@media (max-width: 1024px) {
  .navbar {
    padding: 20px 40px;
    flex-wrap: wrap;
  }

  .game-features-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #0a0a0a;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    border-left: 1px solid #1a1a1a;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-menu li {
    width: 100%;
    border-bottom: 1px solid #1a1a1a;
  }

  .navbar-menu li a {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 1.1rem;
    color: #e5e5e5;
  }

  .navbar-menu li a:hover {
    color: var(--primary-color);
    background-color: transparent;
  }

  .navbar .auth-buttons {
    display: none;
  }

  /* Mobile Auth Buttons - Show on mobile only */
  .navbar-menu li.mobile-auth-buttons {
    display: block;
    border-bottom: none;
    padding: 20px 0;
    margin-top: 10px;
    border-top: 2px solid #1a1a1a;
  }

  .navbar-menu li.mobile-auth-buttons a {
    display: inline-block;
    width: calc(50% - 5px);
    margin: 0;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .navbar-menu li.mobile-auth-buttons a:first-child {
    margin-right: 10px;
  }

  .navbar-menu li.mobile-auth-buttons a.btn-login {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #ffffff;
  }

  .navbar-menu li.mobile-auth-buttons a.btn-login:hover {
    background-color: transparent;
    color: #ffffff;
  }

  .navbar-menu li.mobile-auth-buttons a.btn-register {
    background-color: var(--accent-primary);
    color: #ffffff;
    border: 2px solid var(--accent-primary);
  }

  .navbar-menu li.mobile-auth-buttons a.btn-register:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }

  /* Mobile menu overlay */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .hero {
    padding: 50px 30px;
  }

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

  .game-categories,
  .featured-games,
  .live-players,
  .game-features {
    padding: 40px 20px;
  }

  .categories-grid,
  .games-showcase {
    grid-template-columns: 1fr;
  }

  .live-feed {
    max-height: 500px;
  }

  .live-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 20px;
  }

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

  .game-categories,
  .featured-games,
  .live-players,
  .game-features {
    padding: 30px 15px;
  }

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

