/* Timber Social Games - Main Stylesheet */

/* CSS Variables for Timber Theme */
:root {
  --timber-brown-dark: #3a2b1d;
  --timber-brown-medium: #5d4e37;
  --timber-brown-light: #8b7355;
  --forest-green-dark: #1a4d3a;
  --forest-green-medium: #2d6a4f;
  --forest-green-light: #52b788;
  --accent-red: #d2601a;
  --accent-orange: #f77f00;
  --cream: #f8f5f0;
  --wood-grain: linear-gradient(45deg, #8b7355 25%, transparent 25%, transparent 75%, #8b7355 75%, #8b7355), 
                linear-gradient(45deg, #8b7355 25%, transparent 25%, transparent 75%, #8b7355 75%, #8b7355);
  --box-shadow-timber: 0 4px 12px rgba(58, 43, 29, 0.3);
  --border-radius: 8px;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: linear-gradient(135deg, var(--cream) 0%, #f0ebdf 100%);
  color: var(--timber-brown-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Impact', 'Arial Black', sans-serif;
  color: var(--timber-brown-dark);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, var(--timber-brown-dark) 0%, var(--timber-brown-medium) 100%);
  padding: 1rem 0;
  box-shadow: var(--box-shadow-timber);
  border-bottom: 4px solid var(--accent-red);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
  position: relative;
}

.logo::before {
  content: "🪓";
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {
  .nav-links {
    position: relative !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    flex-direction: row !important;
  }
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
}

.nav-links a:hover {
  background: var(--accent-red);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.nav-links a.active {
  background: var(--accent-red);
  border-color: var(--accent-orange);
}

/* RESPONSIVE NAVBAR WITHOUT HAMBURGER */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
  
  .logo {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .nav-links li {
    flex: 0 1 auto;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(58, 43, 29, 0.8), rgba(58, 43, 29, 0.8)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0 0h100v100H0z" fill="%23f8f5f0"/><path d="M0 0l50 50L0 100zm100 0v100l-50-50z" fill="%238b7355" opacity="0.1"/></svg>');
  background-size: 100px 100px, cover;
  color: var(--cream);
  text-align: center;
  padding: 6rem 2rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  color: var(--cream);
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--accent-orange);
  font-weight: bold;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-red), var(--accent-orange));
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-timber);
  transition: all 0.3s ease;
  border: 3px solid var(--cream);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(210, 96, 26, 0.4);
  background: linear-gradient(45deg, var(--accent-orange), var(--accent-red));
}

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

.section {
  padding: 4rem 0;
}

/* Game Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background: var(--cream);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-timber);
  border: 3px solid var(--timber-brown-light);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-red));
}

.game-card:hover {
  box-shadow: 0 6px 20px rgba(58, 43, 29, 0.3);
  border-color: var(--accent-red);
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--timber-brown-dark);
}

.game-description {
  color: var(--timber-brown-medium);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.game-rating {
  color: var(--accent-orange);
  font-weight: bold;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--forest-green-light);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.play-button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(45deg, var(--forest-green-dark), var(--forest-green-medium));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-button:hover {
  background: linear-gradient(45deg, var(--forest-green-medium), var(--forest-green-light));
  transform: translateY(-2px);
}

/* Age Verification Component */
.age-verification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--timber-brown-dark);
  color: var(--cream);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-timber);
  max-width: 300px;
  z-index: 1000;
  border: 2px solid var(--accent-red);
}

.age-verification.hidden {
  display: none;
}

.age-verification h4 {
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.age-verification p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.age-buttons {
  display: flex;
  gap: 0.5rem;
}

.age-button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.age-button.yes {
  background: var(--forest-green-medium);
  color: white;
}

.age-button.no {
  background: var(--accent-red);
  color: white;
}

.age-button:hover {
  transform: translateY(-2px);
}

/* Cookie Consent Component */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--forest-green-dark);
  color: var(--cream);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-timber);
  max-width: 350px;
  z-index: 1000;
  border: 2px solid var(--forest-green-light);
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-button.accept {
  background: var(--accent-orange);
  color: white;
}

.cookie-button.decline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.cookie-button:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--timber-brown-dark);
  color: var(--cream);
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.disclaimer {
  background: var(--timber-brown-medium);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border: 2px solid var(--accent-red);
}

.disclaimer h4 {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.disclaimer p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Game Detail Page */
.game-detail {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.game-iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-timber);
}

.back-button {
  display: inline-block;
  background: var(--timber-brown-medium);
  color: var(--cream);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: var(--timber-brown-dark);
  transform: translateY(-2px);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-timber);
  margin-top: 2rem;
}

.legal-content h2 {
  border-bottom: 3px solid var(--accent-red);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.legal-content h3 {
  color: var(--timber-brown-medium);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p, .legal-content li {
  margin-bottom: 1rem;
  color: var(--timber-brown-dark);
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
  
  .logo {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .nav-links li {
    flex: 0 1 auto;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
  
  .hero {
    padding: 3rem 1rem;
    min-height: 50vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }
  
  .nav-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 0 0.5rem;
  }
}
