/* St. Louis Furniture & Mattress Authority - Main Stylesheet */

/* CSS Variables */
:root {
  --primary-color: #16a34a;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--bg-white);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 3rem;
  border-radius: 12px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: #15803d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

/* Product Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-card-content {
  padding: 1.5rem;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.category-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Gamification Elements */
.gamification-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-white);
  padding: 4rem 0;
  text-align: center;
}

.gamification-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gamification-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
}

.gamification-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.gamification-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.gamification-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

/* Floating Share Button */
.floating-share {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floating-share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-share-btn:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--bg-white);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-share {
    display: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

/* Interactive Quiz & Calculator Styles */
.interactive-widget {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.interactive-widget h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.quiz-option {
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background-color: rgba(22, 163, 74, 0.05);
}

.quiz-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(22, 163, 74, 0.1);
}

/* Level Up Progress Bar */
.level-progress {
  background-color: var(--bg-light);
  border-radius: 20px;
  height: 30px;
  overflow: hidden;
  margin: 1rem 0;
}

.level-progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  height: 100%;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Scratch Card Game */
.scratch-card-game {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--text-dark);
}

.scratch-card-game h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.coin-display {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
}

.play-btn {
  background-color: var(--bg-white);
  color: var(--accent-color);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}



/* SitNSleep v8.1 visibility and domain hardening */
.hero-content,
.gamification-section,
.gamification-card,
.footer,
.floating-share-btn,
.btn-primary,
.btn-secondary,
.level-progress-bar,
.scratch-card-game,
.quick-answer {
  color: #fff !important;
}
.header,
.category-card,
.category-card-content,
.interactive-widget,
.quiz-option,
.share-btn,
section[style*="background-color: var(--bg-light)"] {
  color: #1a1a1a !important;
}
.btn-primary,
.btn-secondary {
  min-height: 44px;
}
.quick-answer {
  background: #174a2a !important;
  border-left: 4px solid #f59e0b !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  margin: 1rem 0 !important;
}
.last-updated,
.reviewed-by {
  color: #374151 !important;
  font-size: 0.95rem;
}
