/* ============================================
   PORTFOLIO DETAIL — portfolio-detail.css
   Vardana Solusi — Ocean Deep Theme
   ============================================ */

/* ===== FORCE NAVBAR SOLID ON DETAIL/LISTING PAGES ===== */
.pf-hero ~ .navbar,
body:has(.pf-hero) .navbar,
body:has(.page-hero) .navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ===== PAGE HERO (for listing page) ===== */
.page-hero {
  padding: 120px 0 50px;
  background: var(--gray-50);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.page-hero__breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero__breadcrumb a:hover {
  color: var(--teal);
}

.page-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.page-hero__desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 600px;
}

/* ===== PORTFOLIO HERO ===== */
.pf-hero {
  padding: 140px 0 64px;
  color: white;
  position: relative;
  overflow: hidden;
}

.pf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  z-index: 0;
}

.pf-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.pf-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.pf-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.pf-hero__breadcrumb a:hover {
  color: white;
}

.pf-hero__breadcrumb svg {
  opacity: 0.4;
}

/* Category Badge */
.pf-hero__category {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

/* Title */
.pf-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Description */
.pf-hero__desc {
  font-size: 16.5px;
  line-height: 1.7;
  opacity: 0.88;
  max-width: 640px;
  margin-bottom: 28px;
}

/* Meta Info Bar */
.pf-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pf-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}

.pf-meta-item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

/* ===== CONTENT LAYOUT ===== */
.pf-content {
  padding: 60px 0 80px;
}

.pf-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ===== MAIN CONTENT ===== */
.pf-main__thumb {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pf-main__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prose styles for HTML content */
.prose {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}

.prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 32px 0 12px;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 24px 0 8px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul,
.prose ol {
  margin: 16px 0;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--gray-800);
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--mid-blue);
}

/* ===== SIDEBAR ===== */
.pf-sidebar__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.pf-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.pf-sidebar__title svg {
  color: var(--teal);
}

.pf-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.pf-tag--tech {
  background: var(--light-cyan);
  color: var(--teal);
}

.pf-sidebar__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pf-sidebar__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.pf-sidebar__features li:last-child {
  border-bottom: none;
}

.pf-sidebar__features svg {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}

.pf-sidebar__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pf-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13.5px;
}

.pf-info-row:last-child {
  border-bottom: none;
}

.pf-info-row span {
  color: var(--gray-400);
}

.pf-info-row strong {
  color: var(--gray-700);
  font-weight: 600;
}

.pf-sidebar__live-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--light-cyan);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.pf-sidebar__live-link:hover {
  background: var(--teal);
  color: white;
}

/* ===== CTA Card ===== */
.pf-sidebar__card--cta {
  background: linear-gradient(135deg, var(--deep-blue), var(--teal));
  border: none;
  color: white;
  text-align: center;
  padding: 28px 24px;
}

.pf-sidebar__card--cta h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pf-sidebar__card--cta p {
  font-size: 13.5px;
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pf-sidebar__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: var(--deep-blue);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pf-sidebar__cta-btn:hover {
  background: #25D366;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.pf-sidebar__cta-btn svg {
  flex-shrink: 0;
}

/* ===== RELATED SECTION ===== */
.pf-related {
  background: var(--gray-50);
}

/* ===== LISTING PAGE ===== */
.portofolio-listing {
  padding-top: 0;
}

.portfolio-tabs--page {
  margin-bottom: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pf-layout {
    grid-template-columns: 1fr;
  }

  .pf-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .pf-sidebar__card {
    margin-bottom: 0;
  }

  .pf-sidebar__card--cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .pf-hero {
    padding: 110px 0 40px;
  }

  .pf-hero__title {
    font-size: 26px;
  }

  .pf-hero__meta {
    gap: 14px;
  }

  .pf-meta-item {
    font-size: 12.5px;
  }

  .pf-content {
    padding: 40px 0 60px;
  }

  .pf-sidebar {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 100px 0 40px;
  }

  .page-hero__title {
    font-size: 28px;
  }
}
