/* public/components/promo/promo.css */

.tone-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tone-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tone-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Nav Tabs (Matching Portfolio Segmented Nav Bar) */
.promo-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.promo-tab-btn {
  flex: 1;
  min-width: 160px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text2, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.promo-tab-btn:hover {
  color: var(--text, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}

.promo-tab-btn.active {
  background: linear-gradient(135deg, var(--brand, #6366f1), var(--violet, #8b5cf6)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--brand-soft, rgba(99, 102, 241, 0.35));
  font-weight: 800;
}

/* OG Social Card Preview */
.og-preview-card {
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.og-preview-banner {
  height: 140px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.og-preview-content {
  padding: 14px;
}

.og-preview-domain {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.og-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
  line-height: 1.4;
}

.og-preview-desc {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Banner Canvas */
.banner-canvas-container {
  width: 100%;
  max-width: 650px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md, 12px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#promo-banner-canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Template Type Selector Pills */
.banner-type-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-type-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.banner-type-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Slide Presentation Deck */
.pitch-deck-viewer {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-top: 14px;
}

.pitch-slide-card {
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pitch-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.pitch-slide-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.pitch-slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

/* Quote Calculator Lead Magnet */
.quote-calc-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md, 12px);
  padding: 16px;
  margin-top: 16px;
}

/* vCard Business Card Preview */
.vcard-preview-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Marketing Score Card (Matching Portfolio Surface Cards) */
.brand-score-card {
  background: var(--surface, #0B1628);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.brand-score-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-score-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.brand-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

/* Checklist Items */
.promo-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-checklist-item:hover {
  border-color: var(--line2);
  background: var(--bg2);
}

.promo-checklist-item.done {
  opacity: 0.6;
  text-decoration: line-through;
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Modal Overlay */
.promo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panes Cards & Forms matching Portfolio Unified Design */
.promo-hub-wrapper .card {
  background: var(--surface, #0B1628) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  margin-bottom: 20px;
}

.promo-hub-wrapper .card-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text, #ffffff);
}

.promo-hub-wrapper .card-sub {
  font-size: 12px;
  color: var(--text2, #94a3b8);
  margin-top: 4px;
}

.promo-hub-wrapper .field-input,
.promo-hub-wrapper .field-select,
.promo-hub-wrapper textarea {
  background: var(--bg2, rgba(15, 23, 42, 0.6));
  border: 1px solid var(--line2, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  color: var(--text, #ffffff);
  transition: all 0.2s ease;
}

.promo-hub-wrapper .field-input:focus,
.promo-hub-wrapper .field-select:focus,
.promo-hub-wrapper textarea:focus {
  border-color: var(--brand, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ====================================================
   6 RESUME TEMPLATES STYLING (PROMO CV BUILDER)
==================================================== */

/* Shared Resume Elements */
.cv-section-block {
  margin-bottom: 18px;
  break-inside: avoid;
  page-break-inside: avoid;
}

/* 1. ATS Friendly Template */
.cv-template-ats {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  padding: 20px;
  line-height: 1.6;
}
.cv-template-ats h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cv-template-ats .ats-title {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 8px;
}
.cv-template-ats .ats-contact {
  font-size: 12px;
  color: #111111;
}
.cv-template-ats h2 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid #000000;
  padding-bottom: 4px;
  margin: 0 0 8px 0;
  color: #000000;
  letter-spacing: 0.5px;
}
.cv-template-ats .ats-body-text {
  font-size: 12.5px;
  color: #111111;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* 2. Classic Executive Template */
.cv-template-classic {
  font-family: Georgia, 'Times New Roman', serif;
  background: #ffffff;
  color: #1f2937;
  padding: 24px;
  line-height: 1.6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.cv-template-classic h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #0f172a;
  letter-spacing: 0.5px;
}
.cv-template-classic .classic-title {
  font-size: 14.5px;
  font-style: italic;
  color: #475569;
  margin-bottom: 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.cv-template-classic .classic-contact {
  font-size: 12px;
  color: #64748b;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 3px double #334155;
  padding: 8px 0;
  margin-bottom: 18px;
}
.cv-template-classic h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e293b;
  border-bottom: 1px solid #94a3b8;
  padding-bottom: 4px;
  margin: 0 0 8px 0;
}
.cv-template-classic .classic-body-text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}
.cv-template-classic .classic-skill-pill {
  display: inline-block;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin: 2px 3px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
}

/* 3. Modern Sidebar Template */
.cv-template-modern {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
}
.cv-modern-container {
  display: flex;
  min-height: 100%;
}
.cv-modern-sidebar {
  width: 250px;
  min-width: 250px;
  background: #f8fafc;
  border-inline-end: 1px solid #e2e8f0;
  padding: 22px 18px;
  box-sizing: border-box;
}
.cv-modern-main {
  flex: 1;
  padding: 24px;
  box-sizing: border-box;
}
.cv-template-modern h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 4px 0;
  color: #0f172a;
}
.cv-template-modern .modern-title {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 16px;
}
.cv-modern-sidebar h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 4px;
  margin: 0 0 10px 0;
}
.cv-modern-main h2 {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cv-modern-main h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: #2563eb;
  border-radius: 2px;
}
.cv-template-modern .modern-skill-tag {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 2px;
}
@media (max-width: 680px) {
  .cv-modern-container {
    flex-direction: column !important;
  }
  .cv-modern-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    border-inline-end: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
}

/* 4. Dark Luxury Template */
.cv-template-dark {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0B1628;
  color: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.cv-template-dark h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 4px 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.cv-template-dark .dark-title {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
}
.cv-template-dark .dark-contact {
  font-size: 11.5px;
  color: #94a3b8;
}
.cv-template-dark h2 {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding-bottom: 5px;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}
.cv-template-dark .dark-body-text {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
}
.cv-template-dark .dark-skill-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 2px;
}

/* 5. Executive Gold Template */
.cv-template-executive {
  font-family: Georgia, 'Times New Roman', serif;
  background: #17171c;
  color: #f4f4f5;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}
.cv-template-executive h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #fbbf24;
  letter-spacing: 1px;
}
.cv-template-executive .gold-title {
  font-size: 13.5px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}
.cv-template-executive .gold-contact {
  font-size: 11.5px;
  color: #d1d5db;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.cv-template-executive h2 {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #f59e0b;
  border-bottom: 1.5px solid #d97706;
  padding-bottom: 4px;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}
.cv-template-executive .gold-body-text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12.5px;
  color: #e4e4e7;
  line-height: 1.6;
  white-space: pre-wrap;
}
.cv-template-executive .gold-skill-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  margin: 2px 2px;
}

/* 6. Creative Gradient Template */
.cv-template-gradient {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.cv-gradient-header {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4);
  color: #ffffff;
  padding: 22px 24px;
}
.cv-gradient-header h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 4px 0;
  color: #ffffff;
}
.cv-gradient-header .gradient-title {
  font-size: 14px;
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 8px;
}
.cv-gradient-header .gradient-contact {
  font-size: 11.5px;
  color: #f1f5f9;
}
.cv-gradient-body {
  padding: 22px 24px;
}
.cv-template-gradient h2 {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #4f46e5;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 4px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cv-template-gradient .gradient-body-text {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}
.cv-template-gradient .gradient-skill-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 2px;
}
