/* ============================================================
   EF Color Selector Tool — Frontend Styles
   Version: 1.0.0 | March 2026

   Exact port of ef-color-selector.css, scoped to:
     #ef-color-selector.ef-cs
   to prevent conflicts with any WordPress theme or plugin.

   Brand Colors:
   - Navy Dark:   #0B1929
   - Green:       #4CAF50
   - Green Hover: #43A047
   - Page BG:     #F4F6F8
   - Card BG:     #FFFFFF

   Fonts: Outfit (headings), Inter (body) — loaded via wp_enqueue_style
   ============================================================ */


/* ── Scoped Variables & Reset ── */
#ef-color-selector.ef-cs,
#ef-color-selector.ef-cs *,
#ef-color-selector.ef-cs *::before,
#ef-color-selector.ef-cs *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#ef-color-selector.ef-cs {
  --ef-navy-dark: #0B1929;
  --ef-navy: #0F2138;
  --ef-navy-mid: #142A45;
  --ef-navy-light: #1A3455;
  --ef-green: #4CAF50;
  --ef-green-hover: #43A047;
  --ef-green-light: #66BB6A;
  --ef-white: #ffffff;
  --ef-page-bg: #F4F6F8;
  --ef-card-bg: #ffffff;
  --ef-text-dark: #1A2533;
  --ef-text: #3A4A5C;
  --ef-text-light: #6B7F94;
  --ef-text-muted: #94A3B8;
  --ef-border: #E2E8F0;
  --ef-card-shadow: 0 2px 8px rgba(15, 33, 56, 0.06), 0 8px 24px rgba(15, 33, 56, 0.08);
  --ef-card-shadow-hover: 0 4px 12px rgba(15, 33, 56, 0.08), 0 16px 40px rgba(15, 33, 56, 0.14);
  --ef-font-head: 'Outfit', system-ui, sans-serif;
  --ef-font-body: 'Inter', system-ui, sans-serif;
  --ef-radius: 10px;
  --ef-transition: 0.25s ease;

  font-family: var(--ef-font-body);
  background: var(--ef-page-bg);
  color: var(--ef-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* ═══════════════════════════════════════════════════════════
   HERO (dark navy)
   ═══════════════════════════════════════════════════════════ */
#ef-color-selector.ef-cs .ef-cs-hero {
  background: var(--ef-navy-dark);
  color: var(--ef-white);
  padding: 60px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#ef-color-selector.ef-cs .ef-cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(76, 175, 80, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

#ef-color-selector.ef-cs .ef-cs-hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ef-green-light);
  margin-bottom: 16px;
  position: relative;
}

#ef-color-selector.ef-cs .ef-cs-hero__heading,
#ef-color-selector.ef-cs .ef-cs-hero h2,
#ef-color-selector.ef-cs .ef-cs-hero h3 {
  font-family: var(--ef-font-head);
  font-size: clamp(30px, 5.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  position: relative;
  color: var(--ef-white) !important;
}

#ef-color-selector.ef-cs .ef-cs-hero__heading span {
  color: var(--ef-green) !important;
}

#ef-color-selector.ef-cs .ef-cs-hero__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}


/* ═══════════════════════════════════════════════════════════
   NAVIGATION (sticky white bar + underline indicator)
   ═══════════════════════════════════════════════════════════ */
#ef-color-selector.ef-cs .ef-cs-nav-wrap {
  background: var(--ef-white);
  border-bottom: 1px solid var(--ef-border);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#ef-color-selector.ef-cs .ef-cs-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#ef-color-selector.ef-cs .ef-cs-nav::-webkit-scrollbar {
  display: none;
}

#ef-color-selector.ef-cs .ef-cs-nav__btn {
  font-family: var(--ef-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ef-text-muted);
  background: none;
  border: none;
  padding: 16px 18px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--ef-transition);
}

#ef-color-selector.ef-cs .ef-cs-nav__btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background: var(--ef-green);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--ef-transition);
}

#ef-color-selector.ef-cs .ef-cs-nav__btn:hover {
  color: var(--ef-text);
}

#ef-color-selector.ef-cs .ef-cs-nav__btn.active {
  color: var(--ef-text-dark);
  font-weight: 700;
}

#ef-color-selector.ef-cs .ef-cs-nav__btn.active::after {
  transform: scaleX(1);
}


/* ═══════════════════════════════════════════════════════════
   SPACE FILTERS
   ═══════════════════════════════════════════════════════════ */
#ef-color-selector.ef-cs .ef-cs-filters {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

#ef-color-selector.ef-cs .ef-cs-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#ef-color-selector.ef-cs .ef-cs-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ef-text-muted);
  margin-right: 4px;
}

#ef-color-selector.ef-cs .ef-cs-pill {
  font-family: var(--ef-font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ef-text-light);
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  padding: 6px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--ef-transition);
}

#ef-color-selector.ef-cs .ef-cs-pill:hover {
  border-color: #CBD5E1;
  color: var(--ef-text);
}

#ef-color-selector.ef-cs .ef-cs-pill.active {
  background: var(--ef-green);
  border-color: var(--ef-green);
  color: var(--ef-white);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}


/* ═══════════════════════════════════════════════════════════
   CONTENT AREA (category panels)
   ═══════════════════════════════════════════════════════════ */
#ef-color-selector.ef-cs .ef-cs-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

#ef-color-selector.ef-cs .ef-cs-category {
  display: none;
  animation: efFadeUp 0.35s ease;
}

#ef-color-selector.ef-cs .ef-cs-category.active {
  display: block;
}

@keyframes efFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ef-color-selector.ef-cs .ef-cs-cat-header {
  margin-bottom: 24px;
}

#ef-color-selector.ef-cs .ef-cs-cat-header h3 {
  font-family: var(--ef-font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--ef-text-dark);
  margin-bottom: 6px;
}

#ef-color-selector.ef-cs .ef-cs-cat-header p {
  font-size: 14px;
  color: var(--ef-text-light);
  max-width: 620px;
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════
   CARD GRID
   ═══════════════════════════════════════════════════════════ */
#ef-color-selector.ef-cs .ef-cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

#ef-color-selector.ef-cs .ef-cs-card {
  background: var(--ef-card-bg);
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--ef-card-shadow);
  transition: all var(--ef-transition);
  outline: none;
}

#ef-color-selector.ef-cs .ef-cs-card:hover {
  border-color: var(--ef-green);
  box-shadow: var(--ef-card-shadow-hover);
  transform: translateY(-4px);
}

#ef-color-selector.ef-cs .ef-cs-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.35);
  border-color: var(--ef-green);
}

#ef-color-selector.ef-cs .ef-cs-card.hidden {
  display: none;
}

#ef-color-selector.ef-cs .ef-cs-card__swatch {
  height: 170px;
  position: relative;
  overflow: hidden;
  background: #e8ecf0;
}

#ef-color-selector.ef-cs .ef-cs-card__swatch canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#ef-color-selector.ef-cs .ef-cs-card__swatch .gp {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

#ef-color-selector.ef-cs .ef-cs-card__body {
  padding: 16px 18px;
}

#ef-color-selector.ef-cs .ef-cs-card__name {
  font-family: var(--ef-font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ef-text-dark);
  margin-bottom: 4px;
}

#ef-color-selector.ef-cs .ef-cs-card__desc {
  font-size: 13px;
  color: var(--ef-text-light);
  line-height: 1.5;
}

#ef-color-selector.ef-cs .ef-cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

#ef-color-selector.ef-cs .ef-cs-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--ef-page-bg);
  color: var(--ef-text-muted);
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--ef-border);
}


/* ═══════════════════════════════════════════════════════════
   MODAL OVERLAY
   ═══════════════════════════════════════════════════════════ */
#ef-color-selector.ef-cs .ef-cs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 41, 0.55);
  backdrop-filter: blur(4px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#ef-color-selector.ef-cs .ef-cs-overlay.show {
  display: flex;
}

#ef-color-selector.ef-cs .ef-cs-modal {
  background: var(--ef-white);
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(11, 25, 41, 0.25);
  animation: efSlideUp 0.3s ease;
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes efSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#ef-color-selector.ef-cs .ef-cs-modal__swatch {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #e8ecf0;
}

#ef-color-selector.ef-cs .ef-cs-modal__swatch canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#ef-color-selector.ef-cs .ef-cs-modal__swatch .gp {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

#ef-color-selector.ef-cs .ef-cs-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(11, 25, 41, 0.5);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--ef-transition);
}

#ef-color-selector.ef-cs .ef-cs-modal__close:hover {
  background: rgba(11, 25, 41, 0.75);
}

#ef-color-selector.ef-cs .ef-cs-modal__body {
  padding: 22px 24px 26px;
}

#ef-color-selector.ef-cs .ef-cs-modal__body h3 {
  font-family: var(--ef-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ef-text-dark);
  margin-bottom: 2px;
}

#ef-color-selector.ef-cs .ef-cs-modal__type {
  font-size: 12px;
  font-weight: 600;
  color: var(--ef-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

#ef-color-selector.ef-cs .ef-cs-modal__body>p {
  font-size: 14px;
  color: var(--ef-text);
  line-height: 1.7;
  margin-bottom: 18px;
}

#ef-color-selector.ef-cs .ef-cs-modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

#ef-color-selector.ef-cs .ef-cs-spec-box {
  background: var(--ef-page-bg);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--ef-border);
}

#ef-color-selector.ef-cs .ef-cs-spec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ef-text-muted);
  margin-bottom: 2px;
}

#ef-color-selector.ef-cs .ef-cs-spec-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ef-text-dark);
}

#ef-color-selector.ef-cs .ef-cs-modal__note {
  font-size: 11px;
  color: var(--ef-text-light);
  font-style: italic;
  padding: 12px 14px;
  background: var(--ef-page-bg);
  border-left: 3px solid var(--ef-green);
  border-radius: 0 8px 8px 0;
  margin-bottom: 18px;
}

#ef-color-selector.ef-cs .ef-cs-modal__cta {
  display: block;
  width: 100%;
  font-family: var(--ef-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ef-white);
  background: var(--ef-green);
  border: none;
  padding: 15px;
  border-radius: var(--ef-radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--ef-transition);
}

#ef-color-selector.ef-cs .ef-cs-modal__cta:hover {
  background: var(--ef-green-hover);
  color: var(--ef-white);
}


/* ═══════════════════════════════════════════════════════════
   CTA SECTION (dark navy)
   ═══════════════════════════════════════════════════════════ */
#ef-color-selector.ef-cs .ef-cs-cta {
  background: var(--ef-navy-dark);
  color: var(--ef-white);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#ef-color-selector.ef-cs .ef-cs-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(76, 175, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#ef-color-selector.ef-cs .ef-cs-cta h3,
#ef-color-selector.ef-cs .ef-cs-cta h2 {
  font-family: var(--ef-font-head);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  color: var(--ef-white) !important;
}

#ef-color-selector.ef-cs .ef-cs-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 440px;
  margin: 0 auto 28px;
  position: relative;
}

#ef-color-selector.ef-cs .ef-cs-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

#ef-color-selector.ef-cs .ef-cs-btn--green {
  font-family: var(--ef-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ef-white);
  background: var(--ef-green);
  border: none;
  padding: 15px 34px;
  border-radius: var(--ef-radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ef-transition);
  display: inline-block;
}

#ef-color-selector.ef-cs .ef-cs-btn--green:hover {
  background: var(--ef-green-hover);
  color: var(--ef-white);
}

#ef-color-selector.ef-cs .ef-cs-btn--ghost {
  font-family: var(--ef-font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 15px 34px;
  border-radius: var(--ef-radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ef-transition);
  display: inline-block;
}

#ef-color-selector.ef-cs .ef-cs-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #ef-color-selector.ef-cs .ef-cs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  #ef-color-selector.ef-cs .ef-cs-card__swatch {
    height: 130px;
  }

  #ef-color-selector.ef-cs .ef-cs-nav__btn {
    padding: 14px 12px;
    font-size: 12px;
  }

  #ef-color-selector.ef-cs .ef-cs-modal__specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  #ef-color-selector.ef-cs .ef-cs-grid {
    grid-template-columns: 1fr;
  }
}