/* ==========================================================================
   SPICER WEBSITES — RED BOTTOM DEMO BAR & 2-COLUMN THUMBNAIL MENU
   ========================================================================== */

:root {
  --demo-red: #dc2626;
  --demo-red-dark: #b91c1c;
  --sn-bg: rgba(15, 23, 42, 0.97);
  --sn-border: rgba(56, 189, 248, 0.35);
  --sn-accent: #38bdf8;
  --sn-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --sn-radius: 16px;
}

/* Ensure content on the page doesn't get covered by the bottom bar */
body {
  padding-bottom: 52px !important;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 112px !important;
  }
  .sticky-mobile-lead-bar {
    bottom: 46px !important;
  }
}

/* ==========================================
   RED FIXED BOTTOM DEMO BAR
   ========================================== */
.spicer-demo-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 46px;
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 999999;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
}

.spicer-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spicer-bottom-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
}

.spicer-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: spicerRedPulse 2s infinite;
}

@keyframes spicerRedPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.spicer-bottom-size-tag {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fef2f2;
}

.spicer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spicer-btn-back {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.spicer-btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.spicer-btn-settings-toggle {
  background: #ffffff;
  color: #b91c1c;
  border: none;
  padding: 5px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.spicer-btn-settings-toggle:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spicer-btn-settings-toggle.is-active {
  background: #0f172a;
  color: #38bdf8;
}

/* ==========================================
   2-COLUMN THUMBNAIL PORTFOLIO MENU
   ========================================== */
.spicer-settings-drawer {
  position: fixed;
  bottom: 54px;
  right: 18px;
  width: 500px;
  max-width: calc(100vw - 36px);
  background: var(--sn-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--sn-border);
  border-radius: var(--sn-radius);
  box-shadow: var(--sn-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 999998;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: spicerDrawerUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spicer-settings-drawer.is-open {
  display: flex;
}

@keyframes spicerDrawerUp {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.spicer-drawer-header {
  padding: 12px 16px;
  background: rgba(2, 6, 23, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spicer-drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spicer-drawer-logo {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #041226;
}

.spicer-drawer-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f1f5f9;
}

.spicer-drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.spicer-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.spicer-drawer-body {
  padding: 14px;
  max-height: 72vh;
  overflow-y: auto;
}

/* 2-Column Thumbnail Grid */
.spicer-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spicer-thumb-card {
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
  position: relative;
}

.spicer-thumb-card:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background: rgba(30, 41, 59, 1);
}

.spicer-thumb-card.is-current {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
}

.spicer-current-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  background: #0284c7;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Thumbnail Visual Area */
.spicer-thumb-screen {
  height: 92px;
  background: #0b1120;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spicer-mini-browser-dots {
  position: absolute;
  top: 6px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.spicer-mini-browser-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.spicer-mini-browser-dots span:nth-child(1) { background: #ef4444; }
.spicer-mini-browser-dots span:nth-child(2) { background: #f59e0b; }
.spicer-mini-browser-dots span:nth-child(3) { background: #10b981; }

.spicer-thumb-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.spicer-thumb-card:hover .spicer-thumb-screen img {
  transform: scale(1.06);
  opacity: 0.65;
}

.spicer-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.spicer-all-icon {
  font-size: 32px;
  z-index: 2;
  color: #38bdf8;
}

/* Industry Title in the Middle */
.spicer-thumb-center {
  padding: 10px 10px 4px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spicer-thumb-industry {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  display: block;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.spicer-thumb-company {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-top: 3px;
  line-height: 1.3;
}

/* Page Count at the Bottom */
.spicer-thumb-bottom {
  padding: 6px 10px 12px;
  text-align: center;
}

.spicer-page-count {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.size-1 {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.size-4 {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.size-10 {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.size-all {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal for Simulated Submissions & Phone Calls */
.spicer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spicer-modal-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: #f8fafc;
  font-family: inherit;
  animation: spicerDrawerUp 0.25s ease-out;
}

.spicer-modal-card h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spicer-modal-card p {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.spicer-modal-details {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #cbd5e1;
}

.spicer-modal-btn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.spicer-modal-btn:hover {
  background: #0284c7;
}

@media (max-width: 600px) {
  .spicer-demo-bottom-bar {
    padding: 0 10px;
    height: 44px;
  }
  .spicer-bottom-badge {
    font-size: 11px;
  }
  .spicer-bottom-size-tag {
    display: none;
  }
  .spicer-btn-back {
    padding: 4px 8px;
    font-size: 11px;
  }
  .spicer-btn-settings-toggle {
    padding: 4px 9px;
    font-size: 11px;
  }
  .spicer-settings-drawer {
    right: 8px;
    bottom: 50px;
    width: calc(100vw - 16px);
  }
  .spicer-thumb-grid {
    gap: 8px;
  }
  .spicer-thumb-screen {
    height: 75px;
  }
  .spicer-thumb-industry {
    font-size: 12px;
  }
  .spicer-thumb-company {
    font-size: 10px;
  }
  .spicer-page-count {
    font-size: 10px;
    padding: 2px 7px;
  }
}
