/* ==========================================================================
   EAZYFAST SHOPPING GUIDE STYLING
   Clean, Elegant, and Modern Poster Layout
   ========================================================================== */

:root {
  /* Colors from localhost/landingpage (index.css) */
  --primary: #0193ac;
  --primary-light: #e5f4f7;
  --primary-dark: #00778c;
  --accent: #1c61e7;
  --accent-light: #e1ebff;
  --accent-dark: #124cb8;

  --neutral-dark: #1a1a1a;
  --neutral-title: #242424;
  --neutral-body: #64748b;
  --neutral-light: #f8fafc;
  --neutral-border: #e2e8f0;

  --white: #ffffff;
  --success: #10b981;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(1, 147, 172, 0.04);
  --shadow-md: 0 12px 30px -5px rgba(1, 147, 172, 0.08), 0 8px 16px -6px rgba(1, 147, 172, 0.05);
  --shadow-lg: 0 25px 60px -15px rgba(28, 97, 231, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(1, 147, 172, 0.15);

  /* Fonts */
  --font-title: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--neutral-light);
  color: var(--neutral-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 0% 0%, rgba(229, 244, 247, 0.5) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(225, 235, 255, 0.5) 0px, transparent 50%);
}

/* Poster Container */
.poster-container {
  width: 100%;
  max-width: 1200px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 60px 40px;
  border: 1px solid var(--neutral-border);
  position: relative;
  overflow: hidden;
}

.poster-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Header */
.poster-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.logo-area {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.logo-img {
  height: 48px;
  object-fit: contain;
}

.badge {
  display: inline-block;
  padding: 6px 18px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-family: var(--font-title);
}

.title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--neutral-dark);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.title span {
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--neutral-body);
}

/* Flow Wrapper */
.flow-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 60px;
  position: relative;
  flex-wrap: nowrap;
}

/* Step Card */
.step-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

.step-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-title);
  box-shadow: 0 4px 10px rgba(1, 147, 172, 0.3);
}

.step-card:nth-child(even) .step-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 10px rgba(28, 97, 231, 0.3);
}

.step-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--neutral-light);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.step-card:hover .step-icon-wrapper {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.05);
}

.step-card:nth-child(even):hover .step-icon-wrapper {
  background: var(--accent-light);
  color: var(--accent);
}

.step-title {
  font-size: 1.15rem;
  color: var(--neutral-title);
  margin-bottom: 12px;
  font-weight: 700;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--neutral-body);
  line-height: 1.5;
}

.step-desc strong {
  color: var(--neutral-dark);
}

/* Flow Grid (3x2 Grid) */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
}

/* Step Card */
.step-card {
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: 20px;
  padding: 36px 28px 28px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

.step-badge {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-title);
  box-shadow: 0 4px 12px rgba(1, 147, 172, 0.3);
}

.step-card:nth-child(even) .step-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 12px rgba(28, 97, 231, 0.3);
}

.step-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.step-card:nth-child(even) .step-icon-wrapper {
  background: var(--accent-light);
  color: var(--accent);
}

.step-card:hover .step-icon-wrapper {
  transform: scale(1.05) rotate(5deg);
}

.step-title {
  font-size: 1.25rem;
  color: var(--neutral-title);
  margin-bottom: 12px;
  font-weight: 700;
  font-family: var(--font-title);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--neutral-body);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.step-desc strong {
  color: var(--neutral-dark);
}

/* Screenshot Frame Mockup */
.screenshot-frame {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--neutral-border);
  background: var(--neutral-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.step-card:hover .screenshot-frame {
  border-color: rgba(1, 147, 172, 0.2);
  box-shadow: 0 8px 20px rgba(1, 147, 172, 0.05);
}

.frame-header {
  height: 24px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--neutral-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.frame-header .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.screenshot-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background-color: var(--white);
  transition: var(--transition-normal);
}

.screenshot-frame.zoomable {
  position: relative;
  cursor: pointer;
}

.zoom-overlay {
  position: absolute;
  top: 24px; /* below frame header */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 147, 172, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition-normal);
  font-family: var(--font-title);
}

.screenshot-frame.zoomable:hover .zoom-overlay {
  opacity: 1;
}

.step-card:hover .screenshot-img {
  transform: scale(1.05);
}

/* Lightbox Modal Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 85%;
  max-height: 75%;
  border-radius: 16px;
  border: 4px solid var(--white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 45px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-normal);
  user-select: none;
}

.close-btn:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.lightbox-caption {
  margin-top: 20px;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}



/* Action Area */
.poster-action-area {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--neutral-border);
  position: relative;
  z-index: 1;
}

.action-text {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--neutral-title);
}

/* Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(1, 147, 172, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(1, 147, 172, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--neutral-body);
  border: 1px solid var(--neutral-border);
}

.btn-outline:hover {
  background: var(--neutral-light);
  border-color: var(--neutral-body);
  color: var(--neutral-dark);
  transform: translateY(-3px);
}

/* Flow Arrows via Pseudo-elements */
.step-card::after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  color: var(--primary);
  opacity: 0.5;
  font-size: 1.5rem;
  z-index: 10;
  transition: var(--transition-normal);
}

/* Desktop Arrow Placements (3 Columns) */
@media (min-width: 993px) {
  /* Step 1 -> 2, Step 2 -> 3, Step 4 -> 5, Step 5 -> 6 (Right Arrows) */
  .step-card:not(:nth-child(3n))::after {
    content: '\f061'; /* fa-arrow-right */
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    animation: arrowPulseRight 2s infinite ease-in-out;
  }

  /* Step 3 -> 4 (Down Arrow to next row) */
  .step-card:nth-child(3)::after {
    content: '\f063'; /* fa-arrow-down */
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    animation: arrowPulseDown 2s infinite ease-in-out;
  }
}

/* Tablet Arrow Placements (2 Columns) */
@media (max-width: 992px) and (min-width: 641px) {
  /* Horizontal Right Arrows for odd cards (1 -> 2, 3 -> 4, 5 -> 6) */
  .step-card:nth-child(odd)::after {
    content: '\f061'; /* fa-arrow-right */
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    animation: arrowPulseRight 2s infinite ease-in-out;
  }

  /* Vertical Down Arrows for wrapping (2 -> 3, 4 -> 5) */
  .step-card:nth-child(even):not(:last-child)::after {
    content: '\f063'; /* fa-arrow-down */
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    animation: arrowPulseDown 2s infinite ease-in-out;
  }
}

/* Mobile Arrow Placements (1 Column) */
@media (max-width: 640px) {
  .step-card:not(:last-child)::after {
    content: '\f063'; /* fa-arrow-down */
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    animation: arrowPulseDown 2s infinite ease-in-out;
  }
}

/* Animations for Arrows */
@keyframes arrowPulseRight {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-50%) translateX(6px);
    opacity: 0.9;
    color: var(--accent);
  }
}

@keyframes arrowPulseDown {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 0.9;
    color: var(--accent);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px; /* Increased gap to accommodate arrows */
  }
}

@media (max-width: 640px) {
  body {
    padding: 20px 12px;
  }

  .poster-container {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .title {
    font-size: 2rem;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 36px; /* Increased gap to accommodate arrows */
  }

  .step-card {
    padding: 30px 20px 20px 20px;
  }

  .step-badge {
    left: 20px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }
}

