/* Slopdetector Showcase Website Styles */

:root {
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --text-main: #e0e0e0;
  --text-muted: #8892b0;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-glow: rgba(102, 126, 234, 0.15);
  --success: #4ade80;
  --warning: #ffa502;
  --danger: #ef4444;
  --donate-bg: rgba(255, 221, 0, 0.1);
  --donate-color: #ffdd00;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(102, 126, 234, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(118, 75, 162, 0.08), transparent 25%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: all 0.3s;
}

.github-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Install Action Buttons (Dark Reader inspired) */
.install-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.btn-chrome {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
}

.btn-chrome:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-icon {
  color: #4285F4;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-primary-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-secondary-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Glass Panels & Showcases */
.hero-visual {
  max-width: 440px;
  margin: 0 auto;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  position: relative;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  z-index: -1;
  pointer-events: none;
}

.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.section-margin {
  margin-top: 100px;
  margin-bottom: 80px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

/* Features Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
}

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

.feature-card {
  text-align: left;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  background: var(--glass-bg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  justify-content: center;
  scrollbar-width: none; /* Firefox */
}

.carousel-container.is-scrollable .carousel-track {
  padding: 0 calc(50vw - 200px); /* Centers a ~400px item initially */
  justify-content: flex-start;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-item {
  flex: 0 0 auto;
  width: 400px;
  max-width: 85vw;
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(40, 40, 60, 0.8);
  border: 1px solid var(--glass-border);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: none; /* Hidden on large screens by default */
  align-items: center;
  justify-content: center;
}

.carousel-container.is-scrollable .carousel-btn {
  display: flex;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: rgba(80, 80, 100, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px; 
}

.next-btn {
  right: 20px;
}

.preview-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.preview-caption {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 0 10px 10px;
}

/* Donate Button */
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--donate-bg);
  border: 1px solid rgba(255, 221, 0, 0.25);
  border-radius: 12px;
  color: var(--donate-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.donate-btn:hover {
  background: rgba(255, 221, 0, 0.2);
  border-color: rgba(255, 221, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.15);
}

.donate-icon {
  width: 18px;
  height: 18px;
  stroke: var(--donate-color);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 20px;
  background: rgba(0, 0, 0, 0.1);
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.sitemap {
  display: flex;
  gap: 48px;
}

.sitemap-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sitemap-column h4 {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sitemap-column a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sitemap-column a:hover {
  color: var(--accent-primary);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  
  .header {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-left .logo {
    justify-content: center;
  }
}

/* Lightbox Styles */
.clickable-img {
  cursor: zoom-in;
  transition: transform 0.3s;
}

.clickable-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(10, 10, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  cursor: default;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  user-select: none;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  user-select: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.lb-prev-btn {
  left: 20px;
}

.lb-next-btn {
  right: 20px;
}

/* Placeholder Video */
.text-center {
  text-align: center;
}

.video-placeholder {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--glass-bg);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: default;
  padding: 20px;
}

.video-placeholder:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.4);
}

.play-icon {
  color: var(--accent-primary);
  margin-bottom: 24px;
  transition: transform 0.3s;
}

.video-placeholder:hover .play-icon {
  transform: scale(1.1);
}

.video-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.4;
}

.video-badge {
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}
