/* JWT Decoder — specific styles */
/* Extends /style.css — only visual overrides here */

/* ── 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, #7c3aed 0%, #5b21b6 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2rem;
  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.85);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

/* ── 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.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-card h2 svg {
  color: #7c3aed;
}

/* ── Form components ── */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
textarea, .textarea-styled {
  width: 100%;
  min-height: 150px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Buttons ── */
.btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.calc-btn {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 120px;
}
.calc-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.3);
}
.secondary-btn {
  background: var(--primary-light);
  color: var(--primary);
}
.copy-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}
.action-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #7c3aed;
  text-decoration: none;
  font-weight: 500;
}
.action-link:hover {
  text-decoration: underline;
}

/* ── JWT result area ── */
.dev-status {
  font-size: 0.95rem;
  margin: 1rem 0;
  font-weight: 600;
}
.result-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.status-badge {
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-badge.valid { background: #ecfdf5; color: #059669; }
.status-badge.expired { background: #fef2f2; color: #dc2626; }
.countdown-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Epoch grid */
.epoch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.epoch-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}
.epoch-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.epoch-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

/* JWT cards (header, payload, signature) */
.jwt-card {
  margin-top: 1.5rem;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-title-row h2 {
  margin-bottom: 0;
  font-size: 1rem;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.sig-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Content Section ── */
.content-section { margin-top: 2rem; }
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #7c3aed;
  padding-left: 0.75rem;
}
.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Steps Box */
.steps-box {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: step-counter;
}
.steps-box li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.steps-box li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.feature-pill strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #2563eb;
  margin-bottom: 0.4rem;
}
.feature-pill strong svg {
  flex-shrink: 0;
}
.feature-pill p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* FAQ items */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Related tools list */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li { border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.related-list a:hover { color: #2563eb; }
.related-list a::before {
  content: "→";
  color: #2563eb;
  font-weight: 700;
}

/* ── "People Also Use" tool cards ── */
.related-tools-section {
  margin: 2rem 0;
}
.related-tools-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .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;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit;
}
.tool-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light, #eff6ff);
}
.tool-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}
.tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── Footer ── */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 3rem 1.5rem;
}
.accuracy-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}