/* ==========================================================================
   SHUAIBDEV — Single Project Page Styles
   ========================================================================== */

/* Break full-bleed sections out of any max-width the theme applies to
   .site-main / .content-area so they stretch to the full viewport width. */
.sdp-hero,
.sdp-body,
.sdp-back-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.sdp-hero {
  position: relative;
  background-color: #0f172a;
  padding: 120px 20px 80px;
  overflow: hidden;
  color: #ffffff;
}

.sdp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.sdp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.6) 0%,
    #0f172a 100%
  );
}

.sdp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* Breadcrumb */
.sdp-breadcrumb {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sdp-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.sdp-breadcrumb a:hover {
  color: #ffffff;
}

/* Status badge */
.sdp-status-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sdp-status--live {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.sdp-status--in_development {
  background-color: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.sdp-status--internal_case_study {
  background-color: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(203, 213, 225, 0.3);
}

/* Title */
.sdp-project-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Project type tags */
.sdp-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sdp-type-tag {
  background-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sdp-type-tag:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* ── Body Layout ──────────────────────────────────────────────────────────── */

.sdp-body {
  background-color: #f1f5f9;
  padding: 60px 20px;
}

.sdp-body-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ── Left: Post Content ───────────────────────────────────────────────────── */

.sdp-featured-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 350px;
  position: relative;
}

.sdp-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  animation: autoScroll 15s ease-in-out infinite alternate;
}

@keyframes autoScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-100% + 350px));
  }
}

.sdp-post-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 36px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
}

.sdp-post-content h2,
.sdp-post-content h3,
.sdp-post-content h4 {
  color: #0f172a;
  margin-top: 28px;
  margin-bottom: 12px;
}

.sdp-post-content p {
  margin-bottom: 18px;
}

.sdp-post-content a {
  color: #3b82f6;
  text-decoration: underline;
}

/* ── Right: Spec Sidebar ─────────────────────────────────────────────────── */

.sdp-sidebar {
  position: sticky;
  top: 100px;
}

.sdp-spec-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sdp-spec-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.sdp-spec-row {
  margin-bottom: 20px;
}

.sdp-spec-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 5px;
}

.sdp-spec-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

.sdp-spec-link {
  text-align: left;
  text-decoration: none;
  color: #2563eb;
  overflow-wrap: anywhere;
}

.sdp-spec-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Inline status dot in sidebar */
.sdp-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Tech pills row inside sidebar */
.sdp-spec-row--stack .sdp-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Tech stack capsules on single project page */
.sdp-tech-pills .tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: default;
  text-decoration: none;
}

.sdp-tech-pills .tech-pill:hover {
  background-color: #e2e8f0;
  color: #334155;
  border-color: #cbd5e1;
}

/* CTA button */
.sdp-spec-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.sdp-cta-btn {
  display: block;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 20px;
}

/* ── Back link ────────────────────────────────────────────────────────────── */

.sdp-back-wrap {
  background-color: #f1f5f9;
  padding: 0 20px 60px;
}

.sdp-back-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Highlights Grid ─────────────────────────────────────────────────────── */

.sdp-content .sdp-highlights {
  background-color: #f8fafc;
  padding: 60px 0 0;
  border-top: 1px solid #e2e8f0;
  width: auto;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
}

.sdp-highlights-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.sdp-highlights-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 36px;
}

.sdp-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.sdp-highlight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.sdp-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.sdp-highlight-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
}

.sdp-highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sdp-highlight-card:hover .sdp-highlight-media img {
  transform: scale(1.04);
}

.sdp-highlight-no-image {
  display: grid;
  place-content: center;
  height: 100%;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sdp-highlight-content {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sdp-highlight-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.sdp-highlight-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .sdp-project-title {
    font-size: 2rem;
  }

  .sdp-body-inner {
    grid-template-columns: 1fr;
  }

  .sdp-sidebar {
    position: static;
  }

  .sdp-post-content {
    padding: 24px 20px;
  }

  .sdp-spec-card {
    padding: 24px 20px;
  }

  .sdp-highlights {
    padding: 50px 20px;
  }

  .sdp-highlight-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sdp-highlights-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
}
