/* ---------------- Poker Pop Page CSS ---------------- */

/* Button color override for Poker Pop only */
.download-btn {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.2em; /* Larger gap before button */
  width: 250px; /* Match Hexago button width exactly */
}

.download-btn:hover {
  background-color: var(--accent-color);
}

.download-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

/* Reduce gap between sections for Poker Pop only */
.product-container {
  gap: 30px !important; /* Override the 50px gap from game-page.css */
}

/* Move right column (text) to the left for Poker Pop */
.product-info {
  transform: translateX(-60px) !important; /* Move text content to the left */
}

/* Reset transform on mobile to prevent text going off-screen */
@media (max-width: 900px) {
  .product-info {
    transform: none !important; /* Reset transform on mobile */
  }
}

/* Screenshot sizing for Poker Pop - closer to Hexago size */
.main-image {
  width: 100%;
  max-width: 400px; /* Increased to reduce gap */
  height: auto;
  object-fit: contain;
  min-height: 400px; /* Prevent layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video and image styling - override game-page.css */
.main-image {
  box-shadow: none !important;
  position: relative;
}

.main-image video,
.main-image img {
  width: 100%;
  height: auto;
  max-height: 400px; /* Consistent max height */
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
  box-shadow: none !important;
}

/* Video controls */
.video-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.video-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-container:hover .video-controls {
  opacity: 1;
}

.play-pause-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.play-pause-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.progress-container {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

.thumbnail-row img,
.thumbnail-video {
  width: 50px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thumbnail-video {
  display: block;
}

.thumbnail-row img:hover,
.thumbnail-video:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.thumbnail-row img.active,
.thumbnail-video.active {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .main-image { 
    max-width: 320px; /* Increased proportionally */
  }
  
  .thumbnail-row img,
  .thumbnail-video {
    width: 40px;
  }
  
  .download-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .main-image { 
    max-width: 280px; /* Increased proportionally */
  }
}
