/* Custom Styles - Inspired by sqlite.org */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Verdana", "Segoe UI", "Arial", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Layout Container - Maximum width with centered content */
.main-wrapper {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header Styles */
header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 95%;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 20px;
}

.logo img {
  margin-right: 10px;
  vertical-align: middle;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav li {
  position: relative;
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #0066cc;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-toggle .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  text-align: left;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 5px 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* or stretch */
  text-align: left;
  gap: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  text-align: left !important;
  width: 100%;
  padding: 7px 16px;
  color: #555;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.5;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: #0066cc;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Main Content */
main {
  max-width: 95%;
  margin: 0 auto;
  padding: 40px 30px;
  min-height: calc(100vh - 200px);
}

/* Generic article typography (shared across text-heavy pages) */
.article-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.article-body {
  font-family: "Verdana", "Segoe UI", "Arial", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: #0b1a2a;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #0b1a2a;
  scroll-margin-top: 90px; /* hover not being covered by header */
}

.article-body h1 { font-size: 32px; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 22px; }
.article-body h4 { font-size: 20px; }

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 32px;
  padding-left: 0;
  list-style-position: outside;
}

.article-body li {
  margin-bottom: 8px;
  padding-left: 0;
  margin-left: 24px; /* left indent */
}

.article-body a {
  color: #0c4a6e;
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 4px solid #9bb4c6;
  background: #f4f9fb;
  color: #0b1a2a;
}

.article-body code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 90%;
  background: #f0f4f8;
  padding: 2px 4px;
  border-radius: 3px;
}

.article-body pre {
  margin: 0 0 18px;
  padding: 14px;
  background: #0d1117;
  color: #e6edf3;
  overflow: auto;
  border-radius: 6px;
  border: 1px solid #1f2a37;
  font-family: "Consolas", "Courier New", monospace;
}

.article-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 18px;
}

.article-body th,
.article-body td {
  border: 1px solid #c8d4dc;
  padding: 10px 12px;
  text-align: left;
}

.article-body th {
  background: #f4f7fa;
  font-weight: 700;
}

/* List variants under article-body */
.article-body ul.list-compact,
.article-body ol.list-compact {
  margin-left: 2px; /* small indent */
}

.article-body ul.list-spaced,
.article-body ol.list-spaced {
  margin-left: 20px; /* large indent */
}

.article-body ul.list-compact li,
.article-body ol.list-compact li {
  margin-bottom: 6px; /* line break */
}

.article-body ul.list-spaced li,
.article-body ol.list-spaced li {
  margin-bottom: 10px; /* line break */
}

.article-body hr {
  border: 0;
  border-top: 1px solid #c8d4dc;
  margin: 24px 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
}

/* Two-column content layout inspired by sqlite.org */
.content-shell {
  background: #fff;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 36px;
  align-items: start;
}

.content-column {
  padding: 0;
  background: #fff;
}

.content-block {
  margin-bottom: 26px;
  line-height: 1.7;
}

.content-block:last-child {
  margin-bottom: 0;
}

.sidebar {
  position: sticky;
  top: 96px; /* preallocated header length, adjust if necessary */
  align-self: start; /* allows sticky positioning */
}

.sidebar-card {
  border: 1px solid #9bb4c6;
  background: #fff;
  padding: 16px;
  position: static; /* outer's sidebar stick it */
}

.sidebar-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: #0f2b44;
}

.sidebar-links {
  list-style: disc; /* show bullets */
  padding-left: 20px; /* room for bullets */
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  text-decoration: none;
  color: #0c4a6e;
  font-weight: 600;
  font-size: 16px;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0 60px 0;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
  line-height: 1.3;
}

.hero-text .subtitle {
  font-size: 19px;
  line-height: 1.8;
  color: #000;
  margin-bottom: 15px;
}

.hero-text .cloud-providers {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 25px;
  font-size: 18px;
  color: #000;
}

.hero-text .tagline {
  font-size: 18px;
  color: #000;
  font-style: italic;
  margin-bottom: 30px;
}

.section {
  padding: 0 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section:last-of-type {
  padding-bottom: 0;
}

.section h2 {
  margin-bottom: 1rem;
  color: #0f172a;
}

.section p {
  color: #4b5563;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header p {
  margin: 0.75rem auto 0;
  color: #475467;
}

.section-header .eyebrow {
  margin-bottom: 0.75rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn.disabled,
.btn:disabled,
a.btn.disabled {
  pointer-events: none !important;
  opacity: 0.65;
  cursor: default;
}

.btn-primary {
  background-color: #0066cc;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #0066cc;
  border: 1px solid #0066cc;
}

.btn-secondary:hover {
  background-color: #f0f7ff;
  transform: translateY(-1px);
}

/* Screenshot Gallery */
.screenshot-gallery {
  position: relative;
  width: 100%;
}

.screenshot-main {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.screenshot-main img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Product Comparison Section */
.comparison-section {
  padding: 60px 0;
  margin: 60px 0 0 0;
}

.comparison-wrapper {
  max-width: 95%;
  margin: 0 auto;
  padding: 0;
}

.comparison-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

.comparison-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
}

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

.product-card {
  background: #fff;
  padding: 35px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.product-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: #e3f2fd;
  color: #0066cc;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.product-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
}

.product-card .target-audience {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.product-card .description {
  font-size: 17px;
  color: #000;
  margin-bottom: 25px;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 30px;
}

.product-features li {
  padding: 8px 0;
  font-size: 17px;
  color: #000;
  line-height: 1.6;
}

.product-features li:before {
  content: "• ";
  color: #0066cc;
  font-weight: bold;
  margin-right: 8px;
}

.product-actions {
  display: flex;
  gap: 12px;
}

/* Footer */
footer {
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 30px 0;
  margin-top: 60px;
}

.footer-content {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 14px;
  color: #666;
}

.footer-nav {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #0066cc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
  }

  nav ul.active {
    display: flex;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 22px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}

/* Back to Top Button */
.go-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0066cc;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.go-to-top:hover {
  background-color: #0052a3;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Content Page Styles (for pricing, privacy, eula, etc.) */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.content-page h1 {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 40px;
  text-align: center;
}

.policy-content {
  line-height: 1.8;
}

.policy-content p {
  font-size: 18px;
  color: #000;
  margin-bottom: 20px;
  line-height: 1.8;
}

.policy-content .contact-info {
  margin-top: 30px;
}

.policy-content a {
  color: #0066cc;
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

/* EULA Page Styles */
.subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  font-style: italic;
}

.eula-content {
  line-height: 1.8;
}

.important-notice {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 20px;
  margin-bottom: 40px;
  font-size: 18px;
  color: #000;
  line-height: 1.8;
}

.eula-section {
  margin-bottom: 35px;
}

.eula-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.eula-section p {
  font-size: 18px;
  color: #000;
  margin-bottom: 12px;
  line-height: 1.8;
}

.eula-section a {
  color: #0066cc;
  text-decoration: none;
}

.eula-section a:hover {
  text-decoration: underline;
}

/* Privacy Page Styles */
.privacy-content {
  line-height: 1.8;
}

.privacy-content .intro {
  font-size: 18px;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.8;
}

.privacy-toc {
  margin-bottom: 40px;
}

.privacy-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: block;
}

.privacy-toc li {
  margin-bottom: 2px;
  line-height: 1.6;
  display: list-item;
}

.privacy-toc a {
  color: #0066cc;
  text-decoration: none;
  font-size: 18px;
}

.privacy-toc a:hover {
  text-decoration: underline;
  color: #004499;
}

.privacy-section {
  margin-bottom: 40px;
  padding-top: 20px;
}

.privacy-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.privacy-section p {
  font-size: 18px;
  color: #000;
  margin-bottom: 15px;
  line-height: 1.8;
}

.privacy-section ul {
  margin: 15px 0 15px 25px;
  padding: 0;
}

.privacy-section li {
  font-size: 18px;
  color: #000;
  margin-bottom: 12px;
  line-height: 1.8;
}

.privacy-section ul ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

.privacy-section a {
  color: #0066cc;
  text-decoration: none;
}

.privacy-section a:hover {
  text-decoration: underline;
}

.back-to-top-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 16px;
  color: #0066cc;
  text-decoration: none;
}

.back-to-top-link:hover {
  text-decoration: underline;
}

/* Contact Page Styles */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  margin-bottom: 60px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  font-family: "Verdana", sans-serif;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.form-group textarea {
  resize: vertical;
  line-height: 1.6;
}

.captcha-group {
  margin-bottom: 30px;
}

.captcha-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.captcha-wrapper input {
  flex: 0 0 200px;
}

.captcha-wrapper img {
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.captcha-wrapper img:hover {
  opacity: 0.8;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit .btn {
  min-width: 200px;
  margin-bottom: 15px;
}

.form-note {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.contact-info-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.contact-info-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 25px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 18px;
  line-height: 1.8;
}

.contact-icon {
  font-size: 18px;
  color: #0066cc;
  margin-top: 5px;
  flex-shrink: 0;
  line-height: 1.8;
}

.contact-info-text {
  flex: 1;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 5px;
  color: #000;
}

.contact-info-item p {
  margin: 0;
  color: #000;
}

.contact-info-item a {
  color: #0066cc;
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* Form validation error styles */
.error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

input.error,
textarea.error {
  border-color: #dc3545;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .captcha-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .captcha-wrapper input {
    flex: 1;
    width: 100%;
  }
}

.go-to-top:hover {
  background-color: #0052a3;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Download page styles */
.download-section {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
}

.version-info, .license-info {
  margin-bottom: 25px;
}

.version-info h2, .license-info h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.version-info p, .license-info p {
  margin: 8px 0;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.requirements-section {
  margin: 40px 0;
}

.requirements-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.requirement-item {
  margin-bottom: 25px;
}

.requirement-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #444;
}

.requirement-item ul {
  list-style: disc;
  padding-left: 30px;
  line-height: 1.8;
}

.changelog-section {
  margin: 40px 0;
}

.changelog-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.changelog-entry {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-entry h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #007bff;
}

.changelog-entry ul {
  list-style: disc;
  padding-left: 30px;
  line-height: 1.8;
}

.support-note {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin: 30px 0;
}

.support-note p {
  margin: 0;
  line-height: 1.6;
}

.support-note a {
  color: #007bff;
  text-decoration: none;
}

.support-note a:hover {
  text-decoration: underline;
}

.note {
  border-left: 4px;
  padding: 15px 15px;
}

.note p {
  margin: 0;
  line-height: 1.6;
}

.note a {
  color: #007bff;
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}
