/* Product Lookup Section Styles */

.pl-section * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pl-section {
  padding: 0rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.pl-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pl-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.pl-gradient-text {
  background: linear-gradient(135deg, #0F9D58 0%, #00C853 50%, #69F0AE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pl-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Main Grid */
.pl-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .pl-main-grid {
    grid-template-columns: 1fr 120px 1fr;
    gap: 2rem;
  }
}

.pl-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* Google Sheet Visual */
.sheet-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.sheet-header {
  background: #0F9D58;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.traffic-lights {
  display: flex;
  gap: 0.5rem;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-light.red { background: #ff5f57; }
.traffic-light.yellow { background: #ffbd2e; }
.traffic-light.green { background: #28ca42; }

.sheet-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sheet-toolbar {
  background: #f9fbfd;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #5f6368;
}

.toolbar-item {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.toolbar-item:hover {
  background: #e8eaed;
}

.formula-bar {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.cell-ref {
  background: #f1f3f4;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: #5f6368;
  font-family: monospace;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.formula-content {
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Spreadsheet Grid */
.spreadsheet {
  position: relative;
}

@media (max-width: 480px) {
  .spreadsheet {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .spreadsheet-inner {
    min-width: 420px;
  }
}

.column-headers {
  display: grid;
  grid-template-columns: 40px repeat(5, 1fr);
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.625rem;
  color: #5f6368;
  font-weight: 500;
}

.col-header {
  padding: 0.375rem;
  text-align: center;
  border-right: 1px solid #e0e0e0;
}

.sheet-row {
  display: grid;
  grid-template-columns: 40px repeat(5, 1fr);
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.sheet-row.header-row {
  background: #f8f9fa;
  font-weight: 600;
  color: #202124;
}

.sheet-row.selected {
  background: #e8f5e9;
}

.row-number {
  background: #f8f9fa;
  color: #5f6368;
  text-align: center;
  padding: 0.625rem 0.5rem;
  border-right: 1px solid #e0e0e0;
  font-size: 0.625rem;
}

.cell {
  padding: 0.625rem 0.75rem;
  border-right: 1px solid #e0e0e0;
  color: #202124;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.15s;
}

.cell:last-child {
  border-right: none;
}

.cell.mono {
  font-family: 'SF Mono', Monaco, monospace;
}

.cell.selected {
  outline: 2px solid #0F9D58;
  outline-offset: -2px;
  background: #e8f5e9;
}

.cell:hover:not(.selected) {
  background: #f5f5f5;
}

.cell.out-of-stock {
  color: #dc2626;
}

.cell.discount {
  color: #0F9D58;
  font-weight: 500;
}

.cell.muted {
  color: #9ca3af;
}

/* Shimmer Animation */
.shimmer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.shimmer-wave {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 157, 88, 0.08) 50%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* Arrow */
.arrow-container {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

@media (min-width: 1024px) {
  .arrow-container {
    display: flex;
  }
}

.arrow-mobile {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0 0;
}

@media (min-width: 1024px) {
  .arrow-mobile {
    display: none;
  }
}

.animated-arrow {
  stroke: #0F9D58;
  stroke-width: 2;
  stroke-dasharray: 8 6;
  fill: none;
  animation: dashMove 1s linear infinite;
}

.arrow-head {
  fill: #0F9D58;
}

@keyframes dashMove {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -14;
  }
}

/* Response Cards */
.pl-response-container {
  position: relative;
  min-height: 380px;
}

.pl-response-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pl-response-card.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.pl-response-header {
  background: #f9fafb;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.pl-response-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.pl-response-subject {
  font-weight: 500;
  color: #111827;
  font-size: 0.875rem;
}

.pl-response-body {
  padding: 1.25rem;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
}

.pl-response-body p {
  margin-bottom: 0.75rem;
}

.pl-response-body p:last-child {
  margin-bottom: 0;
}

.highlight-green {
  color: #0F9D58;
  font-weight: 600;
}

.highlight-red {
  color: #dc2626;
  font-weight: 600;
}

.highlight-bold {
  font-weight: 600;
}

.pl-link {
  color: #1a73e8;
  text-decoration: underline;
}

.pl-link:hover {
  text-decoration: none;
}

.pl-response-footer {
  background: #f0fdf4;
  border-top: 1px solid #dcfce7;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: #15803d;
}

/* Learn More Button */
.learn-more-container {
  text-align: center;
  margin-top: 3rem;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: #374151;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.learn-more-btn:hover {
  border-color: #0F9D58;
  color: #0F9D58;
  background: #f0fdf4;
}

.learn-more-btn svg {
  width: 18px;
  height: 18px;
}

/* Value Props */
.value-props {
  margin-top: 5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  display: none;
  opacity: 0;
}

.value-props.visible {
  display: block;
  animation: fadeSlideIn 0.5s ease forwards;
}

.value-props-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.value-props-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #16a34a;
  margin-bottom: 0.75rem;
}

.value-props-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #171717;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.value-props-subtitle {
  color: #737373;
  font-size: 1rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-top: 0.5rem;
}

.pl-feature-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.pl-feature-item:first-child {
  padding-top: 0.5rem;
}

.pl-feature-item:last-child {
  border-bottom: none;
}

.feature-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #171717;
  margin-bottom: 0.5rem;
}

.check-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  color: #16a34a;
}

.feature-desc {
  font-size: 0.875rem;
  color: #737373;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .value-props-header {
    text-align: left;
  }
  .value-props-title {
    font-size: 1.875rem;
  }
  .value-props-subtitle {
    font-size: 1.125rem;
  }
  .pl-feature-item {
    text-align: left;
  }
  .feature-title {
    justify-content: flex-start;
  }
  .feature-desc {
    padding-left: 1.75rem;
  }
}

/* CTA */
.cta-container {
  text-align: center;
  margin-top: 4rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0F9D58;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.cta-link:hover {
  background: #f0fdf4;
  gap: 0.75rem;
}

.cta-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.cta-link:hover svg {
  transform: translateX(4px);
}

/* Animations */
.pl-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.pl-fade-in-delay-1 { animation-delay: 0.1s; }
.pl-fade-in-delay-2 { animation-delay: 0.2s; }
.pl-fade-in-delay-3 { animation-delay: 0.3s; }

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

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile - 450px and below */
@media (max-width: 450px) {
  .pl-section {
    padding: 2rem 1rem;
  }
  
  .pl-header {
    margin-bottom: 2.5rem;
  }
  
  .pl-header p {
    font-size: 1rem;
  }
  
  .spreadsheet-inner {
    min-width: 340px;
  }
  
  .cell {
    padding: 0.5rem 0.4rem;
    font-size: 0.65rem;
  }
  
  .col-header,
  .row-number {
    font-size: 0.5rem;
  }
  
  .pl-response-container {
    min-height: 320px;
  }  
  
  .pl-response-header {
    padding: 0.75rem 1rem;
  }
  
  .pl-response-body {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .pl-response-footer {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
  }
  .arrow-mobile {
    padding: 0;
  }
}

/* Small Mobile - 375px and below */
@media (max-width: 375px) {
  .spreadsheet-inner {
    min-width: 300px;
  }
  
  .cell {
    padding: 0.4rem 0.3rem;
    font-size: 0.6rem;
  }
  
  .column-headers {
    grid-template-columns: 30px repeat(5, 1fr);
  }
  
  .sheet-row {
    grid-template-columns: 30px repeat(5, 1fr);
  }
  
  .pl-response-body {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}