/* SnowGrove247 - Light Theme Design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2E8B57;
  --secondary-color: #3CB371;
  --accent-color: #FFD700;
  --light-green: #98FB98;
  --dark-green: #006400;
  --text-dark: #2F4F4F;
  --text-light: #FFFFFF;
  --bg-light: #F0FFF0;
  --bg-white: #FFFFFF;
  --shadow-light: rgba(0, 100, 0, 0.1);
  --shadow-medium: rgba(0, 100, 0, 0.2);
  --border-light: rgba(46, 139, 87, 0.2);
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  gap: 0.5rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav a:hover,
.nav a.active {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 2px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  background: url('herobg.jpg') center/cover no-repeat;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* stronger dull overlay for improved contrast */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-medium);
  background: var(--dark-green);
}

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

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

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* Notice/Disclaimer */
.disclaimer-section {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 15px;
  margin: 2rem 0;
}

.notice {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--light-green) 100%);
  border-radius: 13px;
}

.notice-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Game Section */
.game-section {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 3rem 0;
  margin: 2rem 0;
  box-shadow: 0 8px 30px var(--shadow-light);
}

.game-container {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 2px solid var(--border-light);
}

.game-iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

/* About Section */
.about {
  background: var(--bg-white);
  border-radius: 20px;
  margin: 2rem 0;
  padding: 3rem;
  box-shadow: 0 8px 30px var(--shadow-light);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-wrapper.centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 25px var(--shadow-light);
}

/* Features */
.features {
  padding: 4rem 0;
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-medium);
  border-color: var(--primary-color);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 2px solid var(--border-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer - Redesigned */
.footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.footer-main {
  padding: 4rem 0 2rem;
  background: rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

.footer-brand .brand img {
  width: 40px;
  height: 40px;
  filter: brightness(1.1);
}

.footer-description {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  position: relative;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-nav a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover::before {
  opacity: 1;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  margin: 2rem 0;
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-disclaimer::before {
  content: '⚠';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--accent-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid var(--accent-color);
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  background: var(--text-dark);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom strong {
  color: var(--accent-color);
  opacity: 1;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.popup.show {
  display: flex;
}

.popup-content {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 3rem;
  max-width: 500px;
  margin: 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--primary-color);
}

.popup-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.popup-text {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.popup-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Legal Pages */
.legal-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 120px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.legal-content {
  padding: 4rem 0;
}

.legal-document {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 2px solid var(--border-light);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.legal-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.legal-footer {
  border-top: 2px solid var(--border-light);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 20px var(--shadow-light);
    border-top: 2px solid var(--primary-color);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 1rem 2rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav a::before {
    display: none;
  }

  .footer-nav a:hover {
    transform: none;
  }

  .popup-content {
    margin: 1rem;
    padding: 2rem;
  }

  .popup-actions {
    flex-direction: column;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .page-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .game-iframe {
    height: 400px;
  }

  .legal-document {
    padding: 2rem;
  }
}

/* Utility Classes */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}