/* ==========================================================================
   App Detail Component Styles — Full Play Store Experience (Desktop & Mobile)
   ========================================================================== */

.app-detail {
  padding: 36px 0 60px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  transition: all 180ms var(--ease);
}
.back-btn:hover {
  color: var(--ink);
  background: var(--border);
  transform: translateX(-3px);
}

/* Master Adaptive Showcase: 2-Column on Desktop (PC), Clean Stack on Mobile */
.app-hero-showcase {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  animation: fluidViewEnter 280ms var(--ease);
}

.app-hero-showcase__info {
  padding: 28px 24px;
}

.app-hero-showcase__banner {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.banner-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-frame__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 380ms var(--ease-spring);
}

.banner-frame__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Dedicated Desktop PC Showcase Grid (>= 900px) */
@media (min-width: 900px) {
  .app-hero-showcase {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 38px 42px;
    background: var(--surface-card);
  }

  .app-hero-showcase__info {
    padding: 0;
  }

  .app-hero-showcase__banner {
    background: transparent;
    border-bottom: none;
  }

  .banner-frame {
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.2);
    background: var(--bg-secondary);
    transform: translate3d(0, 0, 0);
    transition: transform 280ms var(--ease-spring), box-shadow 280ms var(--ease);
  }

  .banner-frame:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 48px -6px rgba(255, 91, 0, 0.16);
    border-color: var(--orange-soft-2);
  }

  .banner-frame__img {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }
}

.app-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.app-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.app-header__icon {
  width: 84px;
  height: 84px;
  min-width: 84px;
  min-height: 84px;
  max-width: 84px;
  max-height: 84px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-secondary);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.app-header__name {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 4px;
}
.app-header__publisher {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-header-actions-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 220ms var(--ease-spring);
}
.icon-btn:hover {
  border-color: var(--border-hover);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.icon-btn.is-active {
  background: var(--orange-soft);
  border-color: var(--orange-soft-2);
  color: var(--orange);
}
.icon-btn.is-active svg {
  fill: var(--orange);
}

/* Play Store Download & Platform Action Pills */
.app-install-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.app-install-row .btn {
  height: 48px;
}
.btn-download-exe {
  background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(0, 120, 212, 0.4);
}
.btn-download-exe:hover {
  background: linear-gradient(135deg, #0086F0 0%, #0066B3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 120, 212, 0.5);
}
.btn-download-apk {
  background: linear-gradient(135deg, #3DDC84 0%, #2BB86B 100%);
  color: #0E3E22;
  box-shadow: 0 4px 14px -2px rgba(61, 220, 132, 0.4);
}
.btn-download-apk:hover {
  background: linear-gradient(135deg, #4AE891 0%, #30C774 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(61, 220, 132, 0.5);
}
.btn-open-web {
  background: linear-gradient(135deg, var(--orange) 0%, #FF721E 100%);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(255, 91, 0, 0.4);
}

.app-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: transform 180ms var(--ease-spring), background 180ms ease;
}
.meta-pill svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

/* Screenshots Gallery */
.screens-section {
  margin-bottom: 40px;
}
.screens-heading {
  font-size: 20px;
  margin-bottom: 16px;
}
.screens-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screen-frame {
  flex: 0 0 auto;
  width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: all 260ms var(--ease-spring);
  position: relative;
}
.screen-frame:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--orange-glow);
  box-shadow: var(--shadow-card-hover);
}
.screen-frame__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(20, 16, 13, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
  padding: 24px;
}
.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  transform: scale(0.95);
  transition: transform 280ms var(--ease-spring);
}
.lightbox-modal.is-open .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.lightbox-close:hover {
  background: var(--orange);
  transform: scale(1.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.lightbox-nav:hover {
  background: var(--orange);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav--prev { left: 24px; }
.lightbox-nav--next { right: 24px; }

/* Platform Matrix */
.platforms-section {
  margin-bottom: 40px;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.platform-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 220ms var(--ease-spring);
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.platform-card svg {
  width: 32px;
  height: 32px;
  color: var(--ink);
}
.platform-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
}
.status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-tag--available {
  background: var(--green-soft);
  color: #059669;
  border: 1px solid var(--green-border);
}
.status-tag--coming-soon {
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid var(--orange-soft-2);
}
.status-tag--hidden {
  background: var(--bg-secondary);
  color: var(--ink-muted);
}

/* User Reviews Section */
.reviews-section {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.review-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 28px;
}
.review-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.review-input {
  flex: 1;
  min-width: 200px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.review-input:focus {
  border-color: var(--orange);
}
.rating-select {
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-card__author {
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
}
.review-card__date {
  font-size: 12px;
  color: var(--ink-muted);
}
.review-card__comment {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
