/* ==========================================================================
   PRESET SHOP PAGE STYLING (HIGH-CONVERTING & QUIET LUXURY)
   ========================================================================== */

/* Main Page Container */
.preset-main {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 2.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

/* Hero Header */
.preset-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.preset-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-camel);
  display: inline-block;
  border: 1px solid var(--border-gold);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.preset-main-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.preset-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-subtle);
}

/* ==========================================================================
   PRESET CARDS GRID (4 COLUMNS DESKTOP)
   ========================================================================== */
.preset-grid-section {
  margin-bottom: 5rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.preset-card {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.preset-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-camel);
  box-shadow: 0 15px 35px var(--shadow-warm);
}

.card-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background-color: var(--accent-camel);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  z-index: 3;
}

.preset-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.preset-box-wrapper {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  background-color: oklch(0% 0 0 / 0.2);
  overflow: hidden;
  position: relative;
}

.preset-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preset-card:hover .preset-box-img {
  transform: scale(1.05);
}

.preset-card-body {
  padding: 1.25rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.preset-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.preset-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.preset-card-title a:hover {
  color: var(--accent-camel);
}

.preset-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.preset-rating .stars {
  color: var(--accent-camel);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.preset-rating .rating-num {
  font-size: 0.775rem;
  color: var(--text-subtle);
}

.btn-preset-action {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  background-color: #f3b71b;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.2s ease, filter 0.2s ease;
  margin-top: auto;
}

.btn-preset-action:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   SHOP SECTIONS & USEFUL VIDEOS (LOCKED)
   ========================================================================== */
.shop-section {
  margin-top: 5rem;
}

.section-center-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.video-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  overflow: hidden;
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent-camel);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  z-index: 3;
}

.video-info {
  padding: 1.5rem;
}

.video-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.video-desc {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: oklch(0% 0 0 / 0.3);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #f3b71b;
  border-radius: 99px;
}

/* Locked Video State Overlay */
.video-card.locked {
  position: relative;
  user-select: none;
}

.video-card.locked .video-thumb-wrapper {
  filter: grayscale(0.5);
}

.video-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: oklch(0% 0 0 / 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-main);
  z-index: 2;
}

.video-lock-overlay svg {
  stroke: #f3b71b;
}

.video-lock-overlay span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3b71b;
}

/* ==========================================================================
   AUTHOR BANNER & BRAND SOCIAL BUTTONS
   ========================================================================== */
.author-banner-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 850px;
  margin: 0 auto;
}

.author-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  margin: 0 0 0.25rem;
  color: var(--text-main);
}

.author-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f3b71b;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.author-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.social-brand-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px oklch(0% 0 0 / 0.25);
}

.btn-tiktok {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #333333;
  box-shadow: 0 4px 12px oklch(0% 0 0 / 0.25);
}

.btn-tiktok svg {
  color: #25f4ee;
}

/* ==========================================================================
   HOW IT WORKS (CARA KERJA GRID)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 2rem;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #f3b71b;
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-subtle);
  margin: 0;
}

/* ==========================================================================
   SMOOTH FAQ ACCORDION
   ========================================================================== */
.faq-section {
  background-color: #030303;
  padding: 40px 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
}

/* Accordion Wrapper */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Accordion Item Card */
.faq-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 193, 7, 0.3); /* Accent Border saat aktif */
}

/* Clickable Button Question */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #ffc107;
}

/* Plus/Minus Animated Icon */
.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #ffc107;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Horizontal Line */
.faq-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

/* Vertical Line */
.faq-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

/* Rotate to minus icon when active */
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* Smooth Accordion Height Wrapper */
.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inner Answer Body */
.faq-answer {
  padding: 0 24px 22px 24px;
  font-size: 0.9rem;
  color: #888888;
  line-height: 1.6;
  text-align: left;
}

.faq-answer p {
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .faq-section {
    padding: 20px 16px;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-avatar {
    max-width: 180px;
    margin: 0 auto;
  }

  .author-social-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .preset-main-title {
    font-size: 2rem;
  }

  .preset-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .video-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Hanya berlaku untuk tampilan mobile (layar 768px ke bawah) */
@media (max-width: 768px) {
  .author-avatar {
      width: 140px;           /* Sesuaikan ukuran lebar di mobile */
      height: 140px;          /* Wajib sama dengan width agar rasio 1:1 */
      border-radius: 50%;    /* Mengubah gambar menjadi bulat sempurna */
      object-fit: cover;     /* Menjaga foto tidak gepeng/terdistorsi */
  }

  .author-avatar-wrapper {
      display: flex;
      justify-content: center;
  }

  .author-banner-card {
    padding: 2.5rem;
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .preset-main {
    padding-bottom: 2.5rem;
  }
}