/* Web3 Gaming Vietnam - CSS Design System */

:root {
  /* Colors */
  --primary-dark: #0a0e27;
  --secondary-dark: #1a1f3a;
  --tertiary-dark: #252b48;
  --neon-green: #00ff88;
  --neon-purple: #b84bff;
  --neon-pink: #ff006e;
  --neon-cyan: #00d9ff;
  --text-primary: #ffffff;
  --text-secondary: #b0b8c8;
  --border-color: #2d3454;
  --success: #00ff88;
  --warning: #ffa500;
  --error: #ff006e;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;

  /* Borders and Shadows */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow-sm: 0 2px 8px rgba(0, 255, 136, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 255, 136, 0.15);
  --shadow-lg: 0 8px 32px rgba(184, 75, 255, 0.2);

  /* Transitions */
  --transition-fast: 200ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--neon-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--neon-cyan);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header & Navigation */
header {
  background-color: rgba(10, 14, 39, 0.95);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-green);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-green);
  animation: slideIn 300ms ease-out;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neon-green);
  font-size: var(--font-size-xl);
}

/* Footer */
footer {
  background-color: var(--secondary-dark);
  border-top: 2px solid var(--border-color);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto var(--spacing-2xl);
}

.footer-section h4 {
  color: var(--neon-green);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--text-secondary);
}

.footer-section a:hover {
  color: var(--neon-green);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  color: var(--neon-green);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--neon-green);
  color: var(--primary-dark);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.footer-disclaimer {
  color: var(--neon-pink);
  margin-top: var(--spacing-md);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 2px solid var(--neon-green);
  background-color: transparent;
  color: var(--neon-green);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: var(--neon-green);
  color: var(--primary-dark);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

.btn-secondary:hover {
  background-color: var(--neon-purple);
  color: var(--primary-dark);
  box-shadow: 0 0 20px rgba(184, 75, 255, 0.4);
}

.btn-filled {
  background-color: var(--neon-green);
  color: var(--primary-dark);
  border-color: var(--neon-green);
}

.btn-filled:hover {
  background-color: transparent;
  color: var(--neon-green);
}

/* Cards */
.card {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--neon-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.card-badge {
  display: inline-block;
  background-color: var(--neon-green);
  color: var(--primary-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.card-badge.secondary {
  background-color: var(--neon-purple);
}

.card-badge.warning {
  background-color: var(--warning);
}

/* Sections */
section {
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-purple), transparent);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(184, 75, 255, 0.05));
  border-bottom: 2px solid var(--neon-green);
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 75, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: var(--font-size-4xl);
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 800ms ease-out;
}

.hero p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 800ms ease-out 200ms backwards;
}

.hero .btn {
  animation: fadeInUp 800ms ease-out 400ms backwards;
}

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

/* Game Showcase Cards */
.game-card {
  background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark));
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left var(--transition-normal);
}

.game-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  transform: translateY(-10px);
}

.game-card:hover::before {
  left: 100%;
}

.game-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-category {
  display: inline-block;
  color: var(--neon-cyan);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.game-title {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.game-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.game-rating {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.star {
  color: var(--neon-green);
  font-size: var(--font-size-sm);
}

.star.empty {
  color: var(--border-color);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--neon-green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--secondary-dark);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-dark);
  border-top: 2px solid var(--neon-green);
  padding: var(--spacing-lg);
  z-index: 999;
  animation: slideUp 400ms ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: var(--spacing-lg);
}

.cookie-text {
  flex: 1;
  font-size: var(--font-size-sm);
}

.cookie-text a {
  color: var(--neon-cyan);
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-md);
}

/* Badge */
.badge {
  display: inline-block;
  background-color: var(--neon-green);
  color: var(--primary-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  margin-right: var(--spacing-sm);
}

.badge.secondary {
  background-color: var(--neon-purple);
}

.badge.info {
  background-color: var(--neon-cyan);
  color: var(--primary-dark);
}

/* Article Card */
.article-card {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.article-card:hover {
  border-color: var(--neon-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.article-header {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(184, 75, 255, 0.1));
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-category {
  color: var(--neon-cyan);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.article-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
}

.article-body {
  padding: var(--spacing-lg);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.article-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.article-read-more {
  display: inline-block;
  color: var(--neon-green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
  transition: all var(--transition-fast);
}

.article-read-more:hover {
  color: var(--neon-cyan);
  margin-right: -5px;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 217, 255, 0.1));
  border-left: 4px solid var(--neon-green);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
}

.highlight-box.warning {
  border-left-color: var(--warning);
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 165, 0, 0.05));
}

.highlight-box.error {
  border-left-color: var(--neon-pink);
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(255, 0, 110, 0.05));
}

.highlight-box h4 {
  color: var(--neon-green);
}

.highlight-box.warning h4 {
  color: var(--warning);
}

.highlight-box.error h4 {
  color: var(--neon-pink);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
}

thead {
  background-color: var(--secondary-dark);
  border-bottom: 2px solid var(--neon-green);
}

th, td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  color: var(--neon-green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
}

tbody tr:hover {
  background-color: var(--secondary-dark);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--secondary-dark);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--neon-green);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--neon-green);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }

  h3 {
    font-size: var(--font-size-lg);
  }

  nav {
    padding: var(--spacing-md);
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--secondary-dark);
    border-bottom: 2px solid var(--border-color);
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    border-radius: 0;
  }

  section {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .hero {
    min-height: 400px;
  }

  .hero h1 {
    font-size: var(--font-size-2xl);
  }

  .cookie-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

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

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

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

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

  .hero::before,
  .hero::after {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --font-size-3xl: 1.75rem;
    --font-size-4xl: 2rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  .section-title::after {
    width: 50%;
    margin: 0 auto;
  }

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

/* Animations */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
  }
}

.glow {
  animation: glow 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Selection */
::selection {
  background-color: var(--neon-green);
  color: var(--primary-dark);
}
