/* SERP Games Branding CSS - Matches main site design */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --sg-primary: #00dc82;
  --sg-primary-dark: #00c16a;
  --sg-border: #e5e7eb;
  --sg-border-dark: #374151;
  --sg-text: #111827;
  --sg-text-muted: #6b7280;
  --sg-text-dark: #f9fafb;
  --sg-text-muted-dark: #9ca3af;
  --sg-bg-light: #ffffff;
  --sg-bg-dark: #111827;
}

/* Header Styles */
.sg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--sg-bg-light);
  border-bottom: 1px solid var(--sg-border);
  z-index: 1000;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

.sg-logo:hover {
  color: var(--sg-primary-dark);
}

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

.sg-nav a {
  color: var(--sg-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.sg-nav a:hover {
  background-color: #f3f4f6;
}

.sg-play-more {
  background-color: var(--sg-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.sg-play-more:hover {
  background-color: var(--sg-primary-dark);
}

/* Footer Styles */
.sg-footer {
  background-color: var(--sg-bg-light);
  border-top: 1px solid var(--sg-border);
  margin-top: auto;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.sg-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.sg-footer-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--sg-text);
}

.sg-footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sg-footer-section li {
  margin-bottom: 0.25rem;
}

.sg-footer-section a {
  color: var(--sg-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.sg-footer-bottom {
  border-top: 1px solid var(--sg-border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--sg-text-muted);
}

.sg-footer-bottom a {
  color: var(--sg-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sg-footer-bottom a:hover {
  color: var(--sg-primary);
}

/* Game Container Adjustment */
.sg-game-container {
  padding-top: 80px; /* Space for fixed header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sg-header {
    background-color: var(--sg-bg-dark);
    border-bottom-color: var(--sg-border-dark);
  }
  
  .sg-nav a {
    color: var(--sg-text-dark);
  }
  
  .sg-nav a:hover {
    background-color: #1f2937;
  }
  
  .sg-footer {
    background-color: var(--sg-bg-dark);
    border-top-color: var(--sg-border-dark);
  }
  
  .sg-footer-section h3 {
    color: var(--sg-text-dark);
  }
  
  .sg-footer-section a {
    color: var(--sg-text-muted-dark);
  }
  
  .sg-footer-bottom {
    border-top-color: var(--sg-border-dark);
    color: var(--sg-text-muted-dark);
  }
  
  .sg-footer-bottom a {
    color: var(--sg-text-muted-dark);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sg-nav {
    display: none;
  }
  
  .sg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sg-footer-grid {
    grid-template-columns: 1fr;
  }
}