/* ═══════════════════════════════════════
   style-apps-home.css — OnlineToolStack
   Apps & Chrome Extensions page styles
═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:   #ffffff;
  --bg:      #f7f8fa;
  --card:    #ffffff;
  --border:  #e4e8ef;
  --hero:    #1B2F7E;
  --hero2:   #2d3fc7;
  --text:    #1a1a2e;
  --muted:   #5c6270;
  --link:    #1b5ce8;
  --accent:  #0066FF;
  --radius:  14px;
  --shadow:  0 2px 16px rgba(0,0,0,0.07);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}
.nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-center a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-center a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav-ghost {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.btn-nav-ghost:hover { border-color: #aaa; }
.btn-nav-fill {
  padding: 9px 18px;
  background: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-nav-fill:hover { background: #0055dd; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ── MOBILE MENU ── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 16px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: var(--text); }
.nav-mobile-cta {
  color: var(--accent);
  font-weight: 600;
}

/* ── HERO ── */
.hero-outer {
  background: var(--white);
  padding: 24px 40px 0;
}
.hero {
  background: #23327B;
  padding: 80px 40px;
  text-align: center;
  border-radius: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 680px;
  margin: 0 auto 20px;
}
.hero p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.btn-hero {
  display: inline-block;
  background: #fff;
  color: var(--hero);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  color: var(--hero);
}
.btn-hero .arrow { margin-left: 6px; }

/* ── CATEGORY TABS ── */
.tabs-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  overflow-x: auto;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.tab {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
  font-weight: 600;
}

/* ── MAIN CONTENT ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 40px 100px;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-header p {
  font-size: 15px;
  color: var(--muted);
  
  line-height: 1.65;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

/* ── TOOL CARD ── */
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}

/* Card image area */
.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BrandShot illustrated preview */
.brandshot-preview {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f0eeff 0%, #e4dcff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  position: relative;
}
.bs-product {
  width: 100px;
  height: 126px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.bs-before {
  background: linear-gradient(160deg, #c8b8f0 0%, #9b7ee8 100%);
}
.bs-after {
  background: linear-gradient(160deg, #b8e0c8 0%, #5abf7e 100%);
  outline: 3px solid #6C63FF;
  outline-offset: 2px;
}
.bs-bottle {
  width: 40px;
  height: 64px;
  background: rgba(255,255,255,0.35);
  border-radius: 8px 8px 4px 4px;
  position: relative;
}
.bs-bottle::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 3px 3px 0 0;
}
.bs-label {
  width: 32px; height: 22px;
  background: rgba(255,255,255,0.6);
  border-radius: 3px;
  margin-top: 4px;
}
.bs-arrow {
  font-size: 26px;
  color: #7B5CE5;
  font-weight: 300;
  flex-shrink: 0;
}
.bs-chip {
  position: absolute;
  bottom: 12px; right: 14px;
  background: #6C63FF;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.4px;
}
.bs-style-pill {
  position: absolute;
  top: 12px; left: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 5px;
}
.style-dot { width: 8px; height: 8px; border-radius: 50%; background: #6C63FF; }

/* YouTube URL Extractor preview */
.yt-preview {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #fff5f5 0%, #ffe8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.yt-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}
.yt-panel-header {
  background: #ff0000;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yt-logo-small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.yt-logo-small svg { width: 18px; height: 18px; }
.yt-panel-title {
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  margin-left: auto;
}
.yt-panel-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.yt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.yt-thumb-sm {
  width: 42px; height: 28px;
  background: #ff0000;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-thumb-sm svg { width: 12px; height: 12px; fill: white; }
.yt-meta { flex: 1; min-width: 0; }
.yt-ttl { font-size: 10px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-views { font-size: 9px; color: #888; }
.copy-btn {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  background: #fff0ee;
  color: #ff0000;
  border-radius: 4px;
  border: 1px solid #ffd0cc;
  flex-shrink: 0;
}
.yt-panel-footer {
  padding: 8px 8px 10px;
  display: flex;
  gap: 6px;
}
.export-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
}
.export-btn.primary { background: #ff0000; color: #fff; }
.export-btn.secondary { background: #f5f5f5; color: #333; }

/* Card text body */
.card-body {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-platform {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.card-platform .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-wix    { background: #7B5CE5; }
.dot-chrome { background: #EA4335; }
.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  color: var(--text);
}
.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  transition: gap 0.15s;
}
.card-link:hover { gap: 10px; }
.card-link .arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  transition: transform 0.15s;
}
.tool-card:hover .arrow-icon { transform: rotate(-45deg); }

/* ── BOTTOM BANNER ── */
.bottom-banner {
  background: #23327B;
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  margin-top: 40px;
}
.bottom-banner h2 {
  color: #fff;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.bottom-banner p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ── DIVIDER ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 64px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  .nav-right   { display: none; }
  .nav-hamburger { display: flex; }
  .page-wrap { padding: 48px 20px 72px; }
  .hero-outer { padding: 16px 16px 0; }
  .hero { padding: 56px 20px; border-radius: 14px; }
  .bottom-banner { padding: 48px 24px; }
  footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .tabs { padding: 0 20px; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}