/* ============================================
   Website Downloader Product Page Styles
   Scoped under .wd-page to avoid conflicts
   ============================================ */

.wd-page {
  --wd-primary:    #58a6ff;
  --wd-primary-dk: #1f6feb;
  --wd-accent:     #3fb950;
  --wd-dark:       #0d1117;
  --wd-surface:    #161b22;
  --wd-card:       #1c2333;
  --wd-border:     #30363d;
  --wd-text:       #e6edf3;
  --wd-muted:      #8b949e;
  --wd-warning:    #d29922;
  --wd-danger:     #f85149;
  --wd-code-bg:    #1c2129;
  --wd-radius:     12px;
  --wd-max-width:  1200px;

  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--wd-dark);
  color: var(--wd-text);
  line-height: 1.6;
}

.wd-page a { color: var(--wd-primary); text-decoration: none; transition: color 0.2s; }
.wd-page a:hover { color: var(--wd-accent); }

.wd-container { max-width: var(--wd-max-width); margin: 0 auto; padding: 0 24px; }

/* ========== HERO ========== */
.wd-hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #1a1e2e 0%, #0d1117 50%, #0a1628 100%);
  overflow: hidden;
}
.wd-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(63, 185, 80, 0.06) 0%, transparent 50%);
  animation: wd-glow 15s ease-in-out infinite;
}
@keyframes wd-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}
.wd-hero-content { position: relative; z-index: 1; }
.wd-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--wd-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.wd-hero .wd-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--wd-text);
}
.wd-hero .wd-hero-title span {
  background: linear-gradient(90deg, var(--wd-primary), var(--wd-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wd-hero-sub {
  font-size: 1.25rem;
  color: var(--wd-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}
.wd-hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.wd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--wd-border);
  background: rgba(33, 38, 45, 0.8);
}
.wd-badge-net { color: #a78bfa; }
.wd-badge-win { color: var(--wd-primary); }
.wd-badge-ver { color: var(--wd-accent); }
.wd-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.wd-stat { text-align: center; }
.wd-stat-num { font-size: 2.5rem; font-weight: 800; color: var(--wd-primary); }
.wd-stat-label { font-size: 0.85rem; color: var(--wd-muted); text-transform: uppercase; letter-spacing: 1px; }

/* CTA Buttons */
.wd-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.wd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.wd-btn-primary {
  background: var(--wd-primary);
  color: #000 !important;
}
.wd-btn-primary:hover { background: #79bbff; color: #000 !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88, 166, 255, 0.3); }
.wd-btn-secondary {
  background: transparent;
  color: var(--wd-text) !important;
  border: 1px solid var(--wd-border);
}
.wd-btn-secondary:hover { border-color: var(--wd-primary); color: var(--wd-primary) !important; }

/* Hero Screenshot */
.wd-hero-img {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.wd-hero-img img {
  width: 100%;
  border-radius: var(--wd-radius);
  border: 1px solid var(--wd-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* ========== IN-PAGE NAV ========== */
.wd-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wd-border);
  padding: 14px 0;
}
.wd-nav-bar .wd-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.wd-nav-link {
  color: var(--wd-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.wd-nav-link:hover { color: var(--wd-text) !important; background: rgba(33, 38, 45, 0.8); }

/* ========== SECTIONS ========== */
.wd-section { padding: 80px 0; }
.wd-section-alt { background: var(--wd-surface); }
.wd-section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wd-text);
}
.wd-section-subtitle {
  text-align: center;
  color: var(--wd-muted);
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.wd-section-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.wd-section-label-blue { background: rgba(88, 166, 255, 0.12); color: var(--wd-primary); }
.wd-section-label-green { background: rgba(63, 185, 80, 0.12); color: var(--wd-accent); }

/* ========== FEATURE CARDS ========== */
.wd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.wd-feature-card {
  background: var(--wd-card);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.wd-feature-card:hover { transform: translateY(-3px); border-color: var(--wd-primary); }
.wd-feature-card .wd-fc-icon { font-size: 1.6rem; margin-bottom: 10px; }
.wd-feature-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; color: var(--wd-text); }
.wd-feature-card p { font-size: 0.9rem; color: var(--wd-muted); line-height: 1.55; }

/* ========== GRID LAYOUTS ========== */
.wd-grid { display: grid; gap: 40px; align-items: center; }
.wd-grid-2 { grid-template-columns: 1fr 1fr; }
.wd-order-first { order: -1; }

/* ========== SCREENSHOTS ========== */
.wd-screenshot {
  border-radius: var(--wd-radius);
  overflow: hidden;
  border: 1px solid var(--wd-border);
  background: #000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.wd-screenshot img {
  width: 100%;
  display: block;
}
.wd-screenshot-caption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--wd-muted);
  background: rgba(33, 38, 45, 0.8);
  text-align: center;
}

/* ========== FEATURE LIST ========== */
.wd-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wd-feature-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}
.wd-feature-list li:last-child { border-bottom: none; }
.wd-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}

/* ========== INFO GRID ========== */
.wd-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.wd-info-box {
  background: var(--wd-card);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  padding: 20px;
}
.wd-info-box h4 { font-size: 0.95rem; margin-bottom: 8px; }
.wd-info-box p { color: var(--wd-muted); font-size: 0.88rem; margin: 0; }

/* ========== STEPS ========== */
.wd-steps {
  counter-reset: wd-step;
  list-style: none;
  padding: 0;
}
.wd-steps li {
  counter-increment: wd-step;
  position: relative;
  padding: 16px 0 16px 64px;
  border-left: 2px solid var(--wd-border);
  margin-left: 18px;
}
.wd-steps li:last-child { border-left-color: transparent; }
.wd-steps li::before {
  content: counter(wd-step);
  position: absolute;
  left: -18px;
  top: 14px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  background: var(--wd-primary-dk);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}
.wd-steps li strong { color: var(--wd-text); }
.wd-steps li p { color: var(--wd-muted); margin-top: 4px; }

/* ========== TABLES ========== */
.wd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.wd-table th, .wd-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--wd-border);
}
.wd-table th {
  background: rgba(33, 38, 45, 0.8);
  color: var(--wd-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wd-table td { font-size: 0.95rem; }
.wd-table tr:hover td { background: rgba(88, 166, 255, 0.04); }

/* ========== KEYBOARD SHORTCUTS ========== */
.wd-page kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  background: rgba(33, 38, 45, 0.8);
  border: 1px solid var(--wd-border);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 var(--wd-border);
}

.wd-page code {
  font-family: 'Consolas', 'Monaco', monospace;
  background: var(--wd-code-bg);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* ========== CALLOUTS ========== */
.wd-callout {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 0.95rem;
}
.wd-callout-tip { background: rgba(63, 185, 80, 0.08); border-left: 4px solid var(--wd-accent); }
.wd-callout-warn { background: rgba(210, 153, 34, 0.08); border-left: 4px solid var(--wd-warning); }
.wd-callout-info { background: rgba(88, 166, 255, 0.08); border-left: 4px solid var(--wd-primary); }
.wd-callout strong { display: block; margin-bottom: 4px; }

/* ========== FAQ ACCORDION ========== */
.wd-faq details {
  background: var(--wd-card);
  border: 1px solid var(--wd-border);
  border-radius: 8px;
  margin: 8px 0;
  transition: border-color 0.15s;
}
.wd-faq details[open] { border-color: var(--wd-primary); }
.wd-faq summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wd-text);
}
.wd-faq summary::before {
  content: '\25B8';
  transition: transform 0.15s;
  color: var(--wd-primary);
}
.wd-faq details[open] summary::before { transform: rotate(90deg); }
.wd-faq .wd-answer { padding: 0 18px 16px; color: var(--wd-muted); line-height: 1.6; }

/* ========== TECH SPECS ========== */
.wd-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.wd-spec {
  background: var(--wd-card);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  padding: 24px;
}
.wd-spec h4 { color: var(--wd-primary); margin-bottom: 12px; font-size: 1rem; }
.wd-spec ul { list-style: none; padding: 0; margin: 0; }
.wd-spec li { padding: 4px 0; color: var(--wd-muted); font-size: 0.9rem; }
.wd-spec li::before { content: '\2713 '; color: var(--wd-accent); font-weight: bold; }

/* ========== DOWNLOAD CTA ========== */
.wd-download-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--wd-surface) 0%, #1a1e2e 100%);
}
.wd-download-section h2 { font-size: 2.5rem; margin-bottom: 16px; color: var(--wd-text); }
.wd-download-section p { color: var(--wd-muted); margin-bottom: 40px; font-size: 1.1rem; }

/* ========== THEMES SHOWCASE ========== */
.wd-themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.wd-theme-card {
  position: relative;
  border-radius: var(--wd-radius);
  overflow: hidden;
  border: 2px solid var(--wd-border);
  transition: transform 0.2s, border-color 0.3s;
  cursor: pointer;
}
.wd-theme-card:hover { transform: scale(1.02); border-color: var(--wd-primary); }
.wd-theme-card img { width: 100%; display: block; }
.wd-theme-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-weight: 600;
  color: var(--wd-text);
}
.wd-theme-label small { display: block; color: var(--wd-muted); font-weight: 400; font-size: 0.8rem; }

/* ========== LIGHTBOX ========== */
.wd-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.wd-lightbox.active { display: flex; }
.wd-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .wd-hero { padding: 60px 0 50px; }
  .wd-hero-stats { gap: 24px; }
  .wd-section { padding: 50px 0; }
  .wd-grid-2 { grid-template-columns: 1fr; }
  .wd-order-first { order: 0; }
  .wd-features-grid { grid-template-columns: 1fr; }
  .wd-themes-grid { grid-template-columns: 1fr; }
  .wd-info-grid { grid-template-columns: 1fr; }
}
