/* Replacing entire stylesheet with new design pattern from styles-Achaz.css */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Variables */
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.15 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0 0);
  --muted: oklch(0.96 0.005 240);
  --muted-foreground: oklch(0.45 0 0);
  --accent: oklch(0.65 0.19 165);
  --accent-foreground: oklch(0.99 0 0);
  --border: oklch(0.9 0 0);
  --radius: 0.625rem;

  /* Fonts */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", sans-serif; /* Changed to Poppins for more stylish font */
  --font-space-grotesk: "Space Grotesk", sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1.125rem; /* Increased base font size */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: 3rem; /* Increased h1 size */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem; /* Increased h2 size */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem; /* Increased h3 size */
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.375rem; /* Increased h4 size */
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1.125rem; /* Increased paragraph size */
  line-height: 1.6;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.75rem;
  }
  h3 {
    font-size: 2rem;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, oklch(0.18 0.02 260) 0%, oklch(0.12 0.03 240) 50%, oklch(0.15 0.02 220) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
  margin-right: 2rem; /* Added margin to separate brand from navigation */
}

.brand.small {
  gap: 0.75rem;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* Increased from 2rem to 2.5rem for better spacing */
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  font-size: 1rem; /* Updated from 0.95rem to 1rem */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}

/* Updated dropdown classes to match HTML structure */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: oklch(0.12 0.03 240);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background 0.3s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.dropdown-menu a::after {
  display: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 4px;
  width: 0;
  background: white;
  transition: width 0.3s;
  border-radius: 2px;
}

.main-nav a:hover {
  color: white;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, oklch(0.15 0.02 240) 0%, oklch(0.1 0.03 260) 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-grid a:hover {
  color: white;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn,
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  gap: 0.5rem;
  background: linear-gradient(135deg, oklch(0.65 0.19 165) 0%, oklch(0.55 0.16 150) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-lg {
  height: 4rem;
  padding: 0 2rem;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 1.125rem 1.875rem;
  font-size: 1.125rem;
}

.btn:hover,
.cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: white;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  gap: 0.5rem;
}

.cta-secondary:hover {
  background: var(--accent);
  color: white;
}

.btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Card Styles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.page {
  padding: 4rem 0;
}

.page-section {
  padding: 2rem 0;
}

.hero {
  background: linear-gradient(135deg, oklch(0.55 0.22 240) 0%, oklch(0.58 0.2 280) 50%, oklch(0.6 0.18 200) 100%);
  padding: 5rem 0;
  color: white;
}

.hero h1 {
  color: white;
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.hero ul {
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.hero-cta-wrap {
  text-align: center;
  margin-top: 2rem;
}

.section.alt {
  background: var(--muted);
}

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

.text-white {
  color: white;
}

.text-muted {
  color: var(--muted-foreground);
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.narrow {
  max-width: 920px;
}

/* Grid Styles */
.grid {
  display: grid;
  gap: 1.5rem;
}

/* Downloads Grid - 2x2 layout */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns for better layout */
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

.downloads-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s;
  border: 2px solid var(--border);
  padding: 3rem; /* Increased padding for bigger blocks */
}

.downloads-grid .card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.downloads-grid .card h3 {
  margin-bottom: 0.75rem;
}

.downloads-grid .card p {
  flex: 1;
  margin-bottom: 1rem;
}

.downloads-grid .card .btn {
  margin-top: auto;
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-weight: 600;
}

.after-grid {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

/* Icon Styles */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 2.5rem;
  height: 2.5rem;
}

.feature-icon,
.method-icon,
.scenario-icon,
.mistake-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--accent);
}

/* List Styles */
.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.list-check li svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--accent);
}

/* Utility Classes */
.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.leading-relaxed {
  line-height: 1.6;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* CTA Blocks */
.cta-block {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-row p {
  margin: 0;
  flex: 1;
}

.cta-bottom {
  padding: 3rem 0;
  background: var(--muted);
}

.cta-bottom .card {
  text-align: center;
}

.cta-bottom .cta-block {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  border: none;
  padding: 1rem 0 0;
  margin: 1.5rem 0 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Recovery methods, scenarios, mistakes */
.recovery-methods,
.scenarios-list,
.mistakes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.method-card,
.scenario-card,
.mistake-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.method-card:hover,
.scenario-card:hover,
.mistake-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.method-content,
.scenario-content,
.mistake-content {
  flex: 1;
}

.method-title,
.scenario-title,
.mistake-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.method-description,
.scenario-description,
.mistake-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.faq-answer {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-space-grotesk);
}

.text-lg {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Alert/Info Boxes */
.alert {
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-left: 4px solid #3b82f6;
}

.alert-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
}

/* Template Grid for About page */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.template-card {
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.template-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.template-card h3 {
  margin-bottom: 0.75rem;
}

.template-card p {
  color: var(--muted-foreground);
  margin: 0;
}

.templates-section {
  padding: 3rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-nav {
    gap: 1.5rem; /* Updated from 1rem to 1.5rem */
  }

  .main-nav a {
    font-size: 0.95rem; /* Updated from 0.875rem to 0.95rem */
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .main-nav a {
    font-size: 0.85rem; /* Updated from 0.8rem to 0.85rem */
    padding: 0.25rem 0.5rem;
  }

  /* Hide dropdown on mobile, show as regular links */
  .nav-dropdown-content {
    position: static;
    display: block !important;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .nav-dropdown-content a {
    padding: 0.25rem 0.5rem;
    display: inline-block;
  }

  h1 {
    font-size: 2rem;
  }

  .section,
  .page {
    padding: 2rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row p {
    text-align: center;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }

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