/**
 * Bongkar Preset list + Digital Product Showcase UI/UX Styles.
 *
 * @package AkuAjae_Community_Core
 */

.acc-bongkar-feed {
  display: flex;
  flex-direction: column;
  gap: var(--acc-space-5, 1.5rem);
}

.acc-bongkar-card {
  border: 1px solid var(--acc-color-border, #e2e8f0);
  border-radius: var(--acc-radius-card, 16px);
  background: var(--acc-color-bg-card, #ffffff);
  color: var(--acc-color-text, #0f172a);
  box-shadow: var(--acc-shadow-soft, 0 4px 20px rgba(0, 0, 0, 0.05));
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ─── Hero Section: 3-Photo Media Showcase ──────────────── */

.acc-bongkar-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2px;
  background: var(--acc-color-border-strong, #0f172a);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .acc-bongkar-hero {
    grid-template-columns: 1fr;
  }
}

.acc-bongkar-hero__spotlight {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #0f172a;
}

.acc-bongkar-hero__spotlight img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.acc-bongkar-hero__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--acc-color-border-strong, #0f172a);
}

.acc-bongkar-hero__compare--full {
  grid-column: 1 / -1;
}

.acc-bongkar-card__shot {
  margin: 0;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.acc-bongkar-card__shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .acc-bongkar-card__shot:hover img {
    transform: scale(1.03);
  }
}

/* Photo Badges */
.acc-bongkar-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.acc-bongkar-badge--ref {
  background: rgba(124, 58, 237, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4) !important;
}

.acc-bongkar-badge--before {
  background: rgba(15, 23, 42, 0.85) !important;
}

.acc-bongkar-badge--after {
  background: rgba(16, 185, 129, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* ─── Card Body & Information Section ───────────────────── */

.acc-bongkar-card__body {
  padding: var(--acc-space-5, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--acc-space-3, 0.85rem);
}

.acc-bongkar-card__meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acc-bongkar-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--acc-color-text, #0f172a);
  letter-spacing: -0.01em;
}

.acc-bongkar-card__excerpt {
  margin: 0;
  font-size: 0.925rem;
  color: var(--acc-color-text-muted, #64748b);
  line-height: 1.6;
}

/* ─── Video Breakdown Section ──────────────────────────── */

.acc-bongkar-card__video-wrap {
  margin-top: 4px;
  border: 1px solid var(--acc-color-border, #e2e8f0);
  border-radius: var(--acc-radius-md, 12px);
  overflow: hidden;
  background: var(--acc-color-bg-subtle, #0f172a);
}

.acc-bongkar-card__video-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--acc-color-text-muted, #94a3b8);
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid var(--acc-color-border, #334155);
}

.acc-bongkar-card__video {
  width: 100%;
  background: #0f172a;
}

.acc-bongkar-card__video-el {
  display: block;
  width: 100%;
  max-height: 65vh;
  background: #000;
}

.acc-bongkar-card__video .acc-video-embed__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.acc-bongkar-card__video .acc-video-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Accordion Description Section ────────────────────── */

.acc-bongkar-card__desc-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-bongkar-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--acc-color-accent, #7c3aed);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--acc-radius-md, 8px);
  transition: all 0.2s ease;
}

.acc-bongkar-card__toggle-chevron {
  transition: transform 0.25s ease;
}

.acc-bongkar-card__toggle[aria-expanded="true"] .acc-bongkar-card__toggle-chevron {
  transform: rotate(180deg);
}

.acc-bongkar-card__description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--acc-color-text, #0f172a);
  border-top: 1px solid var(--acc-color-border, #e2e8f0);
  padding-top: 12px;
  margin-top: 4px;
}

.acc-bongkar-card__description[hidden] {
  display: none !important;
}

/* ─── Download Call-To-Action (CTA) Action Bar ──────────── */

.acc-bongkar-cta-bar {
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--acc-color-bg-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--acc-color-border, #e2e8f0);
  border-radius: var(--acc-radius-md, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.acc-bongkar-cta-bar__info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-bongkar-cta-bar__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--acc-color-text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acc-bongkar-cta-bar__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acc-bongkar-btn-download {
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  font-weight: 600;
  padding: 8px 16px;
}

@media (max-width: 640px) {
  .acc-bongkar-cta-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .acc-bongkar-cta-bar__buttons {
    flex-direction: column;
    width: 100%;
  }

  .acc-bongkar-cta-bar__buttons .acc-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── In-Player Video Overlay CTA ─────────────────────── */

.acc-bongkar-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  border-radius: inherit;
  animation: accFadeIn 0.3s ease;
}

.acc-bongkar-video-overlay__content {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.acc-bongkar-video-overlay__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.acc-bongkar-video-overlay__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.acc-bongkar-video-overlay__desc {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
}

.acc-bongkar-video-overlay__btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  font-weight: 600;
}

/* Shared Upgrade Modal Dialog CSS is provided by akm-popup-auth.css (Single Source of Truth) */

@keyframes accFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

