/**
 * Cakmak Law — Single Blog Post & Editorial Stylesheet (single-post.css)
 * Lüks editoryal mimari, 2 sütunlu yapışkan sidebar, kusursuz tipografi ve dönüşüm odaklı CTA'lar.
 */

:root {
  --sp-gold: #c9a76a;
  --sp-gold-light: #e6c589;
  --sp-wine: #910000;
  --sp-wine-dark: #630000;
  --sp-bg-dark: #120504;
  --sp-card-bg: #ffffff;
  --sp-ink: #201815;
  --sp-body: #342a26;
  --sp-border: rgba(201, 167, 106, 0.28);
}

/* ── HERO: Koyu Lüks Hero ve Başlık Koruması ── */
.single-post-hero-sec {
  position: relative;
  padding: 120px 0 60px;
  background:
    linear-gradient(135deg, rgba(16, 5, 4, 0.96) 0%, rgba(28, 8, 7, 0.92) 55%, rgba(12, 3, 2, 0.98) 100%),
    radial-gradient(circle at 80% 20%, rgba(201, 167, 106, 0.15), transparent 60%),
    url('/wp-content/themes/cakmak-pro-v2/assets/images/stock/p1521587760476-6c12a4b04.webp') center / cover no-repeat;
  border-bottom: 1px solid rgba(201, 167, 106, 0.25);
  overflow: hidden;
}

.single-post-hero-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 90%, rgba(145, 0, 0, 0.16), transparent 50%);
  pointer-events: none;
}

.sp-hero-card {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

/* Breadcrumbs */
.sp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(240, 235, 227, 0.75);
  margin-bottom: 20px;
}

.sp-breadcrumbs a {
  color: rgba(240, 235, 227, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-breadcrumbs a:hover {
  color: var(--sp-gold-light);
}

.sp-breadcrumbs .sep {
  color: var(--sp-gold);
  font-size: 11px;
}

.sp-breadcrumbs .current {
  color: var(--sp-gold-light);
  font-weight: 700;
}

/* Category Badge */
.sp-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(201, 167, 106, 0.15);
  border: 1px solid rgba(201, 167, 106, 0.45);
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-gold-light);
  text-decoration: none;
  margin-bottom: 22px;
  transition: all 0.25s ease;
}

.sp-cat-badge:hover {
  background: var(--sp-wine);
  border-color: var(--sp-wine);
  color: #ffffff;
  transform: translateY(-2px);
}

/* H1 Title */
.sp-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

/* Hero Meta Row */
.sp-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sp-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--sp-gold);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.sp-author-text {
  display: flex;
  flex-direction: column;
}

.sp-author-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.sp-author-role {
  font-size: 11.5px;
  color: var(--sp-gold-light);
}

.sp-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  color: rgba(240, 235, 227, 0.85);
  flex-wrap: wrap;
}

.sp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── 2-COLUMN LAYOUT ── */
.single-post-body-sec {
  padding: 60px 0 100px;
  background: #fbfbfa;
}

.single-post-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1024px) {
  .single-post-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── MAIN ARTICLE CARD ── */
.post-paper {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 48px 52px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .post-paper {
    padding: 28px 20px;
  }
}

/* ── FEATURED EDITORIAL MEDIA ── */
.sp-featured-media {
  margin-bottom: 36px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(201, 167, 106, 0.35);
  background: #140806;
}

.sp-featured-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.sp-featured-media:hover .sp-featured-img {
  transform: scale(1.025);
}

.sp-media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  background: #1a0b08;
  border-top: 1px solid rgba(201, 167, 106, 0.22);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(240, 235, 227, 0.78);
  flex-wrap: wrap;
  gap: 8px;
}

.sp-media-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-media-lawyer {
  color: var(--sp-gold-light);
  font-weight: 700;
}

/* Key Takeaway / Quick Analysis Box */
.sp-quick-takeaway {
  display: flex;
  gap: 18px;
  background: linear-gradient(135deg, rgba(26, 10, 8, 0.97), rgba(42, 14, 12, 0.98));
  border: 1px solid rgba(201, 167, 106, 0.45);
  border-left: 5px solid #d4af37;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 38px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #ffffff;
}

@media (max-width: 640px) {
  .sp-quick-takeaway {
    flex-direction: column;
    padding: 20px 18px;
  }
}

.sp-qt-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 167, 106, 0.15);
  border: 1px solid rgba(201, 167, 106, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sp-gold-light);
}

.sp-qt-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sp-qt-content {
  flex: 1;
}

.sp-qt-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 750;
  color: #fbf1d8;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.sp-qt-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 235, 227, 0.90);
  margin: 0;
}

/* Article Typography */
.article-rich-content {
  font-family: 'Lora', Georgia, serif;
  font-size: 17.5px;
  line-height: 1.88;
  color: var(--sp-body);
}

.article-rich-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  color: #1a0e08;
  margin: 42px 0 18px 0;
  padding-left: 16px;
  border-left: 4px solid var(--sp-wine);
  line-height: 1.35;
}

.article-rich-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #2a1616;
  margin: 30px 0 14px 0;
  line-height: 1.4;
}

.article-rich-content p {
  margin-bottom: 22px;
}

.article-rich-content ul,
.article-rich-content ol {
  margin: 0 0 26px 20px;
  padding-left: 10px;
}

.article-rich-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.article-rich-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #382420;
  margin: 24px 0 10px 0;
}

.article-rich-content blockquote,
.article-rich-content .wp-block-quote {
  margin: 32px 0;
  padding: 22px 28px;
  background: rgba(201, 167, 106, 0.08);
  border-left: 4px solid var(--sp-gold);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 18px;
  color: #2b1b16;
}

.article-rich-content blockquote p {
  margin-bottom: 0;
}

.article-rich-content strong {
  font-weight: 700;
  color: #1a0e08;
}

.article-rich-content a {
  color: var(--sp-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-rich-content a:hover {
  color: var(--sp-wine-dark);
}

.article-rich-content img,
.article-rich-content figure img,
.article-rich-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.article-rich-content table,
.article-rich-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.article-rich-content th,
.article-rich-content .wp-block-table th {
  background: #1c0e0b;
  color: #fbf1d8;
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid rgba(201, 167, 106, 0.25);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.article-rich-content td,
.article-rich-content .wp-block-table td {
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #382e2a;
}

.article-rich-content tr:nth-child(even) td {
  background: #fbf9f6;
}

.article-rich-content tr:hover td {
  background: rgba(201, 167, 106, 0.08);
}

.article-rich-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 167, 106, 0.5), transparent);
  margin: 36px 0;
}

/* Tags Row */
.sp-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sp-tag-pill {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #554a44;
  background: #f4f2ee;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ── STICKY SIDEBAR ── */
.sp-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar Card 1: Av. Uğur Çakmak Direct Counsel */
.sp-side-lawyer-card {
  background: linear-gradient(145deg, #180907 0%, #280d0a 100%);
  border: 1px solid rgba(201, 167, 106, 0.40);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.sp-side-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.sp-side-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sp-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sp-side-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2.5px solid #180907;
  border-radius: 50%;
}

.sp-side-lawyer-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 750;
  color: #fbf1d8;
  margin: 0 0 4px 0;
}

.sp-side-lawyer-sub {
  font-size: 12px;
  color: var(--sp-gold-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.sp-side-lawyer-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240, 235, 227, 0.88);
  margin-bottom: 20px;
}

.sp-side-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #25D366;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.22s ease;
  margin-bottom: 10px;
}

.sp-side-wa-btn:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.sp-side-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sp-gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-side-tel-link:hover {
  color: #ffffff;
}

/* Sidebar Card 2: Legal Calculators */
.sp-side-box {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.sp-side-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 750;
  color: #1a0e08;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sp-side-box-head svg {
  color: var(--sp-wine);
}

.sp-side-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-side-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #fbfbfa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #382e2a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sp-side-link-item:hover {
  background: rgba(201, 167, 106, 0.12);
  border-color: var(--sp-gold);
  color: var(--sp-wine);
  transform: translateX(3px);
}

.sp-side-link-item span {
  color: var(--sp-gold);
  font-weight: 700;
}
