/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #8B5CF6;
  --primary-hover: #7C3AED;
  --text-white: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.8);
  --text-dark: #333333;
  --text-gray: #666666;
  --bg-light: #FFFFFF;
  --bg-dark: #F7F7F7;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.2);
  --wordle-green: #6AAA64;
  --wordle-yellow: #C9B458;
  --wordle-gray: #787C7E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.mobile-only {
  display: block;
  font-size: 25px;
}

.desktop-only {
  display: none;
  font-size: 40px;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Header styles */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: transparent;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 1200px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
  padding-left: .5rem;
}

.desktop-menu {
  display: none;
}

.nav-link, .mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-link:hover, .mobile-nav-link:hover {
  color: var(--text-white);
}

.icon {
  width: 1rem;
  height: 1rem;
}

.mobile-menu-button {
  color: var(--text-white);
  padding-right: 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.show {
  display: block;
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.language-dropdown, .mobile-language-dropdown {
  position: relative;
}

.language-button, .mobile-language-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

.language-button:hover, .mobile-language-button:hover {
  color: var(--text-white);
}

.flag {
  border-radius: 0.125rem;
}

.chevron {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
  min-width: 1rem;
}

.language-menu, .mobile-language-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 150px;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
  z-index: 100;
}

.language-menu.show, .mobile-language-menu.show {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  color: var(--text-white);
  transition: background-color 0.2s;
  border-radius: 0.25rem;
}

.language-option:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.language-option.active {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .nav-container {
    padding: 0 2rem;
  }
  
  .logo {
    padding-left: 0;
  }
  
  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .mobile-menu-button {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* Hero section styles */
.hero-section {
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--text-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('https://woordlenederlands.nl/bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.hero-text {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 15px;
  color: #ffffffe6;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.game-container {
  margin-top: 1.5rem;
  background-color: white;
  border-radius: 0.75rem;
  padding: 0.375rem;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s;
}

.game-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 0.5rem;
  z-index: 1;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 0.5rem;
  background-color: white;
  position: relative;
  z-index: 2;
}

.fullscreen-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 9999px;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s;
  z-index: 3;
}

.fullscreen-button:hover {
  background-color: black;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .game-iframe {
    height: 700px;
  }
}

/* Info section styles */
.info-section {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, white, #f9fafb);
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.info-text {
  margin-bottom: 1rem;
  color: #4b5563;
}

.info-subheading {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.info-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.info-list li {
  margin-bottom: 0.75rem;
}

.color-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.color-box {
  border-radius: 0.5rem;
  padding: 1rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.color-box.green {
  background-color: var(--wordle-green);
}

.color-box.yellow {
  background-color: var(--wordle-yellow);
}

.color-box.gray {
  background-color: var(--wordle-gray);
}

.color-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .info-card {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
  }
  
  .color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tips section styles */
.tips-section {
  padding: 4rem 1.5rem;
  position: relative;
  color: var(--text-white);
}

.tips-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('https://woordlenederlands.nl/bg.jpg');
  background-size: cover;
  background-position: center;
}

.tips-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.tips-container {
  max-width: 1024px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.tips-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.tips-list {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
}

.check-icon {
  color: var(--primary);
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.highlight {
  color: var(--primary);
}

.cta-container {
  margin-top: 2.5rem;
  text-align: center;
}

.cta-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cta-button {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--primary-hover);
}

@media (min-width: 768px) {
  .tips-heading {
    font-size: 1.875rem;
  }
}

/* Features section styles */
.features-section {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, white, #f9fafb);
}

.features-container {
  max-width: 1024px;
  margin: 0 auto;
}

.features-heading {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.features-description {
  text-align: center;
  color: #4b5563;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon-container {
  background-color: rgba(139, 92, 246, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  margin-bottom: 1rem;
}

.feature-icon {
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #4b5563;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer styles */
.footer {
  position: relative;
  color: var(--text-white);
}

.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('https://woordlenederlands.nl/bg.jpg');
  background-size: cover;
  background-position: center;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.footer-container {
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-text {
  color: #9ca3af;
}
