/* Base styles */
:root {
  /* Light theme (default) */
  --background-color: #ffffff;
  --text-color: #333333;
  --secondary-color: #666666;
  --primary-color: #3b82f6;
  --card-bg-color: #f9fafb;
  --border-color: #e5e7eb;
  --header-bg: rgba(255, 255, 255, 0.8);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  /* Dark theme */
  --background-color: #121212;
  --text-color: #f1f1f1;
  --secondary-color: #a1a1a1;
  --primary-color: #60a5fa;
  --card-bg-color: #1e1e1e;
  --border-color: #333333;
  --header-bg: rgba(30, 30, 30, 0.8);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: var(--background-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px var(--shadow-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--text-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-right {
  display: flex;
  align-items: center;
}

/* Hero section */
.hero {
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--secondary-color);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn.primary:hover {
  background-color: var(--primary-color);
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn.secondary:hover {
  background-color: var(--card-bg-color);
}

/* Features section */
.features {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 0.5rem;
  height: 100%;
}

.feature-card img, .feature-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--secondary-color);
}

/* CTA section */
.cta {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--card-bg-color);
  border-radius: 0.5rem;
  margin: 3rem 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  color: #6c757d;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--card-bg-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

footer a {
  color: #6c757d;
  text-decoration: none;
}

footer a:hover {
  color: #4a6cf7;
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
  }
  
  .nav-right {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  z-index: 200;
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-menu ul {
  list-style: none;
  margin-top: 3rem;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  font-size: 1.25rem;
  display: block;
  padding: 0.5rem 0;
}

/* Theme Toggle Switch */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.theme-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--primary-color);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-slider .sun-icon,
.toggle-slider .moon-icon {
  position: absolute;
  top: 3px;
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.toggle-slider .sun-icon {
  left: 5px;
  opacity: 1;
}

.toggle-slider .moon-icon {
  right: 5px;
  opacity: 0;
}

input:checked + .toggle-slider .sun-icon {
  opacity: 0;
}

input:checked + .toggle-slider .moon-icon {
  opacity: 1;
}

/* Main content area */
main {
  min-height: 60vh;
}

.card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  border: none;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background-color: #4a6cf7;
  border-color: #4a6cf7;
}

.btn-primary:hover {
  background-color: #3a5bd9;
  border-color: #3a5bd9;
}

.btn-outline-primary {
  color: #4a6cf7;
  border-color: #4a6cf7;
}

.btn-outline-primary:hover {
  background-color: #4a6cf7;
  border-color: #4a6cf7;
}

/* Forms */
.form-control:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 0.25rem rgba(74, 108, 247, 0.1);
}

/* Alert messages */
.alert {
  border-radius: 5px;
  border: none;
}

/* Pagination */
.pagination .page-link {
  color: #4a6cf7;
}

.pagination .page-item.active .page-link {
  background-color: #4a6cf7;
  border-color: #4a6cf7;
}

/* Rating stars */
.text-warning {
  color: #ffc107 !important;
}

.rating-stars .btn-outline-warning:hover {
  background-color: #ffc107;
  color: #212529;
}

/* Search results highlighting */
.search-highlight em {
  background-color: #fff3cd;
  font-style: normal;
  padding: 0 2px;
} 