/* shared.css — Vid2Get · YTDown-style light theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #e63946;
  --accent2:      #ff6b6b;
  --accent-dark:  #c1121f;
  --bg:           #f4f6f8;
  --white:        #ffffff;
  --border:       #e2e6ea;
  --border-light: #f0f2f5;
  --text:         #1a1a2e;
  --text2:        #3d3d5c;
  --muted:        #7a7a9a;
  --muted-light:  #b8b8cc;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.13);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── LANG BAR ── */
.lang-bar {
  background: #12122a;
  padding: 7px 0;
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.lang-bar::-webkit-scrollbar { display: none; }
.lang-bar-inner {
  display: flex; gap: 2px; justify-content: center;
  padding: 0 16px; flex-wrap: wrap;
}
.lang-bar a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.72rem; padding: 3px 8px; border-radius: 4px;
  transition: all 0.15s;
}
.lang-bar a:hover, .lang-bar a.active { color: #fff; background: rgba(255,255,255,0.1); }

/* ── NAV ── */
nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 62px;
}
.nav-logo {
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 900; flex-shrink: 0;
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text2); text-decoration: none; font-size: 0.86rem;
  font-weight: 500; padding: 7px 14px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg); color: var(--text); }

/* ── HERO BANNER ── */
.hero-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  padding: 52px 24px 90px; text-align: center; position: relative; overflow: hidden;
}
/* dot pattern overlay */
.hero-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* curved bottom cutout */
.hero-banner::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 70px;
  background: var(--bg); clip-path: ellipse(58% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.hero-banner h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800;
  color: #fff; line-height: 1.12; letter-spacing: -0.5px; margin-bottom: 10px;
}
.hero-banner h1 em { font-style: normal; opacity: 0.9; }
.hero-sub { color: rgba(255,255,255,0.8); font-size: 0.97rem; margin-bottom: 0; }

/* ── TOOL CARD WRAPPER (floats up over hero) ── */
.tool-card-wrap {
  position: relative; z-index: 2;
  max-width: 660px; margin: -56px auto 0; padding: 0 20px;
}
.tool-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px 26px 20px;
}

/* Input */
.input-group { display: flex; gap: 10px; margin-bottom: 12px; }
.url-input {
  flex: 1; min-width: 0; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; color: var(--text); font-family: inherit;
  font-size: 0.92rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.url-input::placeholder { color: var(--muted-light); }
.url-input:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(230,57,70,0.1); }

.btn-dl-main {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none; border-radius: var(--radius); padding: 13px 22px;
  color: #fff; font-family: inherit; font-weight: 700; font-size: 0.92rem;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(230,57,70,0.3);
  transition: filter 0.2s, transform 0.15s;
}
.btn-dl-main:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-dl-main:active { transform: translateY(0); }
.btn-dl-main:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px 13px; color: var(--muted);
  font-size: 0.78rem; font-family: inherit; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 5px;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }

.disclaimer {
  font-size: 0.7rem; color: var(--muted-light); line-height: 1.55;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-light);
}

/* ── STATUS ── */
.status-msg {
  display: none; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 9px; font-size: 0.84rem; margin-top: 12px;
}
.status-msg.loading { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.status-msg.error   { background: #fff5f5; border: 1px solid #fecaca; color: #c0392b; }
.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(0,0,0,0.1);
  border-top-color: currentColor; border-radius: 50%;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULTS ── */
#results { display: none; margin-top: 20px; }
.result-header {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 16px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.video-thumb {
  width: 118px; height: 66px; border-radius: 7px;
  object-fit: cover; background: var(--bg); flex-shrink: 0;
}
.video-title-text { font-weight: 700; font-size: 0.88rem; line-height: 1.4; margin-bottom: 5px; }
.video-dur-text   { font-size: 0.76rem; color: var(--muted); }
.fmt-section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.fmt-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fmt-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 13px;
  transition: border-color 0.15s; background: var(--white);
}
.fmt-row:hover { border-color: var(--accent); }
.fmt-left { display: flex; align-items: center; gap: 9px; }
.fmt-badge {
  font-size: 0.63rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 3px 8px; border-radius: 5px;
}
.fmt-badge.video { background: rgba(230,57,70,0.08); color: var(--accent); border: 1px solid rgba(230,57,70,0.18); }
.fmt-badge.audio { background: rgba(22,163,74,0.08); color: #16a34a; border: 1px solid rgba(22,163,74,0.2); }
.fmt-q  { font-size: 0.85rem; font-weight: 600; }
.fmt-sz { font-size: 0.74rem; color: var(--muted); }
.btn-dl-fmt {
  background: var(--accent); border: none; border-radius: 7px;
  padding: 7px 15px; color: #fff; font-size: 0.78rem;
  font-family: inherit; font-weight: 700; cursor: pointer;
  transition: filter 0.15s; text-decoration: none; display: inline-block;
}
.btn-dl-fmt:hover { filter: brightness(1.1); }

/* ── PLATFORM PILLS ── */
.platform-nav {
  max-width: 860px; margin: 36px auto 0; padding: 0 24px;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.platform-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 100px;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--text2); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: all 0.18s; box-shadow: var(--shadow-sm);
}
.platform-pill:hover { border-color: var(--accent); color: var(--accent); }
.platform-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(230,57,70,0.05); }

/* ── PAGE CONTENT ── */
.page-content { max-width: 860px; margin: 0 auto; padding: 0 24px 60px; }
.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 800;
  color: var(--text); letter-spacing: -0.3px; margin: 48px 0 18px;
}

/* ── FEATURES ── */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.feat-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: var(--shadow-sm);
}
.feat-card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(230,57,70,0.09); transform: translateY(-2px); }
.feat-icon  { font-size: 1.5rem; margin-bottom: 9px; }
.feat-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 5px; }
.feat-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 3px; }
.step-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ── TRUST STRIP ── */
.trust-strip {
  display: flex; max-width: 860px; margin: 32px auto 0; padding: 0 24px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.trust-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px; gap: 4px; text-align: center;
  border-right: 1px solid var(--border-light);
}
.trust-item:last-child { border-right: none; }
.trust-icon  { font-size: 1.2rem; }
.trust-label { font-size: 0.74rem; font-weight: 700; color: var(--text2); }
.trust-sub   { font-size: 0.67rem; color: var(--muted); }

/* ── FAQ ── */
.faq-list {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 0.87rem;
  user-select: none; color: var(--text); transition: background 0.15s;
}
.faq-q:hover { background: var(--bg); }
.faq-arrow { color: var(--muted-light); transition: transform 0.3s, color 0.2s; font-size: 0.72rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  font-size: 0.83rem; color: var(--muted); line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 20px 16px; }

/* ── LONG TAIL ── */
.lt-section { padding: 0 0 8px; }
.lt-h2 { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 34px 0 9px; }
.lt-p  { font-size: 0.84rem; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }

/* ── AD SLOT ── */
.ad-slot {
  background: var(--bg); border: 1.5px dashed var(--border); border-radius: 10px;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  color: var(--muted-light); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 24px auto; max-width: 728px;
}

/* ── FOOTER ── */
footer { background: #12122a; color: rgba(255,255,255,0.65); padding: 44px 24px 24px; margin-top: 40px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 36px; margin-bottom: 36px;
}
.footer-brand .foot-logo { font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 8px; }
.footer-brand .foot-logo .dot { color: var(--accent2); }
.footer-brand p { font-size: 0.78rem; line-height: 1.65; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.footer-col a {
  display: block; font-size: 0.8rem; color: rgba(255,255,255,0.5);
  text-decoration: none; margin-bottom: 8px; transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 18px;
  text-align: center; font-size: 0.74rem; color: rgba(255,255,255,0.3);
}

/* ── HOMEPAGE ── */
.home-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 12px; max-width: 900px; margin: 0 auto; padding: 0 24px 60px;
}
.home-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.home-card:hover { border-color: var(--c, var(--accent)); box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.home-card-icon { font-size: 1.9rem; margin-bottom: 10px; }
.home-card-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.home-card-sub  { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.home-card-cta  { margin-top: auto; padding-top: 14px; font-size: 0.78rem; font-weight: 700; color: var(--c, var(--accent)); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .tool-card { padding: 16px; }
  .input-group { flex-direction: column; }
  .btn-dl-main { width: 100%; text-align: center; }
  .trust-strip { flex-wrap: wrap; }
  .trust-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border-light); }
  .hero-banner { padding: 40px 16px 80px; }
}
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}
