/* Dark Mode Styles */
body.dark-mode,
body.dark-theme {
  --text-color: #f5f5f5;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --header-bg: #1a1a1a;
  --footer-bg: #1a1a1a;
  --border-color: #333333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  background-color: #121212;
  color: #f5f5f5;
}

/* Light Mode Styles */
body.light-theme {
  --text-color: #333333;
  --bg-color: #ffffff;
  --card-bg: #f8f9fa;
  --header-bg: #ffffff;
  --footer-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #333333;
}

/* Theme Toggle Button - Cinematic Style */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-color-secondary);
}

.theme-toggle:active {
  transform: scale(0.95);
}

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

.theme-toggle-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

/* Theme specific adjustments */
body.light-theme .theme-toggle-icon svg {
  transform: rotate(45deg);
}

body.dark-theme .theme-toggle-icon svg,
body.dark-mode .theme-toggle-icon svg {
  transform: rotate(0deg);
}

body.light-theme .dark-icon {
  display: none;
}

body.dark-theme .light-icon,
body.dark-mode .light-icon {
  display: none;
}

/* Header adjustments for light theme */
body.light-theme .site-header {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333333;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .site-header .main-logo {
  filter: brightness(0.8);
}

body.light-theme .nav-link {
  color: #333333 !important;
}

body.light-theme .nav-link:hover {
  color: #f59e0b !important;
}

body.light-theme .slogan {
  color: #666666;
}

/* Hero section adjustments */
body.light-theme .hero-title {
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

body.light-theme .hero-subtitle {
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

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

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

/* Dark Mode Specific Adjustments */
body.dark-mode .product-card,
body.dark-theme .product-card {
  background-color: #252525;
}

body.dark-mode .testimonial,
body.dark-theme .testimonial {
  background-color: #252525;
}

body.dark-mode .product-description,
body.dark-theme .product-description {
  color: #b0b0b0;
}

body.dark-mode .site-header,
body.dark-theme .site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .footer-bottom,
body.dark-theme .footer-bottom {
  border-top: 1px solid #333333;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
  background-color: #333;
  color: #f5f5f5;
  border-color: #444;
}

/* Light Mode Specific Adjustments */
body.light-theme .product-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

body.light-theme .testimonial {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
}

body.light-theme .product-description {
  color: #666666;
}

body.light-theme .footer-bottom {
  border-top: 1px solid #e0e0e0;
}

body.light-theme input,
body.light-theme textarea,
body.light-theme select {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

/* Transition Effects */
body,
a,
button,
input,
.product-card,
.testimonial,
.site-header,
.site-footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
