/**
 * Fulwariya Technologies - App Showcase & Market-Ready Styles
 * Supports: Search, Filter, App Cards, Screenshot Lightbox, Play Store Badges, Detail Pages
 */

:root {
  --play-green: #00875a;
  --play-green-glow: rgba(0, 135, 90, 0.25);
  --play-blue: #01875f;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(99, 102, 241, 0.4);
  --glass-elevated: rgba(18, 24, 38, 0.85);
}

/* ==========================================================================
   Play Store & App Store Badges
   ========================================================================== */
.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0d1117;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 18px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-playstore::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.btn-playstore:hover {
  background: #161b22;
  border-color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.playstore-icon-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-playstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-playstore-text .caption {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  font-weight: 500;
}

.btn-playstore-text .title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Testing / Beta badge */
.btn-playstore.beta {
  border-color: rgba(245, 158, 11, 0.4);
}
.btn-playstore.beta:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   Portfolio Controls (Search & Filter Tabs)
   ========================================================================== */
.showcase-header {
  max-width: 1200px;
  margin: 0 auto 35px;
  padding: 0 20px;
}

.showcase-header-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 28px;
}

.showcase-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #0f172a !important;
}

.showcase-header p {
  color: #475569 !important;
  font-size: 1.05rem;
  line-height: 1.6;
}

.portfolio-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-bar-wrap i.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6366f1 !important;
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.2s;
}

.search-bar-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 50px;
  color: #0f172a !important;
  font-size: 0.98rem;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.search-bar-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.search-bar-input:focus {
  outline: none;
  border-color: #4f46e5 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.search-bar-input:focus + i.search-icon {
  color: #4f46e5 !important;
}

.search-clear-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: none;
  font-size: 0.9rem;
}
.search-clear-btn:hover { color: #0f172a; }

/* Filter Tabs Light Theme */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.filter-tab {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.filter-tab:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.filter-tab.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

/* ==========================================================================
   Showcase Grid & Cards Light Theme
   ========================================================================== */
.apps-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-card-v2 {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-card-v2:hover {
  transform: translateY(-5px);
  border-color: #818cf8 !important;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08), 0 0 15px rgba(99, 102, 241, 0.12);
}

.app-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #4f46e5, #0284c7, #059669);
  opacity: 0.8;
}

/* Card Header */
.card-header-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-icon-img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #f8fafc;
}

.card-title-group {
  flex: 1;
  min-width: 0;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.badge-published {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-testing {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.card-title-group h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 3px;
  line-height: 1.25;
}

.card-category-text {
  font-size: 0.85rem;
  color: #475569 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.card-category-text span.app-chip-friendly {
  font-size: 0.76rem;
  color: #4f46e5 !important;
  font-weight: 600;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #c7d2fe;
}

/* Card Body */
.card-tagline {
  color: #0f172a !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}

.card-description {
  color: #334155 !important;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

/* Feature Pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.feature-pill {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #334155 !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-pill i {
  color: #059669 !important;
  font-size: 0.72rem;
}

/* App Card Landscape Feature Graphic Banner */
.card-feature-banner {
  width: 100%;
  aspect-ratio: 1024 / 500;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: 12px 0 16px;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-feature-banner:hover {
  transform: translateY(-2px);
  border-color: #4f46e5;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.16);
}

.card-feature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.card-feature-banner:hover img {
  transform: scale(1.025);
}

.card-banner-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  z-index: 2;
}

.card-banner-badge i {
  color: #818cf8;
}

.card-banner-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.card-feature-banner:hover .card-banner-hover-overlay {
  opacity: 1;
}

/* Screenshot Thumbnail Strip */
.card-screenshots-preview {
  margin: 0 -10px 18px;
  padding: 0 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.card-screenshots-preview::-webkit-scrollbar {
  height: 4px;
}
.card-screenshots-preview::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.thumb-preview-wrap {
  flex-shrink: 0;
  width: 74px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb-preview-wrap:hover {
  transform: scale(1.05);
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

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

.thumb-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ffffff;
  font-size: 0.9rem;
}

.thumb-preview-wrap:hover .thumb-preview-overlay {
  opacity: 1;
}

/* Card Actions */
.card-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.btn-details-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1e293b !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  transition: all 0.2s ease;
  margin-left: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-details-link:hover {
  color: #4f46e5 !important;
  border-color: #818cf8 !important;
  background: #eef2ff !important;
}

/* Empty search state */
.showcase-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}
.showcase-empty-state i {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 16px;
}
.showcase-empty-state h3 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 8px;
}
.showcase-empty-state p {
  color: #475569;
  font-size: 0.95rem;
}

/* ==========================================================================
   Full-Screen Screenshot Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.94);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  max-width: min(1120px, 95vw);
  max-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 95vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #080d1a;
  transition: all 0.25s ease;
}

.lightbox-img-wrap.is-landscape {
  width: min(1080px, 94vw);
  max-width: 1080px;
  aspect-ratio: 1024 / 500;
}

.lightbox-img-wrap.is-landscape .lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-img-wrap.is-portrait {
  width: auto;
  max-height: 82vh;
}

.lightbox-img-wrap.is-portrait .lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 14px;
  color: #e2e8f0;
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-counter {
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 4px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lightbox-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: scale(1.08);
}

.lightbox-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
}

.lightbox-nav-prev, .lightbox-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav-prev { left: -60px; }
.lightbox-nav-next { right: -60px; }

@media (max-width: 768px) {
  .lightbox-close-btn { top: -45px; right: 5px; }
  .lightbox-nav-prev { left: 10px; }
  .lightbox-nav-next { right: 10px; }
  .lightbox-btn { width: 38px; height: 38px; background: rgba(0,0,0,0.6); }
}

/* ==========================================================================
   Product Detail Page Styles Light Theme
   ========================================================================== */
.app-detail-hero {
  min-height: 52vh;
  padding-top: 140px;
  padding-bottom: 40px;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08), transparent 45%);
  position: relative;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 24px;
}
.breadcrumbs a { color: #475569; text-decoration: none; }
.breadcrumbs a:hover { color: #4f46e5; }
.breadcrumbs span.current { color: #0f172a; font-weight: 600; }

.app-detail-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

.app-detail-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  background: #ffffff;
}

.app-detail-meta {
  flex: 1;
}

.app-detail-meta h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 6px;
  line-height: 1.15;
}

.app-detail-meta p.subtitle {
  font-size: 1.15rem;
  color: #475569 !important;
  margin-bottom: 16px;
  font-weight: 500;
}

.app-meta-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-weight: 500;
}
.stat-item i { color: #d97706; }
.stat-item span.label { color: #64748b; font-size: 0.75rem; }

.app-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Feature Grid in Detail Pages Light Theme */
.detail-section {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.detail-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-item-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-item-card:hover {
  transform: translateY(-3px);
  border-color: #818cf8 !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.feature-item-card i.feature-icon {
  font-size: 1.6rem;
  color: #4f46e5 !important;
  margin-bottom: 14px;
  display: inline-block;
}

.feature-item-card h4 {
  font-size: 1.2rem;
  color: #0f172a !important;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-item-card p {
  color: #334155 !important;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Tech Specs Table Light Theme */
.spec-table-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 16px 22px;
}

.spec-table td.spec-label {
  color: #0f172a !important;
  font-weight: 700;
  width: 35%;
  background: #f8fafc;
}

.spec-table td.spec-value {
  color: #334155 !important;
  font-weight: 500;
  line-height: 1.6;
}

.spec-table td.spec-value a {
  color: #4f46e5 !important;
  text-decoration: underline;
}

/* Official Landscape Feature Graphic Showcase in Detail Pages */
.feature-graphic-showcase {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: 24px;
}

.feature-graphic-showcase:hover {
  transform: translateY(-3px);
  border-color: #4f46e5;
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.16);
}

.feature-graphic-header {
  padding: 10px 18px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landscape-badge {
  background: rgba(79, 70, 229, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.35);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zoom-hint {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feature-graphic-img-container {
  width: 100%;
  aspect-ratio: 1024 / 500;
  position: relative;
  overflow: hidden;
}

.feature-graphic-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.feature-graphic-showcase:hover .feature-graphic-full-img {
  transform: scale(1.02);
}

/* Screenshot Carousel in Detail Pages */
.screenshots-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-thumb-item {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-thumb-item:hover {
  transform: translateY(-4px);
  border-color: #4f46e5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-thumb-item:hover .gallery-zoom-overlay {
  opacity: 1;
}

/* Release notes banner Light Theme */
.release-notes-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 40px;
}

.release-notes-box h4 {
  font-size: 1.15rem;
  color: #065f46;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-notes-box p {
  color: #047857;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .app-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .app-detail-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .app-meta-stats {
    justify-content: center;
  }
  .app-detail-actions {
    justify-content: center;
  }
  .screenshots-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   SEO & Discovery Enhancements: Use Cases, How-To, Comparison & Keyword Cloud
   ========================================================================== */

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.use-case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: #6366f1;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.1);
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.use-case-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.use-case-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}

.use-case-card .persona-tag {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.use-case-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* How-To Step Cards */
.howto-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.howto-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.howto-step-card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
}

.howto-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.howto-step-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.howto-step-card p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* Semantic Keywords Cloud */
.keyword-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.keyword-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.keyword-tag-pill:hover {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.keyword-tag-pill i {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Comparison Badges */
.badge-check {
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-cross {
  color: #94a3b8;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

