/*
 * Whiskers website stylesheet
 *
 * The design follows a dark theme inspired by mobile‑first best practices.
 * A dark gray background (#121212) is used instead of true black to avoid eye strain.
 * Text uses off‑white colours for better contrast and readability.
 */

:root {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --primary: #8a5cf6;
  --primary-hover: #a17cfb;
  --secondary-bg: #2a2a2a;
  --text-color: #e6e6e6;
  --heading-color: #ffffff;
  --border-color: #333;
  --radius: 6px;
  --max-width: 1200px;
}

/* Reset & base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }

p { margin-bottom: 1rem; }

pre {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1rem;
  color: #eee;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--card-bg);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius);
}

/* Header */
header {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--heading-color);
  font-size: 1.3rem;
  font-weight: 600;
}

.logo img {
  width: 28px;
  height: 28px;
  filter: invert(88%) sepia(7%) saturate(394%) hue-rotate(214deg) brightness(98%) contrast(86%);
}

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

nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem;
  border-radius: var(--radius);
}

nav a.active,
nav a:hover {
  background-color: var(--secondary-bg);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: var(--card-bg);
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: none;
  }
  nav ul.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  nav {
    position: relative;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background-color: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
}

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

.btn.secondary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* Slightly tighter vertical spacing on the hero section for desktop */
  padding: 1.25rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  /* reduce the gap between text and image on larger screens to tighten the layout */
  gap: 1rem;
}

.hero-content {
  flex: 1 1 320px;
  max-width: 600px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-color);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1 1 320px;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

/* Selling points cards */
.selling-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.selling-points .card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.selling-points .card:hover {
  transform: translateY(-4px);
}

.selling-points .card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  filter: invert(88%) sepia(7%) saturate(394%) hue-rotate(214deg) brightness(98%) contrast(86%);
}

.selling-points .card h3 {
  margin-bottom: 0.5rem;
}

/* Page hero (for secondary pages) */
.page-hero {
  padding: 2.5rem 1.5rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.features-hero, .download-hero, .docs-hero {
  padding-top: 4rem;
}

/* Features page */
.features-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.feature img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: invert(88%) sepia(7%) saturate(394%) hue-rotate(214deg) brightness(98%) contrast(86%);
}

.feature-content h2 {
  margin-top: 0;
}

.screenshots {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.screenshots .screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.screenshots img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Screenshot wrapper with label overlay */
.screenshot-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.screenshot-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(138, 92, 246, 0.85);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.trust-item img {
  width: 20px;
  height: 20px;
  filter: invert(88%) sepia(7%) saturate(394%) hue-rotate(214deg) brightness(98%) contrast(86%);
}

/* Download page */
.download-tabs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.download-tabs .tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.download-tabs .tab-buttons button {
  padding: 0.6rem 1rem;
  border: none;
  background: var(--secondary-bg);
  color: var(--text-color);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.download-tabs .tab-buttons button.active,
.download-tabs .tab-buttons button:hover {
  background: var(--primary);
  color: #fff;
}

.tab-content {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.download-tabs pre {
  margin: 0.5rem 0 1rem;
}

/* Version information section */
.version-info {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-top: 2rem;
}

/* Note under version details */
.checksum-note {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

.version-info h2 {
  margin-bottom: 0.5rem;
}

.version-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.version-details {
  list-style: none;
  margin-bottom: 1rem;
  padding: 0;
}

.version-details li {
  margin-bottom: 0.5rem;
}

.additional-info {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Docs page */
.docs-index {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.docs-index ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.docs-index ul li a {
  background: var(--secondary-bg);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  color: var(--text-color);
  transition: background-color 0.2s ease;
}

.docs-index ul li a:hover {
  background: var(--primary);
  color: #fff;
}

.doc-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.doc-section:first-of-type {
  border-top: none;
}

.doc-section h2 {
  margin-bottom: 0.5rem;
}

.doc-section ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

/* Examples section on features page */
.examples {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.examples h2 {
  margin-bottom: 0.6rem;
}

.examples ul {
  list-style: none;
  padding-left: 0;
}

.examples li {
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-color);
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--primary);
}