/* ==========================================================================
   Dezkno Review - Professional Stylesheet
   SEO-optimized, accessible, and fully responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-secondary: #10b981;
  --color-secondary-hover: #059669;
  --color-secondary-light: #d1fae5;
  --color-accent: #8b5cf6;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  
  /* Neutrals */
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-bg-elevated: #ffffff;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  
  /* Spacing & Sizing */
  --max-width: 820px;
  --max-width-wide: 1200px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Header height for scroll offset */
  --header-height: 70px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-top: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.nav-left {
  flex-shrink: 0;
}

.brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-center a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-center a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
  text-decoration: none;
}

.nav-right {
  flex-shrink: 0;
}

/* CTA Button */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0d9488 100%);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(16, 185, 129, 0.4);
  text-decoration: none !important;
}

.cta:hover {
  background: linear-gradient(135deg, var(--color-secondary-hover) 0%, #0f766e 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.cta:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

section {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h1 {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero > p {
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-secondary);
}

/* Notice Box */
.notice {
  background: var(--color-warning-light);
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 600px;
  text-align: left;
}

.notice p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #92400e;
}

.notice strong {
  color: #92400e;
}

/* Table of Contents */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 500px;
  text-align: left;
}

.toc p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
}

.toc li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.toc li::before {
  display: none;
}

.toc a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.toc a::before {
  content: "→";
  color: var(--color-primary);
  font-size: 0.8rem;
  transition: transform var(--transition);
}

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

.toc a:hover::before {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

ul {
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

ol {
  list-style: none;
  counter-reset: ol-counter;
}

ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  counter-increment: ol-counter;
  color: var(--color-text-secondary);
}

ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-secondary-light);
  color: var(--color-secondary-hover);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul li strong,
ol li strong {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Trust Box / Highlight Box
   -------------------------------------------------------------------------- */
.trust {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #eff6ff 100%);
  border: 1px solid #93c5fd;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.trust h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--color-primary-hover);
}

.trust p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #1e40af;
}

.trust p:last-child {
  margin-bottom: 0;
}

.trust a {
  color: var(--color-primary-hover);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Quick Verdict Section
   -------------------------------------------------------------------------- */
#quick-verdict {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 0;
}

#quick-verdict h2 {
  border-bottom-color: var(--color-secondary);
}

#quick-verdict ul {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   Methodology Section
   -------------------------------------------------------------------------- */
#methodology {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid #e9d5ff;
}

#methodology h2 {
  border-bottom-color: var(--color-accent);
}

#methodology ul li::before {
  background: var(--color-accent);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
#faq h3 {
  background: var(--color-bg-alt);
  padding: 1rem 1.25rem;
  margin: 1.5rem -0.5rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  font-size: 1.1rem;
  color: var(--color-text);
}

#faq h3:first-of-type {
  margin-top: 1rem;
}

#faq > p {
  padding-left: 0.75rem;
}

/* --------------------------------------------------------------------------
   Sources/References Section
   -------------------------------------------------------------------------- */
#sources {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}

#sources h2 {
  font-size: 1.25rem;
}

#sources ul {
  margin-bottom: 0;
}

#sources li {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Alternative Section CTA
   -------------------------------------------------------------------------- */
#alternative > p:last-of-type {
  text-align: center;
  margin-top: 2rem;
}

#alternative > p:last-of-type .cta {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-text);
  color: #9ca3af;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.site-footer p:last-child {
  font-size: 0.8rem;
  opacity: 0.8;
  max-width: 500px;
  margin: 0.5rem auto 0;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .nav-center {
    display: none;
  }
  
  .nav {
    height: 60px;
  }
  
  :root {
    --header-height: 60px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  main {
    padding: 2rem 1.25rem 3rem;
  }
  
  section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
  }
  
  .hero {
    padding: 1rem 0 2rem;
  }
  
  .hero > p {
    font-size: 1rem;
  }
  
  .toc {
    padding: 1.25rem 1.5rem;
  }
  
  #quick-verdict,
  #methodology {
    padding: 1.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: var(--radius);
  }
  
  .trust {
    padding: 1rem 1.25rem;
  }
  
  .notice {
    padding: 1rem;
  }
  
  .nav {
    padding: 0 1rem;
  }
  
  .nav-right .cta {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  h2 {
    display: block;
  }
  
  h3 {
    margin-top: 1.5rem;
  }
  
  #faq h3 {
    padding: 0.875rem 1rem;
    margin: 1.25rem 0 0.75rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  main {
    padding: 1.5rem 1rem 2.5rem;
  }
  
  .brand {
    font-size: 1rem;
  }
  
  .nav-right .cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  ul, ol {
    padding-left: 0.5rem;
  }
  
  ul li {
    padding-left: 1rem;
  }
  
  ol li {
    padding-left: 1.75rem;
  }
  
  ol li::before {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.7rem;
  }
  
  #quick-verdict ul {
    padding: 1rem 1rem 1rem 2rem;
  }
  
  .toc ul {
    columns: 1;
  }
  
  #alternative > p:last-of-type .cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Print Styles (SEO: Good for saving/printing)
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .skip-link,
  .cta {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  main {
    max-width: 100%;
    padding: 0;
  }
  
  section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* --------------------------------------------------------------------------
   Accessibility Enhancements
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000;
    --color-text-muted: #000;
  }
  
  .cta {
    border: 2px solid #000;
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }