/* ============================================
   PlatypusMatch Features Page Styles
   Scoped under .pm-page to avoid conflicts
   ============================================ */

.pm-page {
  --pm-blue:       #2563eb;
  --pm-blue-dark:  #1d4ed8;
  --pm-blue-light: #60a5fa;
  --pm-pink:       #ec4899;
  --pm-pink-dark:  #db2777;
  --pm-purple:     #7c3aed;
  --pm-green:      #10b981;
  --pm-red:        #ef4444;
  --pm-bg:         #f8fafc;
  --pm-surface:    #ffffff;
  --pm-card:       #ffffff;
  --pm-border:     #e2e8f0;
  --pm-text:       #1e293b;
  --pm-muted:      #64748b;
  --pm-radius:     16px;
  --pm-radius-sm:  12px;
  --pm-max-width:  1200px;

  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--pm-text);
  line-height: 1.6;
}

.pm-page a { color: var(--pm-blue); text-decoration: none; transition: color 0.2s; }
.pm-page a:hover { color: var(--pm-blue-dark); }

.pm-container { max-width: var(--pm-max-width); margin: 0 auto; padding: 0 24px; }

/* ========== HERO ========== */
.pm-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 40%, #7c3aed 70%, #db2777 100%);
  color: #fff;
  overflow: hidden;
}
.pm-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(236,72,153,0.1) 0%, transparent 50%);
  animation: pm-glow 20s ease-in-out infinite;
}
@keyframes pm-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}
@keyframes pm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.pm-hero-emojis {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}
.pm-hero-emojis span {
  position: absolute;
  animation: pm-float 3s ease-in-out infinite;
}
.pm-hero-content { position: relative; z-index: 1; }
.pm-hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.1);
}
.pm-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}
.pm-hero-title span { color: #fbcfe8; }
.pm-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 32px;
}
.pm-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pm-hero-tags span {
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  position: static;
  animation: none;
  opacity: 1;
}

/* ========== NAVIGATION (in-page) ========== */
.pm-nav-bar {
  position: sticky;
  top: 72px; /* below site header */
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pm-border);
  padding: 0;
  overflow-x: auto;
}
.pm-nav-bar .pm-container {
  display: flex;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.pm-nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pm-muted) !important;
  white-space: nowrap;
  transition: all 0.2s;
}
.pm-nav-link:hover {
  background: #eff6ff;
  color: var(--pm-blue) !important;
}

/* ========== SECTIONS ========== */
.pm-section {
  padding: 72px 0;
}
.pm-section-alt {
  background: var(--pm-surface);
  border-top: 1px solid var(--pm-border);
  border-bottom: 1px solid var(--pm-border);
}

.pm-section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.pm-section-label-blue { color: var(--pm-blue); }
.pm-section-label-pink { color: var(--pm-pink); }
.pm-section-label-purple { color: var(--pm-purple); }
.pm-section-label-green { color: var(--pm-green); }
.pm-section-label-red { color: var(--pm-red); }

.pm-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.pm-section-subtitle {
  color: var(--pm-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 24px;
}
.pm-section-subtitle-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ========== GRID LAYOUTS ========== */
.pm-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.pm-grid-2 { grid-template-columns: 1fr 1fr; }
.pm-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.pm-grid-2x2 { grid-template-columns: 1fr 1fr; gap: 24px; }

/* ========== SCREENSHOT ========== */
.pm-screenshot {
  background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 100%);
  border: 2px solid #e2e8f0;
  border-radius: var(--pm-radius);
  overflow: hidden;
  min-height: 280px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.pm-screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.pm-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-screenshot-sm { min-height: 200px; }

/* ========== FEATURE LISTS ========== */
.pm-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pm-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.pm-feature-list li strong { color: var(--pm-text); }
.pm-feature-list .pm-icon {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ========== FEATURE CARDS ========== */
.pm-card {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.pm-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pm-card p {
  color: var(--pm-muted);
  font-size: 0.93rem;
  margin-bottom: 12px;
}
.pm-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pm-card ul li {
  font-size: 0.87rem;
  color: var(--pm-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.pm-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--pm-blue-light);
}

/* ========== INFO BOXES (messaging grid) ========== */
.pm-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pm-info-box {
  background: var(--pm-bg);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  padding: 18px;
}
.pm-info-box h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.pm-info-box p {
  font-size: 0.85rem;
  color: var(--pm-muted);
  margin: 0;
}

/* ========== ENM TIER CARDS ========== */
.pm-tier-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pm-tier {
  padding: 16px;
  border-radius: var(--pm-radius-sm);
  border: 1px solid var(--pm-border);
}
.pm-tier h4 { font-weight: 600; margin-bottom: 4px; }
.pm-tier p { font-size: 0.88rem; margin: 0; }
.pm-tier-default { background: var(--pm-surface); }
.pm-tier-open { background: #faf5ff; border-color: #d8b4fe; }
.pm-tier-open h4 { color: #6b21a8; }
.pm-tier-open p { color: #7c3aed; }
.pm-tier-active { background: #fdf2f8; border-color: #f9a8d4; }
.pm-tier-active h4 { color: #9d174d; }
.pm-tier-active p { color: #be185d; }

/* ========== FEATURE SUMMARY GRID ========== */
.pm-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pm-summary-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pm-summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.pm-summary-item .pm-summary-emoji { font-size: 2rem; margin-bottom: 8px; }
.pm-summary-item .pm-summary-label { font-size: 0.85rem; font-weight: 600; }

/* ========== CENTERED LAYOUT ========== */
.pm-text-center { text-align: center; }

/* ========== LIGHTBOX ========== */
.pm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 32px;
}
.pm-lightbox.active { display: flex; }
.pm-lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ========== CTA SECTION ========== */
.pm-cta-section {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
}
.pm-cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.pm-cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}
.pm-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;
}
.pm-btn-primary {
  background: #fff;
  color: var(--pm-blue) !important;
}
.pm-btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}
.pm-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3);
}
.pm-btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .pm-grid-2 { grid-template-columns: 1fr; }
  .pm-grid-3 { grid-template-columns: 1fr; }
  .pm-grid-2x2 { grid-template-columns: 1fr; }
  .pm-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-info-grid { grid-template-columns: 1fr; }
  .pm-hero { padding: 60px 0 40px; }
  .pm-section { padding: 48px 0; }
  .pm-nav-bar { top: 0; }
  .pm-grid .pm-order-first { order: -1; }
}
