/* ============================================================
   COMPONENTS — Buttons, Cards, Modals, Lightboxes
   ============================================================ */

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 600;
  line-height: var(--lh-body-md);
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
  border: none;
  text-decoration: none;
}
.hero__btns .btn {min-width: 180px;}
.accessory__text .btn--red {
  max-width: 240px;
}

.btn:hover {
  opacity: 0.9;
}

/* White button (hero, footer) */
.btn--white {
  background: var(--color-a00);
  color: var(--color-a100);
}

/* Canon red button */
.btn--red {
  background: var(--canon-red);
  color: var(--color-a00);
}

.btn--red:hover {
  background: var(--canon-red-dark);
  opacity: 1;
}

/* Outline button (footer secondary) */
.btn--outline {
  background: transparent;
  color: var(--color-a00);
  border: 1px solid var(--color-a00);
}

/* Red outline button (compare section) */
.btn--outline-red {
  background: var(--color-a00);
  color: var(--canon-red);
  border: 1px solid var(--canon-red);
}

.btn--outline-red:hover {
  background: var(--canon-red);
  color: var(--color-a00);
  opacity: 1;
}

/* Full-width button */
.btn--full {
  width: 100%;
}

/* =============================================
   HOTSPOT NUMBER BADGE
   ============================================= */

.hotspot {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

.hotspot__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.hotspot__text {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 600;
  line-height: var(--lh-body-lg);
  color: var(--color-a00);
}

/* =============================================
   COMPARE CARD
   ============================================= */

.compare-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  border-radius: var(--radius-card);
  height: 100%;
}

/* Featured card (R6V) gets shadow + border */
.compare-card--featured {
  background: var(--color-a00);
  border: 1px solid var(--color-a10, #e5e5e5);
  box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.25);
}

.compare-card__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16%;
}

.compare-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-a100);
  text-align: center;
  text-decoration: none;
  width: 100%;
  line-height: var(--lh-heading);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-card__features {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.compare-card__feature {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--lh-body-sm);
  color: var(--color-a80);
  padding: var(--space-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.compare-card__cta {
  margin-top: auto;
  padding-top: var(--space-md);
  padding-inline: var(--space-lg);
  width: 100%;
}

/* =============================================
   PERSONA CARD (Use Cases)
   ============================================= */

.persona {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.persona__icon-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-circle);
  border: 4px solid var(--canon-red);
  background: var(--color-a80);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona__icon-wrap img {
  width: 80px;
  height: 80px;
}

.persona__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-a00);
  text-align: center;
  line-height: var(--lh-heading);
}

.persona__desc {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--lh-body-sm);
  color: var(--color-a00);
  text-align: center;
}

/* =============================================
   VIDEO THUMBNAIL + PLAY BUTTON
   ============================================= */

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 650 / 365;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
}

.video-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  pointer-events: none;
}

/* =============================================
   GLASS BULLETS CARD (Camera / Lens features)
   ============================================= */

.bullets-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 80px 160px 60px;
  width: 100%;
  max-width: 1024px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.bullets-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Lens card has more padding at the top (for the floating image) */
.bullets-card--lens {
  padding-top: 160px;
  padding-inline: 120px;
}

/* =============================================
   FLOATING PRODUCT IMAGE
   ============================================= */

.product-float {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-img);
  overflow: hidden;
  pointer-events: none;
}

.product-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   ATC CONFIRMATION MODAL
   ============================================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--color-a00);
  color: var(--color-a100);
  border-radius: var(--radius-img);
  padding: var(--space-xxl);
  max-width: 540px;
  width: 90%;
  position: relative;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--color-a80);
}

.modal__icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.modal__body {
  font-size: var(--text-body-sm);
  color: var(--color-a80);
  line-height: var(--lh-body-sm);
  margin-bottom: var(--space-lg);
}

.modal__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

/* =============================================
   VIDEO LIGHTBOX
   ============================================= */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: var(--z-lightbox);
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  color: var(--color-a00);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.lightbox__content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.lightbox__video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.lightbox__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
