/* LinkedIn Text Formatter — Styles */

/* ── Layout ── */
.ltf-main {
  background: var(--bg, #f8fafc);
  min-height: 100vh;
}

.ltf-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Hero ── */
.ltf-hero {
  background: linear-gradient(135deg, #0077b5 0%, #005fa3 100%);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.ltf-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: #f8fafc;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.ltf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.ltf-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ltf-hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Tool wrapper ── */
.ltf-tool-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  margin: 2rem 0 3rem;
  overflow: hidden;
}

/* ── Tabs ── */
.ltf-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ltf-tab {
  flex: 1;
  padding: 14px 16px;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  font-family: 'Inter', sans-serif;
}

.ltf-tab:hover {
  color: #0077b5;
  background: rgba(0,119,181,0.04);
}

.ltf-tab.active {
  color: #0077b5;
  border-bottom-color: #0077b5;
  background: white;
}

/* ── Panels ── */
.ltf-panel {
  display: none;
  padding: 1.75rem;
}

.ltf-panel.active {
  display: block;
}

/* ── Input section ── */
.ltf-input-section {
  margin-bottom: 1.5rem;
}

.ltf-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ltf-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ltf-label i { color: #0077b5; }

.ltf-textarea {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  resize: vertical;
  min-height: 110px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
  box-sizing: border-box;
}

.ltf-textarea:focus {
  border-color: #0077b5;
  box-shadow: 0 0 0 3px rgba(0,119,181,0.1);
  background: white;
}

/* ── Character counter ── */
.ltf-char-bar {
  margin-top: 8px;
}

.ltf-char-counts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 4px;
}

.ltf-char-count {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.ltf-char-sep { color: #cbd5e1; }

.ltf-char-label {
  color: #94a3b8;
  font-weight: 400;
  margin-left: 2px;
}

.ltf-see-more {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ltf-see-more i { color: #0077b5; }

.ltf-char-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.ltf-char-fill {
  height: 100%;
  border-radius: 99px;
  background: #10b981;
  transition: width 0.2s, background 0.2s;
  width: 0%;
}

.ltf-char-fill.warning { background: #f59e0b; }
.ltf-char-fill.danger  { background: #ef4444; }

/* ── Emoji bar ── */
.ltf-emoji-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ltf-emoji-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.ltf-emojis {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ltf-emoji {
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ltf-emoji:hover {
  background: #0077b5;
  border-color: #0077b5;
  transform: scale(1.15);
}

/* ── Styles grid ── */
.ltf-styles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 1.75rem;
}

.ltf-styles-header {
  padding: 0;
  margin-bottom: 1rem;
}

.ltf-styles-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ltf-styles-title i { color: #0077b5; }

.ltf-styles-count {
  font-size: 0.75rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 50px;
}

.ltf-styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

/* ── Style card ── */
.ltf-style-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
  overflow: hidden;
}

.ltf-style-card:hover {
  border-color: #0077b5;
  box-shadow: 0 4px 20px rgba(0,119,181,0.12);
  transform: translateY(-2px);
}

.ltf-style-card.copied {
  border-color: #10b981;
  background: rgba(16,185,129,0.04);
}

.ltf-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.ltf-card-preview {
  font-size: 1.15rem;
  color: #1e293b;
  min-height: 32px;
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 10px;
}

.ltf-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ltf-card-empty {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-style: italic;
}

.ltf-card-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #0077b5;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.ltf-card-copy:hover {
  background: #005fa3;
}

.ltf-card-copy.copied-btn {
  background: #10b981;
}

/* ── History ── */
.ltf-history-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.ltf-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ltf-history-header h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.ltf-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ltf-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.85rem;
}

.ltf-history-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e293b;
}

.ltf-history-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.ltf-history-copy {
  padding: 3px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.ltf-history-copy:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.ltf-history-empty {
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
  padding: 1rem;
  margin: 0;
}

/* ── Templates tab ── */
.ltf-templates-intro {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #64748b;
}

.ltf-template-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.ltf-filter-btn {
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.ltf-filter-btn.active,
.ltf-filter-btn:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.ltf-templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ltf-template-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.ltf-template-card:hover {
  border-color: #0077b5;
  box-shadow: 0 4px 16px rgba(0,119,181,0.1);
}

.ltf-template-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.ltf-template-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.ltf-template-preview {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

/* Template editor -->
.ltf-template-editor {
  margin-top: 1.5rem;
  border: 1.5px solid #0077b5;
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(0,119,181,0.03);
}

.ltf-template-editor-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0077b5;
  margin-bottom: 1rem;
}

.ltf-template-field {
  margin-bottom: 12px;
}

.ltf-template-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ltf-template-field input,
.ltf-template-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: white;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ltf-template-field input:focus,
.ltf-template-field textarea:focus {
  border-color: #0077b5;
}

.ltf-template-result {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #1e293b;
  margin: 1rem 0;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 80px;
}

/* ── Section builder ── */
.ltf-builder-intro {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.ltf-builder-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.ltf-builder-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.ltf-builder-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ltf-builder-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ltf-builder-badge.hook   { background:#dbeafe;color:#1d4ed8; }
.ltf-builder-badge.body   { background:#f1f5f9;color:#475569; }
.ltf-builder-badge.bullets{ background:#dcfce7;color:#166534; }
.ltf-builder-badge.cta    { background:#fef3c7;color:#92400e; }

.ltf-builder-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.ltf-builder-input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  resize: vertical;
  box-sizing: border-box;
  background: white;
}

.ltf-builder-output {
  margin-top: 1.25rem;
  border: 1.5px solid #10b981;
  border-radius: 14px;
  overflow: hidden;
}

.ltf-builder-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(16,185,129,0.06);
  border-bottom: 1px solid rgba(16,185,129,0.2);
  font-size: 0.82rem;
  font-weight: 700;
  color: #065f46;
}

.ltf-builder-result {
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Buttons ── */
.ltf-btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, #0077b5, #005fa3);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.ltf-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ltf-btn-ghost {
  background: none;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.ltf-btn-ghost:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.ltf-btn-xs {
  padding: 3px 10px;
  font-size: 0.72rem;
}

.ltf-btn-copy-sm {
  padding: 5px 14px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.ltf-btn-copy-sm:hover { opacity: 0.88; }

/* ── Notification ── */
.ltf-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: white;
  display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
  max-width: 300px;
}

.ltf-notification.success { background: #10b981; }
.ltf-notification.error   { background: #ef4444; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ltf-styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ltf-templates-grid {
    grid-template-columns: 1fr;
  }
  .ltf-panel { padding: 1.25rem; }
  .ltf-hero { padding: 2rem 1rem 2.5rem; }
}

@media (max-width: 480px) {
  .ltf-styles-grid {
    grid-template-columns: 1fr;
  }
  .ltf-tab { font-size: 0.78rem; padding: 12px 8px; }
  .ltf-tab i { display: none; }
  .ltf-emoji-bar { flex-direction: column; align-items: flex-start; }
}

/* ── Mode Toggle ── */
.ltf-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}

.ltf-mode-btn {
  flex: 1;
  padding: 9px 16px;
  background: transparent;
  border: none;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.ltf-mode-btn.active {
  background: white;
  color: #0077b5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Selective Bold ── */
.ltf-selective-intro {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #eff6ff;
  border-radius: 8px;
  border-left: 3px solid #0077b5;
}

.ltf-selective-intro p { margin: 0; }

.ltf-selective-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ltf-sel-btn {
  padding: 7px 14px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #1e293b;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.ltf-sel-btn:hover {
  border-color: #0077b5;
  background: rgba(0,119,181,0.06);
  color: #0077b5;
}

.ltf-selective-editor {
  min-height: 180px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  outline: none;
  line-height: 1.7;
  background: #f8fafc;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ltf-selective-editor:focus {
  border-color: #0077b5;
  box-shadow: 0 0 0 3px rgba(0,119,181,0.1);
  background: white;
}

.ltf-selective-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.ltf-selective-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── LinkedIn Preview Card ── */
.ltf-preview-intro {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.ltf-preview-source {
  margin-bottom: 1.5rem;
}

/* ═══ LinkedIn Card — Redesigned ═══ */
.ltf-li-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  max-width: 554px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08),
              0 2px 4px rgba(0,0,0,.05);
  overflow: hidden;
  font-size: 14px;
}

.ltf-li-header {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px 0;
  gap: 8px;
}

.ltf-li-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.ltf-li-info {
  flex: 1;
  min-width: 0;
}

.ltf-li-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(0,0,0,0.9);
  line-height: 1.33;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ltf-li-name:hover {
  color: #0077b5;
  text-decoration: underline;
  cursor: pointer;
}

.ltf-li-headline {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.6);
  line-height: 1.33;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ltf-li-time {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.ltf-li-time i {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.4);
}

.ltf-li-dot {
  font-size: 0.5rem;
  color: rgba(0,0,0,0.4);
  line-height: 1;
}

.ltf-li-follow {
  margin-left: 8px;
  background: none;
  border: none;
  color: #0077b5;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  flex-shrink: 0;
}

.ltf-li-follow::before {
  content: '+';
  font-size: 1rem;
  line-height: 1;
}

/* Post body */
.ltf-li-body {
  padding: 8px 16px 12px;
}

.ltf-li-text,
.ltf-li-see-more {
  font-size: 0.875rem;
  line-height: 1.57;
  color: rgba(0,0,0,0.9);
  white-space: pre-wrap;
  word-break: break-word;
}

.ltf-li-seemore-btn {
  background: none;
  border: none;
  color: rgba(0,0,0,0.5);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.ltf-li-seemore-btn:hover {
  color: rgba(0,0,0,0.9);
  text-decoration: underline;
}

/* Reactions row */
.ltf-li-reactions {
  padding: 4px 16px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid #e0e0e0;
}

.ltf-li-reaction-icons {
  display: flex;
  align-items: center;
  margin-right: 2px;
}

.ltf-li-react {
  font-size: 1rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.15));
}

.ltf-li-react:first-child {
  margin-left: 0;
}

.ltf-li-react-count {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.6);
  margin-left: 4px;
}

.ltf-li-comments-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: rgba(0,0,0,0.6);
}

/* Divider */
.ltf-li-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

/* Action buttons */
.ltf-li-actions {
  display: flex;
  align-items: center;
  padding: 2px 8px 4px;
}

.ltf-li-action {
  flex: 1;
  padding: 10px 4px;
  background: none;
  border: none;
  color: rgba(0,0,0,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
  transition: background 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.ltf-li-action i {
  font-size: 1.05rem;
}

.ltf-li-action:hover {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.9);
}

.ltf-li-action:nth-child(1):hover { color: #0077b5; }
.ltf-li-action:nth-child(2):hover { color: #0077b5; }

/* Preview meta inputs */
.ltf-preview-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.ltf-preview-meta-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.ltf-preview-meta-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: white;
}

.ltf-preview-meta-input:focus {
  border-color: #0077b5;
  box-shadow: 0 0 0 2px rgba(0,119,181,0.1);
}

/* LinkedIn card wrapper label */
.ltf-li-card-label {
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
  .ltf-li-card { font-size: 13px; }
  .ltf-li-action span { display: none; }
  .ltf-preview-meta { grid-template-columns: 1fr; }
}

/* ── Engagement Score ── */
.ltf-score-intro {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.ltf-score-input-wrap { margin-bottom: 1.5rem; }

.ltf-score-display {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.ltf-score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.ltf-score-circle svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ltf-score-bg-circle {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 10;
}

.ltf-score-fill-circle {
  fill: none;
  stroke: #10b981;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1s ease, stroke 0.5s;
}

.ltf-score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.ltf-score-number span:first-child {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  display: block;
  line-height: 1;
}

.ltf-score-max {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.ltf-score-label-wrap { flex: 1; }

.ltf-score-grade {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.ltf-score-summary {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.ltf-score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.ltf-score-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.ltf-score-row-pts {
  color: #64748b;
  font-weight: 400;
}

.ltf-score-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.ltf-score-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: #10b981;
  transition: width 0.8s ease;
}

.ltf-score-tips-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ltf-score-tips-title i { color: #f59e0b; }

.ltf-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ltf-tip-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.5;
}

.ltf-tip-icon { flex-shrink: 0; font-size: 1rem; }

.ltf-tip-perfect {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #065f46;
  font-weight: 600;
  justify-content: center;
  text-align: center;
}

@media (max-width: 480px) {
  .ltf-score-display {
    flex-direction: column;
    text-align: center;
  }
  .ltf-mode-btn { font-size: 0.78rem; padding: 8px 10px; }
}
