/* Additional component-level overrides and utilities */

/* Swiper overrides */
.swiper {
  width: 100%;
}

.swiper-pagination {
  bottom: 8px !important;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
}

/* Calendar icon for booking button */
.btn__calendar-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Form success/error states */
.form-message {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: var(--space-sm);
  margin-top: var(--space-sm);
  display: none;
}

.form-message--success {
  color: #7ec89b;
  border: 1px solid rgba(126, 200, 155, 0.2);
}

.form-message--error {
  color: #c87e7e;
  border: 1px solid rgba(200, 126, 126, 0.2);
}

/* Stat count-up animation */
.stat-card__number[data-count] {
  font-variant-numeric: tabular-nums;
}

/* iPhone frame wrapper */
.device-frame {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  background: var(--bg-soft);
}

.device-frame__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: var(--bg);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

/* ================================
   Merged: Hero bento stats strip
   ================================ */
.hero__right-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.hero__bento-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.bento-stat {
  border: 1px solid var(--line);
  padding: 0.85rem 0.75rem;
  background: rgba(245, 245, 247, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  transition: border-color var(--duration-fast);
}

.bento-stat:hover {
  border-color: var(--line-bright);
}

.bento-stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-primary);
}

.bento-stat__num .accent {
  color: var(--accent);
}

.bento-stat__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bento-stat__trophy {
  font-size: 1.4rem;
  color: #e0c97a;
}

.bento-stat--award {
  gap: 0.4rem;
}

.bento-stat--stack {
  grid-column: 1 / -1;
  padding: 0.65rem 0.75rem;
}

.bento-stat__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.bento-stat__pills span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dimmer);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

/* ================================
   Merged: Project card enhancements
   ================================ */

/* App icon replacing SVG icon */
.project-card__icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-card__app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line-bright);
  flex-shrink: 0;
}

.project-card__app-icon--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* Store badge link */
.project-card__store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dimmed);
  background: rgba(245, 245, 247, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
  white-space: nowrap;
}

.project-card__store-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Watermark number */
.project-card[data-num]::after {
  content: attr(data-num);
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 8rem;
  line-height: 1;
  color: rgba(245, 245, 247, 0.04);
  pointer-events: none;
  user-select: none;
  transition: color 0.35s;
}

.project-card[data-num]:hover::after {
  color: rgba(245, 245, 247, 0.07);
}

/* Image carousel */
.project-card__carousel {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(245, 245, 247, 0.03);
  border: 1px solid var(--line);
  margin-bottom: var(--space-sm);
}

.project-card__slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  background: rgba(245, 245, 247, 0.03);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.7);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  border: 1px solid var(--line-bright);
  transition: background var(--duration-fast), border-color var(--duration-fast), opacity var(--duration-fast);
  z-index: 2;
  opacity: 0;
}

.project-card__carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.carousel-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(245, 245, 247, 0.35);
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ================================
   Responsive — merged components
   ================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  /* Hero bento strip: 3 cols → 2 cols, pills full width */
  .hero__bento-strip {
    grid-template-columns: 1fr 1fr;
  }
  .bento-stat--stack {
    grid-column: 1 / -1;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  /* Hero right — terminal + bento stack naturally since hero__split goes 1-col */
  .hero__right-inner {
    gap: 0.75rem;
  }

  /* Bento strip stays 3-col on mobile (small cells look fine) */
  .hero__bento-strip {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .bento-stat--stack {
    grid-column: 1 / -1;
  }
  .bento-stat__num {
    font-size: 1.4rem;
  }
  .bento-stat__label {
    font-size: 0.5rem;
  }

  /* Always show carousel buttons on mobile (no hover) */
  .project-card__carousel .carousel-btn {
    opacity: 0.7;
  }

  /* Project card header wrap on small screens */
  .project-card__icon-row {
    gap: 0.5rem;
  }
  .project-card__app-icon {
    width: 36px;
    height: 36px;
  }
  .project-card__store-link {
    font-size: 0.58rem;
    padding: 0.25rem 0.6rem;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  /* Bento: 2-col + stack full width */
  .hero__bento-strip {
    grid-template-columns: 1fr 1fr;
  }
  .bento-stat--award {
    grid-column: 1 / -1;
  }
  .bento-stat--stack {
    grid-column: 1 / -1;
  }

  /* Project card header: wrap store badge below */
  .project-card__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .project-card__store-link {
    margin-left: auto;
  }

  /* Watermark numbers: smaller on mobile */
  .project-card[data-num]::after {
    font-size: 5rem;
    right: -0.25rem;
    bottom: -1rem;
  }
}
