/* Landing Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Language Selector */
.lang-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 5px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 20px;
}

.lang-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: #4a9eff;
  color: #fff;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-board {
  flex-shrink: 0;
}

.hero-board canvas {
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-text {
  max-width: 500px;
}

.title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 0%, #4a9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.3rem;
  color: #4a9eff;
  margin-bottom: 20px;
  font-weight: 500;
}

.description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 30px;
}

.play-btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #4a9eff 0%, #0066cc 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(74, 158, 255, 0.4);
}

.play-btn.large {
  padding: 18px 50px;
  font-size: 1.2rem;
}

/* Features Section */
.features {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.2);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 158, 255, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.6;
}

/* How to Play Section */
.how-to-play {
  padding: 80px 20px;
}

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

.rule {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 4px solid #4a9eff;
}

.rule-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4a9eff 0%, #0066cc 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rule-content h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.rule-content p {
  font-size: 1rem;
  color: #888;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 30px;
}

/* Footer */
.footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  color: #666;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 15px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #4a9eff;
}

.footer-links .divider {
  color: #444;
  margin: 0 15px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-content h2 {
  padding: 25px 30px 15px;
  font-size: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 25px 30px;
}

.modal-body h3 {
  font-size: 1.1rem;
  color: #4a9eff;
  margin: 20px 0 10px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
}

/* Delete Account Steps */
.modal-body .steps {
  margin: 20px 0;
}

.modal-body .step {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.modal-body .step-number {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #4a9eff 0%, #0066cc 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body .step p {
  margin: 0;
}

.modal-body .warning {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 10px;
  color: #ff8888;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-board canvas {
    width: 250px;
    height: 250px;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .description {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .lang-selector {
    top: 10px;
    right: 10px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 80px 20px 40px;
  }

  .hero-board canvas {
    width: 200px;
    height: 200px;
  }

  .title {
    font-size: 2rem;
  }

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

  .features-grid {
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .rule {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .play-btn {
    padding: 12px 30px;
  }

  .play-btn.large {
    padding: 14px 35px;
  }

  /* Modal responsive */
  .modal {
    padding: 10px;
  }

  .modal-content {
    max-height: 90vh;
  }

  .modal-content h2 {
    padding: 20px 20px 12px;
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-body .step {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
