/* =============================================
   TextSpark Tools — Global Stylesheet
   textsparktools.com
============================================= */
:root {
  --navy:   #0f1c2e;
  --navy2:  #1a2e45;
  --teal:   #0ea5a0;
  --teal2:  #0c9490;
  --bg:     #f7f8fa;
  --card:   #ffffff;
  --border: #e2e6eb;
  --text:   #1a202c;
  --muted:  #64748b;
  --light:  #e8f5f5;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy); height: 56px; display: flex;
  align-items: center; padding: 0 1.5rem; gap: 1rem;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .logo { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.3px; }
.topbar .logo span { color: var(--teal); }
.topbar nav { margin-left: auto; display: flex; gap: 1.5rem; }
.topbar nav a { color: rgba(255,255,255,.6); font-size: 13.5px; text-decoration: none; transition: color .15s; }
.topbar nav a:hover { color: #fff; }
.topbar .nav-cta { background: var(--teal); color: #fff !important; padding: 6px 14px; border-radius: 7px; font-weight: 500; }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; margin-left: auto; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.page-wrap { padding: 2rem 0 4rem; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }

/* ── TOOL HERO ── */
.tool-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); border-radius: 14px; padding: 2rem; margin-bottom: 1.5rem; }
.tool-hero-inner { display: flex; align-items: flex-start; gap: 1rem; }
.tool-emoji-big { font-size: 36px; flex-shrink: 0; }
.tool-hero h1 { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.4px; margin-bottom: .35rem; }
.tool-hero p { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; max-width: 560px; }
.tool-badges { display: flex; gap: 6px; margin-top: .75rem; flex-wrap: wrap; }
.tool-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-free { background: rgba(14,165,160,.2); color: #5eead4; }
.badge-instant { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.badge-nosignup { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

/* ── TOOL CARD ── */
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }

/* ── FORM ELEMENTS ── */
textarea, input[type=text], input[type=number], select {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 14px;
  color: var(--text); background: #fff; resize: vertical; line-height: 1.5;
  transition: border-color .15s;
}
textarea { min-height: 130px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,160,.1); }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 5px; font-weight: 500; }
.input-row { display: flex; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; }
.input-row > * { flex: 1; min-width: 140px; }

/* ── BUTTONS ── */
.btn { padding: 10px 20px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal2); transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: #edf0f3; }
.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-danger:hover { background: #fecaca; }
.btn-row { display: flex; gap: 8px; margin: 1rem 0; flex-wrap: wrap; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── OUTPUT ── */
.output-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.output-box { background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px; padding: 13px; min-height: 80px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ── STATS ── */
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 1rem 0; }
.stat-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .6rem 1rem; text-align: center; flex: 1; min-width: 80px; }
.stat-val { font-size: 22px; font-weight: 700; color: var(--navy); }
.stat-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── AD SLOT ── */
.ad-slot { background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius); padding: .75rem; text-align: center; margin: 1.5rem 0; min-height: 100px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; position: relative; }
.ad-slot::before { content: 'Advertisement'; font-size: 10px; color: var(--muted); position: absolute; top: 6px; left: 50%; transform: translateX(-50%); background: var(--bg); padding: 0 6px; letter-spacing: .05em; text-transform: uppercase; }

/* ── CONTENT SECTIONS ── */
.content-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.content-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.3px; padding-bottom: .75rem; border-bottom: 2px solid var(--teal); display: inline-block; }
.content-section h3 { font-size: 16px; font-weight: 600; margin: 1.25rem 0 .5rem; color: var(--navy2); }
.content-section p { font-size: 14.5px; color: #374151; line-height: 1.85; margin-bottom: .9rem; }
.content-section ul, .content-section ol { padding-left: 1.4rem; margin-bottom: .9rem; }
.content-section li { font-size: 14.5px; color: #374151; line-height: 1.75; margin-bottom: .4rem; }
.content-section strong { color: var(--text); }
.highlight-box { background: var(--light); border-left: 4px solid var(--teal); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; font-size: 14px; color: var(--navy2); line-height: 1.7; }

/* ── FAQ ── */
.faq-item { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq-item:first-child { border-top: none; }
.faq-q { font-size: 14.5px; font-weight: 600; margin-bottom: .4rem; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 18px; color: var(--teal); font-weight: 400; flex-shrink: 0; margin-left: 8px; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── RELATED TOOLS ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: .75rem; }
.related-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .85rem; text-decoration: none; transition: border-color .15s, box-shadow .15s; display: block; }
.related-card:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(14,165,160,.12); }
.related-icon { font-size: 20px; margin-bottom: .35rem; }
.related-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.related-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 30px; font-size: 13.5px; font-weight: 500; transition: transform .25s ease; z-index: 999; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── HOMEPAGE ── */
.home-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); padding: 3.5rem 0 3rem; text-align: center; }
.home-hero h1 { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -.6px; margin-bottom: .75rem; }
.home-hero h1 span { color: var(--teal); }
.home-hero p { color: rgba(255,255,255,.6); font-size: 16px; max-width: 520px; margin: 0 auto 1.5rem; line-height: 1.7; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.hero-stat-num { font-size: 26px; font-weight: 700; color: var(--teal); }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }
.category-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 2rem 0 .75rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.tool-grid-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; display: block; }
.tool-grid-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(14,165,160,.12); transform: translateY(-2px); }
.tgc-icon { font-size: 26px; margin-bottom: .4rem; }
.tgc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.tgc-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -.3px; display: block; margin-bottom: .75rem; }
.footer-logo span { color: var(--teal); }
.footer-desc { color: rgba(255,255,255,.4); font-size: 13px; line-height: 1.65; }
.footer-col h4 { color: rgba(255,255,255,.6); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem; }
.footer-col a { display: block; color: rgba(255,255,255,.45); font-size: 13px; text-decoration: none; margin-bottom: .4rem; transition: color .15s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: .75rem; }
.footer-copy { color: rgba(255,255,255,.3); font-size: 12.5px; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { color: rgba(255,255,255,.35); font-size: 13px; text-decoration: none; transition: color .15s; }
.footer-social a:hover { color: var(--teal); }

/* ── COOKIE BANNER ── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); border-top: 2px solid var(--teal); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; z-index: 200; flex-wrap: wrap; }
.cookie-text { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--teal); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept { background: var(--teal); color: #fff; border: none; padding: 8px 18px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.cookie-decline { background: transparent; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .15s, transform .15s; display: block; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.blog-card-accent { height: 5px; }
.blog-card-body { padding: 1.25rem; }
.blog-tag { display: inline-block; background: var(--light); color: var(--teal2); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.blog-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: .5rem; }
.blog-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; }
.blog-card-meta { font-size: 12px; color: var(--muted); margin-top: .75rem; }

/* ── MOBILE ── */
@media(max-width: 768px) {
  .topbar nav { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: var(--navy); z-index: 99; padding: 1.5rem; overflow-y: auto; }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; color: rgba(255,255,255,.7); font-size: 16px; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; }
  .home-hero h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-hero h1 { font-size: 20px; }
  .content-section h2 { font-size: 17px; }
}
@media(max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 6px; }
  .stat-val { font-size: 18px; }
}
