/* Boil It Down Website Styles */

:root {
  /* Extension color palette */
  --primary-gradient-start: #667eea;
  --primary-gradient-end: #764ba2;
  --text-dark: #333;
  --text-light: #666;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e1e5e9;
  --button-hover: #f8f9fa;
  --success-color: #28a745;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  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);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
  color: white;
  padding: 20px 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 28px;
  width: auto;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.language-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-donate-header {
  background: var(--success-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-donate-header:hover {
  background: #218838;
  transform: translateY(-1px);
}

.btn-contact-header {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-contact-header:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lang-toggle-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
}

.lang-option {
  background: transparent;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 40px;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-option.active {
  background: white;
  color: var(--primary-gradient-start);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary-gradient-start);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-browser {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 10px 24px;
  font-size: 14px;
}

.btn-browser:hover {
  background: var(--border-color);
}

.btn-donate {
  background: var(--success-color);
  color: white;
  font-size: 18px;
  padding: 16px 40px;
}

.btn-donate:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Demo/Screenshots Section */
.demo {
  background: var(--bg-light);
}

.demo-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-item-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.screenshot-full {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.screenshot-full:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.screenshot-label {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Features Section */
.features {
  background: var(--bg-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.feature-item {
  text-align: center;
}

.feature-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-image img {
  transform: scale(1.05);
}

.feature-item h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-light);
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
}

.check-icon {
  color: var(--success-color);
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Download Section */
.download {
  background: var(--bg-light);
}

.download-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 50px;
}

.browser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.browser-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.browser-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.browser-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.browser-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.browser-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Support Section */
.support {
  background: white;
  text-align: center;
}

.support-text {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.site-footer p {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 32px;
  }

  .feature-grid,
  .browser-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
  
  .logo-image {
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  section {
    padding: 60px 0;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
  }
}
