/* AzAd Smart Downloader - GitHub Pages Styles (theme-aligned) */
:root {
  --yellow: #FFCC70;
  --purple: #3B1D6D;
  --purple-soft: #6A4FB3;
  --blue: #5EC8F2;
  --bg: #FFF8E7;
  --bg-light: #fffaf2;
  --muted: #6b6b7a;
  --text: #4b3b66;
  --border: rgba(59,29,109,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
  color: var(--purple);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  background: var(--purple);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(59,29,109,0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo span {
  font-weight: 600;
  font-size: 18px;
}

.logo:hover,
.logo:hover span {
  color: var(--yellow);
  transition: color 0.2s ease;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--yellow);
}

/* Main Content */
main {
  padding: 40px 0 60px;
}

.hero-banner {
  width: 100%;
  margin: 0 0 32px;
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(59,29,109,0.12);
}

section {
  margin: 40px 0;
}

h1 {
  font-size: 2.2rem;
  margin: 24px 0 16px;
  color: var(--purple);
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  margin: 32px 0 16px;
  color: var(--purple);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 8px;
  display: inline-block;
}

h3 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: var(--purple);
}

h4 {
  font-size: 1rem;
  margin: 12px 0 8px;
  color: var(--purple);
}

p {
  margin: 12px 0;
  color: var(--text);
  font-size: 15px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 16px 0;
}

ul, ol {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--text);
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--purple-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

code {
  background: rgba(59,29,109,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--purple);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid var(--purple);
  background: #fff;
  color: var(--purple);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,29,109,0.15);
}

.btn.primary {
  background: linear-gradient(90deg, var(--yellow), #ffd27d);
  border-color: transparent;
  color: var(--purple);
}

.btn.primary:hover {
  background: linear-gradient(90deg, #ffd27d, var(--yellow));
}

.btn.outline {
  background: transparent;
  border-color: var(--purple);
}

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

/* Image gallery */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.image-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.image-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(59,29,109,0.08);
  border: 1px solid var(--border);
}

.image-card img {
  width: 100%;
  height: 180px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.image-link {
  display: block;
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 26, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: min(1000px, 92vw);
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--purple);
}

.image-card figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* Hero Section */
.hero {
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 48px 0;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  border: none;
  padding: 0;
  display: block;
}

.hero-right {
  width: 340px;
  min-width: 280px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(59,29,109,0.08);
  border: 1px solid var(--border);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.feature {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,29,109,0.1);
}

.feature-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.feature h4 {
  margin: 0;
  font-size: 15px;
}

.feature p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Steps */
.steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.step {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex: 1;
  min-width: 200px;
}

.step strong {
  color: var(--purple);
  font-size: 15px;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* FAQ Items */
.faq-item {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.faq-item strong {
  color: var(--purple);
  font-size: 15px;
}

.faq-item p {
  margin: 8px 0 0;
}

.faq-item ul {
  margin-top: 10px;
}

/* Contact Box */
.contact-box {
  background: linear-gradient(135deg, rgba(59,29,109,0.05) 0%, rgba(255,204,112,0.1) 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 16px;
}

.contact-box a {
  color: var(--purple);
  font-weight: 600;
}

/* Policy Sections */
.policy-section {
  margin-bottom: 28px;
}

.policy-section h2 {
  display: block;
  margin-bottom: 12px;
}

/* Permissions Table */
.permissions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.permissions-table th,
.permissions-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.permissions-table th {
  background: rgba(59,29,109,0.05);
  color: var(--purple);
  font-weight: 600;
}

.permissions-table tr:last-child td {
  border-bottom: none;
}

/* Footer */
footer {
  background: var(--purple);
  color: rgba(255,255,255,0.9);
  padding: 32px 0;
  margin-top: 40px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

footer p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin: 4px 0;
}

footer strong {
  color: #fff;
}

footer a {
  color: var(--yellow);
}

footer a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.socials a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.socials a:hover {
  color: var(--yellow);
}

.footer-links {
  margin-top: 16px;
  font-size: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  margin-right: 16px;
}

/* Date/Meta text */
.date {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* Disclaimer */
.disclaimer {
  color: var(--muted);
  font-size: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-right {
    width: 300px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 700px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .hero {
    flex-direction: column;
  }
  
  .hero-left,
  .hero-right {
    width: 100%;
    min-width: 100%;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step {
    min-width: 100%;
  }
  
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .hero h2 {
    font-size: 1.4rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .cta-row {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  main {
    padding: 24px 0 40px;
  }
  
  .card {
    padding: 16px;
  }
  
  .feature {
    padding: 14px;
  }
  
  nav {
    gap: 12px;
  }
  
  nav a {
    font-size: 13px;
  }
}

/* CTA Row */
.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

/* Use Cases List */
.use-cases {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.use-cases li {
  margin-bottom: 10px;
}

.use-cases strong {
  color: var(--purple);
}
