/* ==========================================================================
   Lokality Design System - Dedicated Data Hero & Core Components
   Dedicated hero section for data on both mobile and web
   ========================================================================== */

/* 1. HERO SECTION */
.hero-section {
  padding: 32px 0 48px;
  background: radial-gradient(circle at 80% 10%, rgba(18, 128, 84, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(217, 119, 6, 0.04) 0%, transparent 40%),
              #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 56px 0 72px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

/* Mobile: Natural flow putting Data Hub immediately after headline */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-header-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero-action-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 16px;
}

/* Desktop: 2-Column Side-by-Side Pitch & Dedicated Data Hub */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
  }

  .hero-content {
    display: contents;
  }

  .hero-header-block {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }

  .hero-action-block {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 4px;
  }

  .hero-data-column {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    min-width: 0;
  }
}

.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  border: 1px solid rgba(18, 128, 84, 0.16);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  color: var(--brand-dark);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.hero-headline .highlight {
  color: var(--brand-primary);
}

.hero-body {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 6px;
  max-width: 500px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--brand-primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 1.02rem;
  font-weight: 750;
  box-shadow: 0 4px 16px var(--brand-primary-glow);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary-cta:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(18, 128, 84, 0.35);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-secondary-link:hover {
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  text-decoration: none;
}

.hero-reassurance-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 550;
}

.reassurance-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.reassurance-check {
  color: var(--brand-primary);
  display: flex;
  font-weight: 700;
}

/* 2. DEDICATED DATA HERO / REAL PHONE MOCKUP SCREEN */
.hero-data-column {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.mockup-display-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.mockup-device-frame {
  width: 100%;
  max-width: 380px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 24px 64px -12px rgba(13, 31, 24, 0.22),
              0 8px 24px -4px rgba(13, 31, 24, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #FFFFFF;
  border: 1px solid rgba(13, 31, 24, 0.08);
}

@media (max-width: 640px) {
  .mockup-device-frame {
    max-width: 320px;
    border-radius: 38px;
  }
}

.mockup-device-frame:hover {
  transform: translateY(-4px);
}

.mockup-screen-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Floating Live Interactive Data Badges */
.floating-data-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(18, 128, 84, 0.22);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 28px -4px rgba(13, 31, 24, 0.14);
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--brand-dark);
  z-index: 10;
  animation: float-badge 3.2s ease-in-out infinite alternate;
}

@media (min-width: 1024px) {
  .floating-data-pill {
    display: inline-flex;
  }
}

.floating-pill-views {
  top: 14%;
  left: -28px;
}

.floating-pill-enquiries {
  bottom: 18%;
  right: -24px;
  cursor: pointer;
  border-color: rgba(37, 211, 102, 0.45);
  transition: all 0.2s ease;
}

.floating-pill-enquiries:hover {
  background: var(--brand-primary-light);
  transform: scale(1.04);
}

.pill-dot.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(18, 128, 84, 0.25);
}

@keyframes float-badge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.hero-data-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
  .hero-data-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }
}

/* Merchant Category & Store Selector Tabs */
.merchant-switcher-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
}

.merchant-switcher-wrapper::-webkit-scrollbar {
  display: none;
}

.merchant-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.merchant-tab-pill:hover {
  border-color: rgba(18, 128, 84, 0.4);
  color: var(--brand-dark);
}

.merchant-tab-pill.active {
  background: var(--brand-dark);
  color: #FFFFFF;
  border-color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(13, 31, 24, 0.15);
}

/* Store Header inside Data Card */
.store-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.store-meta-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.store-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.store-title {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 850;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.store-verified-icon {
  color: var(--brand-primary);
  display: flex;
}

.store-locality-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Timeframe Filter Tabs (Today / 7 Days / 30 Days) */
.timeframe-filter-group {
  display: inline-flex;
  background: var(--bg-surface-soft);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.timeframe-btn {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.timeframe-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px var(--brand-primary-glow);
}

/* Interactive Data Metrics Grid: Responsive 3 Columns on all screens */
.data-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .data-metrics-grid {
    gap: 12px;
  }
}

.metric-card {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .metric-card {
    padding: 14px 12px;
    border-radius: var(--radius-md);
  }
}

.metric-card:hover {
  background: #FFFFFF;
  border-color: rgba(18, 128, 84, 0.3);
  box-shadow: var(--shadow-sm);
}

.metric-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .metric-label {
    font-size: 0.72rem;
  }
}

.metric-icon-small {
  color: var(--brand-primary);
  display: flex;
  flex-shrink: 0;
}

.metric-value {
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: transform 0.2s ease;
}

.metric-trend {
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--brand-primary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .metric-trend {
    font-size: 0.7rem;
  }
}

/* Recent Customer Enquiries Feed */
.customer-enquiries-panel {
  background: #FAFDFB;
  border: 1px solid rgba(18, 128, 84, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.enquiries-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.store-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(18, 128, 84, 0.2);
}

.enquiry-ticker-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--brand-dark);
  min-width: 0;
}

.enquiry-bubble-icon {
  color: var(--wa-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.enquiry-text {
  min-width: 0;
  word-break: break-word;
}

.enquiry-customer-name {
  font-weight: 750;
  color: var(--brand-dark);
}

.enquiry-time-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 4px;
  white-space: nowrap;
}

/* Catalogue & Action Strip */
.catalogue-action-strip {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.catalogue-status-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.catalogue-count-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.catalogue-sub-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 550;
}

.catalogue-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-simulate-enquiry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-simulate-enquiry:hover {
  background: rgba(18, 128, 84, 0.16);
}

.btn-add-product-reactive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-product-reactive:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* Reactive interactive hint */
.data-card-footer-hint {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 550;
  margin-top: 10px;
}
