/* Base Styles */
:root, [data-theme="light"] {
  /* Cores principais */
  --primary-color: #36526B;
  --secondary-color: #4A6C53;
  --accent-color: #E8A645;
  
  /* Cores de texto e fundo */
  --text-color: #333333;
  --bg-color: #ffffff;
  --card-bg: #f5f5f5;
  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Fontes */
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Cores de botões */
  --btn-bg: #36526B;
  --btn-text: #ffffff;
  --btn-hover: #4A6C53;
  
  /* Cores de toggle */
  --toggle-bg: #E8A645;
  --toggle-icon: #ffffff;
  --toggle-shadow: rgba(0, 0, 0, 0.2);
}

/* Dark Theme */
[data-theme="dark"] {
  /* Cores principais */
  --primary-color: #4A6C53;
  --secondary-color: #36526B;
  --accent-color: #E8A645;
  
  /* Cores de texto e fundo */
  --text-color: #f5f5f5;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --header-bg: rgba(18, 18, 18, 0.95);
  --footer-bg: #1e1e1e;
  --border-color: #333333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  
  /* Cores de botões */
  --btn-bg: #4A6C53;
  --btn-text: #ffffff;
  --btn-hover: #36526B;
  
  /* Cores de toggle */
  --toggle-bg: #36526B;
  --toggle-icon: #E8A645;
  --toggle-shadow: rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-weight: 600;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-actions > * {
  margin-left: 1.5rem;
}

/* Theme Toggle Button */
#theme-toggle {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

#theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

#theme-toggle .light-icon,
#theme-toggle .dark-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.dark-mode #theme-toggle {
  background: rgba(255, 255, 255, 0.1);
}

.light-mode #theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  max-width: 600px;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: left;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #e68a00;
  color: white;
  transform: translateY(-3px);
}

/* Featured Products */
.featured-products {
  padding: 5rem 0;
}

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

.product-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-description {
  color: #666;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: var(--secondary-color);
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background-color: var(--card-bg);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow-color);
  margin: 1rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

/* Community Section */
.community {
  padding: 5rem 0;
}

.community-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.signup-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto;
}

.signup-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.signup-form button {
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.signup-form button:hover {
  background-color: var(--secondary-color);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

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

.footer-column h3 {
  margin-bottom: 1rem;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
  }
  
  .main-nav {
    margin: 1rem 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 0.5rem 0;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .signup-form {
    flex-direction: column;
  }
  
  .signup-form input {
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  .signup-form button {
    border-radius: 4px;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--toggle-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--toggle-shadow);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 100;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--toggle-shadow);
}

.theme-toggle.clicked {
  transform: scale(0.9);
}

.theme-toggle-icon {
  color: var(--toggle-icon);
  transition: transform 0.5s ease;
}

.theme-toggle:hover .theme-toggle-icon {
  transform: rotate(45deg);
}

/* Cinematic Theme Transition */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.theme-transition-overlay.active {
  opacity: 1;
}

/* Video Background for Hero Section */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.hero-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Cinematic Button Styles */
.btn-cinematic {
  position: relative;
  overflow: hidden;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
  cursor: pointer;
}

.btn-cinematic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-cinematic:hover {
  background-color: var(--btn-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.btn-cinematic:hover::before {
  left: 100%;
}
