/* ══════════════════════════════════════════════════════════════════════
   PLAYGROUND — Model Gallery Landing Page
   Loaded AFTER bootstrap.css to prevent overrides
   ══════════════════════════════════════════════════════════════════════ */

/* ── Floating background glow ──────────────────────────────────── */
.pg-bg-glow {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 20%, rgba(101,87,255,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 60%, rgba(170,63,255,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(248,82,46,0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

/* ── Mini brand bar ────────────────────────────────────────────── */
.pg-brand-bar {
  padding: 18px 24px;
  text-align: center;
}
.pg-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #222b3a !important;
  font-weight: 700;
  font-size: 16px;
  transition: opacity 0.2s;
}
.pg-brand-link:hover {
  opacity: 0.7;
  color: #222b3a !important;
  text-decoration: none !important;
}
.pg-brand-link img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px;
}

/* ── Gallery section ───────────────────────────────────────────── */
.pg-gallery-section {
  min-height: 100vh;
  padding-bottom: 20px;
}

/* ── Hero heading ──────────────────────────────────────────────── */
.pg-hero {
  text-align: center;
  padding: 10px 20px 30px;
  max-width: 680px;
  margin: 0 auto;
}
.pg-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(101,87,255,0.12), rgba(170,63,255,0.1));
  color: var(--gradient-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(101,87,255,0.15);
}
.pg-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: #222b3a;
  line-height: 1.15;
  margin-bottom: 14px;
}
.pg-hero-subtitle {
  font-size: 17px;
  color: #6a7280;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

/* ── Infinite scroll sentinel & loader ─────────────────────────── */
.pg-scroll-sentinel {
  height: 1px;
  margin-top: 20px;
}
.pg-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  color: #6a7280;
  font-size: 14px;
}

/* ── Card enter animation ──────────────────────────────────────── */
@keyframes pgCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pg-card--new {
  animation: pgCardIn 0.35s ease forwards;
}

/* ── Model photos grid ─────────────────────────────────────────── */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 10px;
  max-width: 1000px;
  margin: 0 auto;
}
.pg-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  aspect-ratio: 3/4;
  background: #f5f3ff;
}
.pg-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 !important;
}
.pg-card:hover {
  transform: translateY(-6px);
  border-color: var(--gradient-primary);
  box-shadow: 0 12px 40px rgba(101,87,255,0.2),
              0 4px 12px rgba(0,0,0,0.08);
}
.pg-card:hover img {
  transform: scale(1.06);
}

/* Card overlay */
.pg-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 12px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pg-card:hover .pg-card-overlay {
  opacity: 1;
}
.pg-card-cta {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0.9;
}

/* ── Play button ───────────────────────────────────────────────── */
.pg-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.pg-play-btn:hover {
  transform: scale(1.12);
  background: #fff;
  box-shadow: 0 6px 28px rgba(101,87,255,0.35);
}
.pg-play-btn svg {
  width: 20px !important;
  height: 20px !important;
  margin-left: 3px;
}

/* ── Card badges ───────────────────────────────────────────────── */
.pg-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pg-badge-trending {
  background: linear-gradient(135deg, #f5576c, #f093fb);
  color: #fff;
}
.pg-badge-popular {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

/* ── Text preview overlay ──────────────────────────────────────── */
.pg-card-text-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.18);
  letter-spacing: 4px;
  text-transform: uppercase;
  pointer-events: none;
  transition: color 0.3s ease, font-size 0.3s ease;
  z-index: 1;
  text-align: center;
  width: 100%;
  line-height: 1;
  font-family: 'Arial Black', sans-serif;
}
.pg-card:hover .pg-card-text-preview {
  color: rgba(255,255,255,0.55);
  font-size: 32px;
}

/* Card loading state */
.pg-card-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.pg-card--loading .pg-card-loader {
  display: flex;
}
.pg-card--loading {
  pointer-events: none;
}

/* ── Upload your own ───────────────────────────────────────────── */
.pg-upload-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 0;
}
.pg-upload-divider-text {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}
.pg-upload-own {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px dashed #c4b5fd;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gradient-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(101,87,255,0.04);
}
.pg-upload-own:hover {
  background: rgba(101,87,255,0.1);
  border-color: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(101,87,255,0.12);
}
.pg-upload-own svg {
  width: 18px !important;
  height: 18px !important;
}

/* ── Social proof ──────────────────────────────────────────────── */
.pg-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 40px;
}
.pg-proof-avatars {
  display: flex;
}
.pg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  border: 2px solid #fff;
  margin-left: -8px;
}
.pg-avatar:first-child {
  margin-left: 0;
}
.pg-proof-text {
  font-size: 13px;
  color: #6a7280;
  margin: 0;
}
.pg-proof-text strong {
  color: #222b3a;
}

/* ── Back to gallery button ────────────────────────────────────── */
.pg-back-row {
  margin-bottom: 16px;
}
.pg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #222b3a;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pg-back-btn:hover {
  background: #f5f3ff;
  border-color: var(--gradient-primary);
  color: var(--gradient-primary);
}
.pg-back-btn svg {
  width: 18px !important;
  height: 18px !important;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .pg-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .pg-hero-title {
    font-size: 32px;
  }
}
@media (max-width: 767px) {
  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 4px;
  }
  .pg-hero-title {
    font-size: 26px;
  }
  .pg-hero-subtitle {
    font-size: 15px;
  }
  .pg-hero {
    padding: 5px 12px 20px;
  }
  .pg-card-cta {
    font-size: 11px;
  }
  .pg-social-proof {
    flex-direction: column;
    gap: 8px;
  }
  .pg-upload-own {
    font-size: 13px;
    padding: 8px 18px;
  }
  .pg-play-btn {
    width: 40px;
    height: 40px;
  }
  .pg-card-text-preview {
    font-size: 22px;
  }
  .pg-card:hover .pg-card-text-preview {
    font-size: 26px;
  }
}
@media (max-width: 480px) {
  .pg-hero-title {
    font-size: 22px;
  }
  .pg-grid {
    gap: 8px;
  }
  .pg-card-badge {
    font-size: 9px;
    padding: 2px 8px;
  }
}

/* ── Card hidden state for filter ─────────────────────────────── */
.pg-card--hidden {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   LOAD MORE BUTTON
   ══════════════════════════════════════════════════════════════ */
.pg-loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gradient-primary, #6557ff), #aa3fff);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.pg-loadmore-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.pg-loadmore-btn svg {
  width: 18px !important;
  height: 18px !important;
}

/* ══════════════════════════════════════════════════════════════
   HIGH CPC CONTENT BLOCKS
   ══════════════════════════════════════════════════════════════ */
.pg-content-block {
  max-width: 860px;
  margin: 48px auto 12px;
  padding: 0 12px;
}
.pg-content-title {
  font-size: 26px;
  font-weight: 800;
  color: #222b3a;
  line-height: 1.25;
  margin-bottom: 14px;
}
.pg-content-lead {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 24px;
}
.pg-content-body {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-top: 20px;
}

/* Tool comparison grid */
.pg-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.pg-tool-card {
  background: #f9f8ff;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  padding: 16px;
}
.pg-tool-card--highlight {
  background: linear-gradient(135deg, rgba(101,87,255,0.07), rgba(170,63,255,0.06));
  border-color: rgba(101,87,255,0.3);
}
.pg-tool-name {
  font-size: 13px;
  font-weight: 700;
  color: #222b3a;
  margin-bottom: 6px;
}
.pg-tool-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}

/* Steps list */
.pg-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.pg-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pg-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6557ff, #aa3fff);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}
.pg-step-body strong {
  display: block;
  font-size: 15px;
  color: #222b3a;
  margin-bottom: 4px;
}
.pg-step-body p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* Pro tip box */
.pg-tip-box {
  background: linear-gradient(135deg, rgba(101,87,255,0.06), rgba(170,63,255,0.05));
  border-left: 4px solid #6557ff;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
}

/* Responsive content */
@media (max-width: 767px) {
  .pg-tool-grid { grid-template-columns: 1fr 1fr; }
  .pg-content-title { font-size: 20px; }
  .pg-content-block { margin-top: 32px; }
}
@media (max-width: 480px) {
  .pg-tool-grid { grid-template-columns: 1fr; }
}
