/* Link Shortener — Tool Styles */
/* Extends /style.css — General/Utility theme overrides */

/* ── Ad slots hidden ── */
.ad-slot,.ad-leaderboard,.ad-in-article,.ad-anchor,.ad-placeholder,[class*='ad-slot']{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}

/* ── Page hero ── */
.tool-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.tool-hero p {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ── Main layout ── */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Calculator card ── */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.calc-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.calc-card h2 svg {
  color: #4f46e5;
}

/* ── Form fields ── */
.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-field input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}
.form-field input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

/* ── Result Notification ── */
.result-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}
html[data-theme="dark"] .result-box {
  background: #064e3b;
  border-color: #065f46;
}
.result-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #16a34a;
  margin: 0.75rem 0;
  display: block;
}
html[data-theme="dark"] .result-id { color: #4ade80; }

/* ── Links Table/List ── */
.links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.links-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.link-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}
.link-item:hover {
  border-color: #4f46e5;
  transform: translateX(4px);
}
.link-id-badge {
  background: #eef2ff;
  color: #4f46e5;
  font-family: monospace;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
html[data-theme="dark"] .link-id-badge { background: #312e81; color: #a5b4fc; }

.link-url-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-actions {
  display: flex;
  gap: 0.5rem;
}
.action-btn {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-btn:hover {
  background: #f8fafc;
  color: #4f46e5;
  border-color: #4f46e5;
}
.action-btn.delete:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fecaca;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Related tools grid ── */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .related-tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #4f46e5;
}
.icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.tool-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Content section ── */
.content-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  border-left: 4px solid #4f46e5;
  padding-left: 1rem;
}
.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.steps-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  counter-reset: step;
}
.steps-box li {
  list-style: none;
  position: relative;
  padding: 0.75rem 0 0.75rem 3rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.steps-box li:last-child { border-bottom: none; }
.steps-box li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #4f46e5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-pill {
  background: #f0f7ff;
  border-radius: 14px;
  padding: 1.25rem;
}
html[data-theme="dark"] .feature-pill { background: #1e293b; }
.feature-pill strong {
  display: block;
  color: #4f46e5;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.feature-pill p {
  font-size: 0.85rem;
  margin: 0;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.faq-item p {
  font-size: 0.9rem;
  margin: 0;
}

.related-list {
  list-style: none;
  padding: 0;
}
.related-list li {
  border-bottom: 1px solid var(--border);
}
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.related-list a:hover { color: #4f46e5; padding-left: 0.5rem; }
.related-list a::before {
  content: "→";
  color: #4f46e5;
  font-weight: 700;
}

/* ── Footer ── */
#footer-root {
  background: #000000;
  margin-top: 3rem;
}
.site-footer {
  background: #000000 !important;
  color: #94a3b8 !important;
}
.site-footer a { color: #94a3b8 !important; }
.site-footer a:hover { color: #fff !important; }
