/* ── Pastebin ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

:root {
  --accent:  #14b8a6;
  --agrad:   linear-gradient(135deg,#14b8a6,#0d9488);
  --bg:      #09090f;
  --card:    #111119;
  --card2:   #16161f;
  --text:    #f1f5f9;
  --text2:   #94a3b8;
  --faint:   #64748b;
  --border:  #1c1c2a;
  --border2: #252535;
  --input:   #0d0d17;
}

body { background:var(--bg); color:var(--text); font-family:system-ui,-apple-system,sans-serif; line-height:1.6; min-height:100vh; }

/* ── HEADER ──────────────────────────────────── */
.site-header { position:sticky; top:0; z-index:100; background:rgba(9,9,15,.88); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.header-inner { max-width:1240px; margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; height:56px; }
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-icon { width:32px; height:32px; flex-shrink:0; }
.logo-text { font-size:.95rem; font-weight:800; background:var(--agrad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.nav-links { display:flex; gap:24px; }
.nav-links a { color:var(--text2); text-decoration:none; font-size:.87rem; font-weight:500; transition:color .15s; }
.nav-links a:hover { color:var(--text); }

/* ── HERO ────────────────────────────────────── */
.hero { text-align:center; padding:48px 20px 32px; }
.hero-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(20,184,166,.1); border:1px solid rgba(20,184,166,.25); color:#5eead4; border-radius:999px; padding:4px 14px; font-size:.78rem; font-weight:600; margin-bottom:18px; }
.hero h1 { font-size:clamp(2rem,5vw,2.8rem); font-weight:900; letter-spacing:-.03em; margin-bottom:12px; }
.g { background:var(--agrad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero p { color:var(--text2); font-size:1rem; max-width:560px; margin:0 auto; }

/* ── PAGE WRAP ───────────────────────────────── */
.page-wrap { max-width:1100px; margin:0 auto; padding:0 20px 80px; }

/* ── TOOL CARD ───────────────────────────────── */
.tool-card { background:var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; margin-bottom:24px; }

/* Meta bar */
.pb-meta { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.pb-title-input {
  flex:1; min-width:180px;
  padding:7px 12px;
  background:var(--input); border:1px solid var(--border2); border-radius:8px;
  color:var(--text); font-size:.9rem; font-weight:600; outline:none;
  transition:border-color .15s;
}
.pb-title-input:focus { border-color:var(--accent); }
.pb-title-input::placeholder { color:var(--faint); }

.lang-select {
  padding:7px 10px; background:var(--input); border:1px solid var(--border2);
  border-radius:8px; color:var(--text); font-size:.84rem; outline:none; cursor:pointer;
  transition:border-color .15s; max-width:160px;
}
.lang-select:focus { border-color:var(--accent); }

/* Action buttons */
.pb-actions { display:flex; gap:6px; margin-left:auto; flex-wrap:wrap; }
.pb-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:7px 13px; border-radius:8px; font-size:.78rem; font-weight:700;
  border:1px solid var(--border2); background:var(--input); color:var(--text2);
  cursor:pointer; transition:all .12s; white-space:nowrap;
}
.pb-btn svg { width:13px; height:13px; flex-shrink:0; }
.pb-btn:hover:not(:disabled) { border-color:var(--accent); color:var(--text); }
.pb-btn:disabled { opacity:.35; cursor:not-allowed; }
.pb-btn.primary { background:var(--agrad); border-color:transparent; color:#fff; }
.pb-btn.primary:hover { filter:brightness(1.1); }
.pb-btn.done { border-color:#4ade80; color:#4ade80; background:rgba(74,222,128,.08); }
.pb-btn.danger:hover:not(:disabled) { border-color:#f43f5e; color:#f43f5e; }

/* Tab row */
.pb-tabs { display:flex; align-items:center; gap:2px; padding:10px 18px 0; border-bottom:1px solid var(--border); }
.pb-tab {
  padding:8px 18px; font-size:.82rem; font-weight:700; border:none;
  background:transparent; color:var(--faint); cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-1px;
  transition:all .15s; display:flex; align-items:center; gap:6px;
}
.pb-tab svg { width:13px; height:13px; }
.pb-tab:hover { color:var(--text2); }
.pb-tab.active { color:var(--accent); border-bottom-color:var(--accent); }

/* Editor */
.pb-editor-wrap { position:relative; }
.pb-editor {
  display:block; width:100%; min-height:420px;
  padding:20px 24px;
  background:var(--input);
  border:none; outline:none; resize:none;
  color:var(--text); font-family:'Fira Code','Cascadia Code',Consolas,monospace;
  font-size:.88rem; line-height:1.8; tab-size:2;
}
.pb-editor::placeholder { color:var(--faint); }

/* Preview */
.pb-preview-wrap {
  min-height:420px; background:var(--input);
  overflow:auto; padding:20px 24px;
}
.pb-preview-wrap pre {
  background:transparent !important;
  padding:0 !important; margin:0;
  font-family:'Fira Code','Cascadia Code',Consolas,monospace;
  font-size:.88rem; line-height:1.8;
}
.pb-preview-wrap pre code {
  background:transparent !important;
  font-family:inherit; font-size:inherit;
}
/* Override prism-tomorrow background */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color:#8292a2; }
.pb-plain-text { color:var(--text2); white-space:pre-wrap; word-break:break-all; font-family:'Fira Code','Cascadia Code',Consolas,monospace; font-size:.88rem; line-height:1.8; }

/* Status bar */
.pb-status {
  display:flex; align-items:center; gap:16px; padding:8px 20px;
  border-top:1px solid var(--border); font-size:.72rem; color:var(--faint);
  background:var(--card);
}
.pb-status-item { display:flex; align-items:center; gap:4px; }
.pb-status strong { color:var(--text2); font-weight:700; font-variant-numeric:tabular-nums; }
.lang-badge { margin-left:auto; padding:2px 10px; border-radius:999px; background:rgba(20,184,166,.1); color:#5eead4; font-size:.68rem; font-weight:700; border:1px solid rgba(20,184,166,.2); }

/* Share bar */
.share-bar {
  display:flex; align-items:center; gap:8px; padding:12px 18px;
  border-top:1px solid var(--border); background:rgba(20,184,166,.04);
}
.share-bar-label { font-size:.74rem; font-weight:700; color:var(--accent); flex-shrink:0; }
.share-url-input {
  flex:1; padding:7px 12px; background:var(--input); border:1px solid rgba(20,184,166,.3);
  border-radius:8px; color:var(--text2); font-size:.78rem; font-family:monospace;
  outline:none; cursor:text;
}
.share-url-input:focus { border-color:var(--accent); }
.share-close { width:24px; height:24px; border-radius:50%; border:1px solid var(--border2); background:transparent; color:var(--faint); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:.9rem; transition:all .12s; flex-shrink:0; }
.share-close:hover { border-color:#f43f5e; color:#f43f5e; }

/* ── RECENT PASTES ───────────────────────────── */
.recent-section { margin-bottom:40px; }
.recent-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.recent-header h2 { font-size:1rem; font-weight:800; }
.recent-clear { padding:4px 12px; border-radius:999px; font-size:.72rem; font-weight:700; border:1px solid var(--border2); background:transparent; color:var(--faint); cursor:pointer; transition:all .12s; }
.recent-clear:hover { border-color:#f43f5e; color:#f43f5e; }

.recent-list { display:flex; flex-direction:column; gap:8px; }
.recent-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:10px;
  background:var(--card); border:1px solid var(--border);
  cursor:pointer; transition:border-color .15s;
  text-decoration:none; color:inherit;
}
.recent-item:hover { border-color:var(--accent); }
.recent-lang-dot { width:8px; height:8px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.recent-info { flex:1; min-width:0; }
.recent-title { font-size:.84rem; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent-preview { font-size:.72rem; color:var(--faint); font-family:monospace; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.recent-meta { font-size:.69rem; color:var(--faint); white-space:nowrap; flex-shrink:0; text-align:right; }
.recent-meta span { display:block; }
.recent-remove { width:20px; height:20px; border-radius:50%; border:none; background:transparent; color:var(--faint); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:.8rem; flex-shrink:0; transition:color .12s; }
.recent-remove:hover { color:#f43f5e; }

.recent-empty { font-size:.82rem; color:var(--faint); text-align:center; padding:24px; font-style:italic; }

/* ── INFO SECTIONS ───────────────────────────── */
.info-sections { display:flex; flex-direction:column; gap:20px; margin-bottom:48px; }
.info-section { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:32px 36px; }
.info-icon-row { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.info-icon { width:40px; height:40px; border-radius:10px; background:rgba(20,184,166,.1); border:1px solid rgba(20,184,166,.2); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--accent); }
.info-icon svg { width:18px; height:18px; }
.info-section h2 { font-size:1.1rem; font-weight:800; }
.info-body { color:var(--text2); font-size:.9rem; line-height:1.8; }
.info-body p + p { margin-top:10px; }
.info-body ul { padding-left:20px; display:flex; flex-direction:column; gap:6px; }
.info-body strong { color:var(--text); font-weight:700; }
.info-body code { font-family:monospace; font-size:.83em; background:var(--border); padding:1px 5px; border-radius:4px; color:var(--accent); }

/* ── RELATED / BLOG ──────────────────────────── */
.related-section { margin-bottom:48px; }
.related-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.related-header h2 { font-size:1.15rem; font-weight:800; }
.view-all-link { display:inline-flex; align-items:center; gap:4px; font-size:.82rem; font-weight:600; color:var(--accent); text-decoration:none; }
.view-all-link svg { width:14px; height:14px; }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.related-tool-card { display:flex; flex-direction:column; gap:10px; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:18px; text-decoration:none; color:inherit; transition:border-color .15s,transform .15s; }
.related-tool-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.rt-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.rt-icon svg { width:20px; height:20px; color:#fff; }
.rt-name { font-size:.9rem; font-weight:700; }
.rt-desc { font-size:.78rem; color:var(--text2); line-height:1.5; flex:1; }
.rt-link { display:inline-flex; align-items:center; gap:3px; font-size:.76rem; font-weight:700; color:var(--accent); }
.rt-link svg { width:12px; height:12px; }
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.blog-card { display:flex; flex-direction:column; gap:8px; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:20px; text-decoration:none; color:inherit; transition:border-color .15s; }
.blog-card:hover { border-color:var(--accent); }
.blog-cat { display:inline-block; padding:2px 10px; border-radius:999px; font-size:.71rem; font-weight:700; }
.blog-title { font-size:.92rem; font-weight:700; line-height:1.35; }
.blog-excerpt { font-size:.8rem; color:var(--text2); line-height:1.55; flex:1; }
.blog-meta { font-size:.72rem; color:var(--faint); }
.blog-read { display:inline-flex; align-items:center; gap:3px; font-size:.76rem; font-weight:700; color:var(--accent); margin-top:auto; }
.blog-read svg { width:12px; height:12px; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer { background:var(--card); border-top:1px solid var(--border); padding:48px 20px 0; }
.footer-inner { max-width:1240px; margin:0 auto; display:grid; grid-template-columns:1fr auto; gap:40px; padding-bottom:40px; }
.footer-brand { max-width:280px; }
.footer-tagline { font-size:.82rem; color:var(--text2); margin-top:10px; line-height:1.55; }
.footer-nav-wrap { display:flex; gap:48px; }
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-col h4 { font-size:.78rem; font-weight:700; color:var(--text2); text-transform:uppercase; letter-spacing:.07em; margin-bottom:12px; }
.footer-col a { font-size:.84rem; color:var(--faint); text-decoration:none; transition:color .15s; }
.footer-col a:hover { color:var(--text); }
.footer-bottom { border-top:1px solid var(--border); padding:16px 0; }
.footer-bottom .inner { max-width:1240px; margin:0 auto; padding:0 20px; display:flex; justify-content:space-between; align-items:center; }
.footer-bottom p { font-size:.78rem; color:var(--faint); }
