/* ==========================================================================
   VdZip - Modern Mobile-First Stylesheet
   Pure Vanilla CSS - Hostinger Static Hosting Optimized
   Zero external libraries, zero external fonts
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Primary Brand Gradients */
  --primary-blue: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-grad: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #6366f1 100%);
  --accent-green: #059669;
  --accent-green-hover: #047857;
  --accent-green-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);

  /* Status Colors */
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-text: #b91c1c;
  --success-bg: #f0fdf4;
  --success-text: #15803d;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 8px 20px -4px rgba(37, 99, 235, 0.25);

  --badge-bg: #eff6ff;
  --badge-text: #2563eb;
  --badge-border: #bfdbfe;
  --input-bg: #ffffff;
  --hero-ambient-glow: none;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

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

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

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 840px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  
  .nav-link:hover {
    color: var(--primary-blue);
    background-color: var(--bg-muted);
  }

  /* Desktop Dropdown */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 260px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 110;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    color: var(--text-main);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .dropdown-item:hover {
    background-color: #eff6ff;
    color: var(--primary-blue);
  }
}

/* Mobile Hamburger Toggle */
.mobile-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 840px) {
  .mobile-toggle-btn {
    display: none;
  }
}

/* Mobile Menu Overlay & Drawer */
.mobile-menu {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
}

.mobile-menu.is-active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover, .mobile-nav-link:focus {
  background-color: #eff6ff;
  color: var(--primary-blue);
  border-color: #dbeafe;
}

.mobile-submenu {
  display: none;
  padding: 0.5rem 0.5rem 0.75rem 0.5rem;
  background-color: var(--bg-muted);
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.mobile-submenu.is-open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

@media (min-width: 440px) {
  .mobile-submenu.is-open {
    grid-template-columns: 1fr 1fr;
  }
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-main);
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.mobile-sub-link:active,
.mobile-sub-link:hover {
  background-color: #eff6ff;
  color: var(--primary-blue);
  border-color: #bfdbfe;
}

/* ==========================================================================
   Hero Section & Downloader Box
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 1.75rem 0;
  text-align: center;
  position: relative;
  background-image: var(--hero-ambient-glow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

/* Platform Brand Colors for Hero Titles */
.brand-facebook {
  color: #1877F2;
}

.brand-facebook-reels {
  color: #1877F2;
}

.brand-instagram {
  color: #E1306C;
}

.brand-pinterest {
  color: #E60023;
}

.brand-tiktok {
  color: #FE2C55;
}

.brand-twitter {
  color: #1D9BF0;
}

.brand-snapchat {
  color: #D97706;
}

.brand-reddit {
  color: #FF4500;
}

.brand-linkedin {
  color: #0A66C2;
}

.brand-moj {
  color: #FF5722;
}

.brand-josh {
  color: #FF0055;
}

.brand-reels {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.brand-dailymotion {
  color: #0066DC;
}

.brand-vdzip {
  color: var(--primary-blue);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.35rem;
  }
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Downloader Box */
.downloader-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.downloader-box {
  background-color: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.downloader-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.downloader-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .downloader-form {
    flex-direction: row;
    align-items: stretch;
    gap: 0.6rem;
  }

  .download-submit-btn {
    min-width: 150px;
    height: 54px;
    flex-shrink: 0;
  }
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.url-input {
  width: 100%;
  height: 54px;
  padding: 0.75rem 85px 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--input-bg, #ffffff);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.url-input.with-search-icon {
  padding-left: 44px;
  padding-right: 85px;
}

.url-input:focus {
  border-color: var(--border-focus);
}

.paste-button {
  position: absolute;
  right: 8px;
  height: 38px;
  padding: 0 0.85rem;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.paste-button:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

.download-submit-btn {
  height: 52px;
  background: var(--primary-grad);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  min-height: 48px;
}

.download-submit-btn:hover {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.download-submit-btn:active {
  transform: scale(0.99);
}

.download-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==========================================================================
   Loading & Feedback States
   ========================================================================== */
.status-container {
  margin-top: 1rem;
}

.loading-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 600;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #93c5fd;
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-box {
  padding: 0.9rem 1rem;
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-md);
  color: var(--error-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ==========================================================================
   Mobile-Optimized Video Result UI (Compact 3:4 Preview & Large Download Button)
   ========================================================================== */
.result-section {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.result-card-container {
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* 3:4 Aspect Ratio Visual Frame - Prominent & Centered */
.result-preview-frame {
  position: relative;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.16);
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.result-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000000;
  display: block;
  border-radius: var(--radius-md);
}

.result-badges-overlay {
  display: none !important;
}

.badge-platform {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-no-watermark {
  background: var(--accent-green-grad);
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.result-meta-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.result-video-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.result-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.quality-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-main);
}

/* The Large Green High Quality Download Video Button - Big & Prominent */
.direct-download-btn {
  width: 100%;
  min-height: 52px;
  background: var(--accent-green-grad);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1rem;
}

.direct-download-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
  color: #ffffff;
}

.direct-download-btn:active {
  transform: scale(0.98);
}

.direct-download-btn.btn-downloading {
  opacity: 0.92;
  cursor: wait;
}

@keyframes spin-anim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin-anim 1s linear infinite;
}

/* Video Formats Collapsible (Hide/Show Type) */
.result-formats-section {
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formats-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.formats-toggle-btn:hover {
  background-color: var(--bg-card);
  border-color: #059669;
  color: #059669;
}

.formats-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.formats-toggle-left svg {
  color: #059669;
  flex-shrink: 0;
}

.formats-toggle-chevron {
  display: flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.formats-toggle-btn.is-active .formats-toggle-chevron {
  transform: rotate(180deg);
  color: #059669;
}

.formats-collapsible-wrapper {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  animation: fadeInDown 0.2s ease-out;
}

.formats-collapsible-wrapper.is-open {
  display: flex;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formats-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.format-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.format-card-row:hover {
  border-color: var(--primary-blue);
  background-color: var(--bg-card);
}

.format-card-row.is-selected {
  border-color: var(--primary-blue);
  background-color: rgba(37, 99, 235, 0.08);
}

.format-card-row:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.format-meta-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.format-res-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  background: var(--primary-grad);
  color: #ffffff;
  letter-spacing: 0.02em;
  min-width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.format-details-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.format-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.format-sub-text {
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.format-select-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.15s ease;
  flex-shrink: 0;
  color: #ffffff;
}

.format-select-indicator svg {
  display: none;
}

.format-card-row.is-selected .format-select-indicator {
  border-color: var(--primary-blue);
  background-color: var(--primary-blue);
}

.format-card-row.is-selected .format-select-indicator svg {
  display: block;
}

/* Secondary format picker if provided */
.formats-dropdown-wrap {
  width: 100%;
  margin-top: 0.6rem;
}

.format-select {
  width: 100%;
  height: 38px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text-main);
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
}

/* ==========================================================================
   Platform Grid Sections
   ========================================================================== */
.platforms-section {
  padding: 2.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .platform-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.platform-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  color: var(--primary-blue);
}

.platform-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.platform-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.platform-card-action {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Article Content & Editorial Typography
   ========================================================================== */
.article-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .article-content {
    padding: 2.5rem;
  }
}

.article-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.68;
  margin-bottom: 1.15rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

.article-highlight-box {
  background-color: var(--bg-muted);
  border-left: 4px solid var(--primary-blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}

.article-highlight-box p {
  color: var(--text-main);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.article-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-figure:hover {
  box-shadow: 0 8px 24px -4px rgba(24, 119, 242, 0.16);
}

.article-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-figcaption svg {
  flex-shrink: 0;
  color: var(--primary-blue);
}

/* ==========================================================================
   FAQ Section Accordions
   ========================================================================== */
.faq-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}

.faq-container {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-focus);
}

.faq-question {
  padding: 1.15rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-question {
  color: var(--primary-blue);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-subtle);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3rem 0 2rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 2fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  list-style: none;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Legal Pages Styling */
.legal-wrapper {
  max-width: 800px;
  margin: 2rem auto 3rem auto;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .legal-wrapper {
    padding: 3rem 2.5rem;
  }
}

.legal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin-bottom: 2rem;
  display: block;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

/* ==========================================================================
   Unique Platform Color Themes & Visual Identities
   Har Page Ka Distinct Atmosphere, Theme & Vibrant Aesthetic
   ========================================================================== */

/* 1. Facebook Theme - Oceanic Slate Blue */
body[data-platform="facebook"] {
  --bg-main: #f0f4fa;
  --bg-card: #ffffff;
  --bg-muted: #e4edf8;
  --border-color: #d6e2f3;
  --border-focus: #1877f2;
  --primary-blue: #1877f2;
  --primary-dark: #0f5ec2;
  --primary-grad: linear-gradient(135deg, #1877f2 0%, #0d5ec4 100%);
  --shadow-glow: 0 8px 24px -4px rgba(24, 119, 242, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(24, 119, 242, 0.12) 0%, transparent 70%);
  --badge-bg: #dbeafe;
  --badge-text: #1d4ed8;
  --badge-border: #93c5fd;
}

/* 1b. Facebook Reels Theme - Dynamic Azure & Sapphire */
body[data-platform="facebook-reels"] {
  --bg-main: #f0f5ff;
  --bg-card: #ffffff;
  --bg-muted: #e4eeff;
  --border-color: #d0e1fd;
  --border-focus: #1877f2;
  --primary-blue: #1877f2;
  --primary-dark: #0f5ec2;
  --primary-grad: linear-gradient(135deg, #1877f2 0%, #0052cc 100%);
  --shadow-glow: 0 8px 24px -4px rgba(24, 119, 242, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(24, 119, 242, 0.15) 0%, transparent 70%);
  --badge-bg: #dbeafe;
  --badge-text: #1d4ed8;
  --badge-border: #93c5fd;
}

/* 2. Instagram Theme - Radiant Sunset Rose */
body[data-platform="instagram"] {
  --bg-main: #fdf2f7;
  --bg-card: #ffffff;
  --bg-muted: #fae8f1;
  --border-color: #f5cde2;
  --border-focus: #e1306c;
  --primary-blue: #e1306c;
  --primary-dark: #c13584;
  --primary-grad: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  --shadow-glow: 0 8px 24px -4px rgba(225, 48, 108, 0.32);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(225, 48, 108, 0.15) 0%, rgba(245, 133, 41, 0.08) 50%, transparent 70%);
  --badge-bg: #fce7f3;
  --badge-text: #9d174d;
  --badge-border: #f472b6;
}

/* 3. Pinterest Theme - Warm Ruby & Cherry Cream */
body[data-platform="pinterest"] {
  --bg-main: #fff5f5;
  --bg-card: #ffffff;
  --bg-muted: #fee2e2;
  --border-color: #fecaca;
  --border-focus: #e60023;
  --primary-blue: #e60023;
  --primary-dark: #b8001b;
  --primary-grad: linear-gradient(135deg, #e60023 0%, #b8001b 100%);
  --shadow-glow: 0 8px 24px -4px rgba(230, 0, 35, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(230, 0, 35, 0.12) 0%, transparent 70%);
  --badge-bg: #fee2e2;
  --badge-text: #991b1b;
  --badge-border: #fca5a5;
}

/* 4. TikTok Theme - Vibrant Light Theme with Neon Coral & Cyan Accents */
body[data-platform="tiktok"] {
  --bg-main: #fff5f7;
  --bg-card: #ffffff;
  --bg-muted: #ffe4e8;
  --border-color: #fecdd3;
  --border-focus: #fe2c55;
  --primary-blue: #fe2c55;
  --primary-dark: #e02449;
  --primary-grad: linear-gradient(135deg, #fe2c55 0%, #ff0050 50%, #25f4ee 100%);
  --shadow-glow: 0 8px 24px -4px rgba(254, 44, 85, 0.28);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(254, 44, 85, 0.14) 0%, rgba(37, 244, 238, 0.08) 50%, transparent 70%);
  --badge-bg: #ffe4e8;
  --badge-text: #be123c;
  --badge-border: #fda4af;
}

/* 5. Twitter / X Theme - Electric Sky & Ice Slate */
body[data-platform="twitter"] {
  --bg-main: #f0f9ff;
  --bg-card: #ffffff;
  --bg-muted: #e0f2fe;
  --border-color: #bae6fd;
  --border-focus: #1d9bf0;
  --primary-blue: #1d9bf0;
  --primary-dark: #0c85d0;
  --primary-grad: linear-gradient(135deg, #1d9bf0 0%, #0284c7 100%);
  --shadow-glow: 0 8px 24px -4px rgba(29, 155, 240, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(29, 155, 240, 0.14) 0%, transparent 70%);
  --badge-bg: #e0f2fe;
  --badge-text: #0369a1;
  --badge-border: #7dd3fc;
}

/* 6. Snapchat Theme - Warm Sunny Gold & Amber */
body[data-platform="snapchat"] {
  --bg-main: #fffdf0;
  --bg-card: #ffffff;
  --bg-muted: #fef9c3;
  --border-color: #fef08a;
  --border-focus: #eab308;
  --primary-blue: #d97706;
  --primary-dark: #b45309;
  --primary-grad: linear-gradient(135deg, #facc15 0%, #d97706 100%);
  --shadow-glow: 0 8px 24px -4px rgba(234, 179, 8, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.18) 0%, transparent 70%);
  --badge-bg: #fef9c3;
  --badge-text: #854d0e;
  --badge-border: #fde047;
}

/* 7. Reddit Theme - Fiery Terracotta & Flame */
body[data-platform="reddit"] {
  --bg-main: #fff7ed;
  --bg-card: #ffffff;
  --bg-muted: #ffedd5;
  --border-color: #fed7aa;
  --border-focus: #ff4500;
  --primary-blue: #ff4500;
  --primary-dark: #dd3b00;
  --primary-grad: linear-gradient(135deg, #ff5722 0%, #ff4500 100%);
  --shadow-glow: 0 8px 24px -4px rgba(255, 69, 0, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(255, 69, 0, 0.13) 0%, transparent 70%);
  --badge-bg: #ffedd5;
  --badge-text: #9a3412;
  --badge-border: #fdba74;
}

/* 8. LinkedIn Theme - Executive Sapphire Steel */
body[data-platform="linkedin"] {
  --bg-main: #eff6ff;
  --bg-card: #ffffff;
  --bg-muted: #dbeafe;
  --border-color: #bfdbfe;
  --border-focus: #0a66c2;
  --primary-blue: #0a66c2;
  --primary-dark: #004182;
  --primary-grad: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  --shadow-glow: 0 8px 24px -4px rgba(10, 102, 194, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(10, 102, 194, 0.13) 0%, transparent 70%);
  --badge-bg: #dbeafe;
  --badge-text: #1e40af;
  --badge-border: #93c5fd;
}

/* 9. Moj Theme - Warm Spiced Coral & Tangelo */
body[data-platform="moj"] {
  --bg-main: #fff8f5;
  --bg-card: #ffffff;
  --bg-muted: #ffebe6;
  --border-color: #ffccbc;
  --border-focus: #ff5722;
  --primary-blue: #ff5722;
  --primary-dark: #e64a19;
  --primary-grad: linear-gradient(135deg, #ff7043 0%, #e64a19 100%);
  --shadow-glow: 0 8px 24px -4px rgba(255, 87, 34, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(255, 87, 34, 0.14) 0%, transparent 70%);
  --badge-bg: #ffebe6;
  --badge-text: #bf360c;
  --badge-border: #ffab91;
}

/* 10. Insta Reels Theme - Instagram Sunset Glow */
body[data-platform="reels"] {
  --bg-main: #fff0f5;
  --bg-card: #ffffff;
  --bg-muted: #fce7f3;
  --border-color: #fbcfe8;
  --border-focus: #e1306c;
  --primary-blue: #e1306c;
  --primary-dark: #c13584;
  --primary-grad: linear-gradient(135deg, #fd5949 0%, #d6249f 50%, #405de6 100%);
  --shadow-glow: 0 8px 24px -4px rgba(225, 48, 108, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(225, 48, 108, 0.16) 0%, transparent 70%);
  --badge-bg: #fce7f3;
  --badge-text: #9d174d;
  --badge-border: #f472b6;
}

/* Fallback Josh Theme */
body[data-platform="josh"] {
  --bg-main: #fff1f6;
  --bg-card: #ffffff;
  --bg-muted: #fce7f3;
  --border-color: #fbcfe8;
  --border-focus: #ff0055;
  --primary-blue: #ff0055;
  --primary-dark: #c2185b;
  --primary-grad: linear-gradient(135deg, #ff1a75 0%, #c2185b 100%);
  --shadow-glow: 0 8px 24px -4px rgba(255, 0, 85, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(255, 0, 85, 0.14) 0%, transparent 70%);
  --badge-bg: #fce7f3;
  --badge-text: #9d174d;
  --badge-border: #f472b6;
}

/* 11. Dailymotion Theme - French Royal Ultramarine */
body[data-platform="dailymotion"] {
  --bg-main: #eef4ff;
  --bg-card: #ffffff;
  --bg-muted: #e0e7ff;
  --border-color: #c7d2fe;
  --border-focus: #0066dc;
  --primary-blue: #0066dc;
  --primary-dark: #1e40af;
  --primary-grad: linear-gradient(135deg, #0066dc 0%, #1e40af 100%);
  --shadow-glow: 0 8px 24px -4px rgba(0, 102, 220, 0.3);
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(0, 102, 220, 0.13) 0%, transparent 70%);
  --badge-bg: #e0e7ff;
  --badge-text: #312e81;
  --badge-border: #a5b4fc;
}

/* 12. Generic Homepage Theme - Modern Multi-Spectrum Hub */
body[data-platform="generic"] {
  --bg-main: #f6f8fd;
  --bg-card: #ffffff;
  --hero-ambient-glow: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 75%);
}

/* ==========================================================================
   Homepage Platform Cards - Individual Brand Hover Enhancements
   ========================================================================== */
#card-instagram:hover {
  border-color: #f472b6;
  box-shadow: 0 8px 20px -2px rgba(225, 48, 108, 0.22);
  color: #e1306c;
}
#card-instagram:hover .platform-icon-wrap {
  background-color: #fce7f3;
  color: #e1306c;
}

#card-facebook:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px -2px rgba(24, 119, 242, 0.22);
  color: #1877f2;
}
#card-facebook:hover .platform-icon-wrap {
  background-color: #dbeafe;
  color: #1877f2;
}

#card-fb-reels:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 20px -2px rgba(24, 119, 242, 0.25);
  color: #1877f2;
}
#card-fb-reels:hover .platform-icon-wrap {
  background-color: #eff6ff;
  color: #1877f2;
}

#card-twitter:hover {
  border-color: #7dd3fc;
  box-shadow: 0 8px 20px -2px rgba(29, 155, 240, 0.22);
  color: #1d9bf0;
}
#card-twitter:hover .platform-icon-wrap {
  background-color: #e0f2fe;
  color: #1d9bf0;
}

#card-pinterest:hover {
  border-color: #fca5a5;
  box-shadow: 0 8px 20px -2px rgba(230, 0, 35, 0.22);
  color: #e60023;
}
#card-pinterest:hover .platform-icon-wrap {
  background-color: #fee2e2;
  color: #e60023;
}

#card-reddit:hover {
  border-color: #fdba74;
  box-shadow: 0 8px 20px -2px rgba(255, 69, 0, 0.22);
  color: #ff4500;
}
#card-reddit:hover .platform-icon-wrap {
  background-color: #ffedd5;
  color: #ff4500;
}

#card-linkedin:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px -2px rgba(10, 102, 194, 0.22);
  color: #0a66c2;
}
#card-linkedin:hover .platform-icon-wrap {
  background-color: #dbeafe;
  color: #0a66c2;
}

#card-snapchat:hover {
  border-color: #fde047;
  box-shadow: 0 8px 20px -2px rgba(234, 179, 8, 0.22);
  color: #ca8a04;
}
#card-snapchat:hover .platform-icon-wrap {
  background-color: #fef9c3;
  color: #ca8a04;
}

#card-moj:hover {
  border-color: #ffab91;
  box-shadow: 0 8px 20px -2px rgba(255, 87, 34, 0.22);
  color: #ff5722;
}
#card-moj:hover .platform-icon-wrap {
  background-color: #ffebe6;
  color: #ff5722;
}

#card-reels:hover {
  border-color: #f472b6;
  box-shadow: 0 8px 20px -2px rgba(225, 48, 108, 0.25);
  color: #e1306c;
}
#card-reels:hover .platform-icon-wrap {
  background-color: #fdf2f8;
  color: #e1306c;
}

#card-josh:hover {
  border-color: #f472b6;
  box-shadow: 0 8px 20px -2px rgba(255, 0, 85, 0.22);
  color: #ff0055;
}
#card-josh:hover .platform-icon-wrap {
  background-color: #fce7f3;
  color: #ff0055;
}

#card-tiktok:hover {
  border-color: #f43f5e;
  box-shadow: 0 8px 20px -2px rgba(254, 44, 85, 0.25);
  color: #fe2c55;
}
#card-tiktok:hover .platform-icon-wrap {
  background-color: #ffe4e6;
  color: #fe2c55;
}

#card-dailymotion:hover {
  border-color: #a5b4fc;
  box-shadow: 0 8px 20px -2px rgba(0, 102, 220, 0.22);
  color: #0066dc;
}
#card-dailymotion:hover .platform-icon-wrap {
  background-color: #e0e7ff;
  color: #0066dc;
}
