/* Feature tour videos: "Watch" buttons, the video modal and the tour grid (index3.html, tour.html). */

.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;  /* <button> doesn't inherit font or line-height by default: match the <a class="btn"> next to it */
  line-height: inherit;
}

.watch-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-inner {
  position: relative;
  width: min(92vw, calc(92vh * 16 / 9));
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.video-modal.open .video-modal-inner {
  transform: scale(1);
}

.video-modal video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* tour.html */

.tour-hero {
  padding: 140px 0 40px;
  text-align: center;
}

.tour-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 16px;
}

.tour-hero p {
  color: var(--text-secondary, #a1a1aa);
  max-width: 640px;
  margin: 0 auto;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding: 20px 0 100px;
}

.tour-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tour-card:hover,
.tour-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.tour-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tour-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(11, 184, 212, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tour-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.8rem;
}

.tour-body {
  padding: 18px 20px 22px;
}

.tour-body h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
}

.tour-body p {
  margin: 0;
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* index3.html: each Platform group is one video; its label carries the Watch button */
.showcase-group-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text);
}

.showcase-group-video .watch-btn {
  text-transform: none;
  letter-spacing: normal;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--accent);
  border-color: var(--accent);
}
