/**
 * Cakmak Law Firm - Single Document Experience & Print Stylesheet
 * Dilekçe ve Sözleşmeler için Eylem Çubuğu, Kopyalama ve Kurumsal Antetli PDF/Yazdırma
 */

/* ==========================================================================
   1. BELGE EYLEM ÇUBUĞU (DOCUMENT ACTION TOOLBAR)
   ========================================================================== */
.document-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  margin-bottom: 36px;
  background: linear-gradient(135deg, rgba(20, 12, 6, 0.96), rgba(35, 16, 10, 0.97));
  border: 1px solid rgba(201, 167, 106, 0.35);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
  position: relative;
  z-index: 10;
}

.doc-action-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 440px;
}

.doc-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(201, 167, 106, 0.15);
  border: 1px solid rgba(201, 167, 106, 0.4);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e6c589;
}

.doc-action-badge svg {
  color: #c9a76a;
}

.doc-action-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.doc-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-doc-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  line-height: 1;
  white-space: nowrap;
}

/* Kopyalama Butonu */
.btn-copy-draft {
  background: linear-gradient(135deg, #c9a76a, #e6c589);
  color: #1a0b02;
  box-shadow: 0 4px 14px rgba(201, 167, 106, 0.28);
}

.btn-copy-draft:hover {
  background: linear-gradient(135deg, #dfbc7c, #fae0a8);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 167, 106, 0.4);
}

.btn-copy-draft.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  transform: scale(1.02);
}

/* Yazdır / PDF Butonu */
.btn-print-pdf {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(201, 167, 106, 0.45);
}

.btn-print-pdf:hover {
  background: rgba(201, 167, 106, 0.18);
  border-color: #c9a76a;
  transform: translateY(-2px);
}

/* WhatsApp Avukata Danış Butonu */
.btn-wa-consult {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-wa-consult:hover {
  background: #1ebd5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   2. İÇERİK İÇİ TASLAK ÇERÇEVESİ (LEGAL DRAFT BOX)
   ========================================================================== */
.legal-draft-box {
  background: rgba(201, 167, 106, 0.04);
  border: 1px solid rgba(201, 167, 106, 0.22);
  border-left: 4px solid #c9a76a;
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
}

.draft-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(201, 167, 106, 0.3);
  flex-wrap: wrap;
}

.draft-box-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #910000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inline-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: #910000;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.inline-copy-btn:hover {
  background: #b30000;
  transform: translateY(-1px);
}

.inline-copy-btn.copied {
  background: #10b981 !important;
}

/* ==========================================================================
   3. TOAST BİLDİRİMİ (COPIED TOAST NOTIFICATION)
   ========================================================================== */
.cakmak-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(20, 12, 6, 0.97);
  border: 1px solid #c9a76a;
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cakmak-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cakmak-toast svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ==========================================================================
   4. KURUMSAL ANTET & FOOTER (EKRANDA GİZLİ, SADECE YAZDIRMADA GÖRÜNÜR)
   ========================================================================== */
.print-official-letterhead,
.print-official-footer {
  display: none !important;
}

/* ==========================================================================
   5. RESMİ YAZDIRMA VE PDF ÇIKTISI (@media print)
   ========================================================================== */
@media print {
  /* Sayfa Yapısı */
  @page {
    size: A4 portrait;
    margin: 18mm 14mm 18mm 14mm;
  }

  /* Evrensel Filtre ve Gölgeleri Kaldır */
  *, *::before, *::after {
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Web Sitesi Arayüz Bileşenlerini Gizle */
  header,
  footer,
  nav,
  .nav,
  .topbar,
  .hamburger,
  .mob-menu,
  #prog,
  #cakmak-live-chat,
  #cakmak-wa-btn,
  .floating-cta,
  .article-author-cta,
  .topic-cluster-section,
  .article-documents-silo,
  .document-action-bar,
  .draft-box-header,
  .inline-copy-btn,
  .cakmak-toast,
  #wpadminbar,
  .page-hero,
  .page-eyebrow,
  .page-meta,
  .pill-row,
  .modal-overlay,
  script,
  style,
  noscript,
  #page-curtain,
  #cak-preloader,
  .cak-preloader,
  .cak-pl-stage,
  .footer-cta,
  .fab-container,
  .chat-bubble,
  .cak-fab,
  .cak-badge,
  #mob-sticky,
  #wa-btn,
  #qc-btn,
  #cb-ai-wrap,
  #cb-ai-wrap *,
  #scroll-top,
  .scroll-top,
  .back-to-top,
  .skip-link,
  div[style*="Tüm dilekçelere dön"],
  div[style*="Tüm sözleşmelere dön"],
  a[href*="archive"] {
    display: none !important;
  }

  /* Gövde ve Sayfa Görünümünü Aç */
  html, body {
    background: #ffffff !important;
    color: #111111 !important;
    font-family: "Times New Roman", Times, "Montserrat", serif !important;
    font-size: 11pt !important;
    line-height: 1.55 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body::before,
  body::after,
  html::before,
  html::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .legal-body {
    padding: 0 !important;
    background: #ffffff !important;
  }

  .yayin-content {
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .yayin-content *,
  .legal-body * {
    color: #111111 !important;
  }

  .page-hero {
    display: none !important;
  }

  /* Kurumsal Antet (Letterhead) */
  .print-official-letterhead {
    display: block !important;
    margin-bottom: 22pt !important;
    padding-bottom: 12pt !important;
    border-bottom: 2pt solid #910000 !important;
  }

  .print-head-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 15pt !important;
  }

  .print-brand-left {
    display: flex !important;
    align-items: center !important;
    gap: 12pt !important;
  }

  .print-logo-img {
    width: 48pt !important;
    height: 48pt !important;
    object-fit: contain !important;
  }

  .print-title {
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 16pt !important;
    font-weight: 800 !important;
    color: #910000 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.15 !important;
  }

  .print-sub {
    font-family: Arial, sans-serif !important;
    font-size: 8pt !important;
    font-weight: 600 !important;
    color: #555555 !important;
    letter-spacing: 0.12em !important;
    margin-top: 3pt !important;
  }

  .print-lawyer-right {
    text-align: right !important;
    font-family: Arial, sans-serif !important;
    font-size: 8.5pt !important;
    line-height: 1.4 !important;
    color: #333333 !important;
  }

  .print-lawyer-right strong {
    font-size: 10pt !important;
    color: #111111 !important;
  }

  .print-doc-info {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 8pt !important;
    font-family: Arial, sans-serif !important;
    font-size: 8.5pt !important;
    font-weight: 600 !important;
    color: #666666 !important;
  }

  .print-doc-title-main {
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #111111 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin: 16pt 0 18pt 0 !important;
    padding-bottom: 6pt !important;
    border-bottom: 1pt solid #dddddd !important;
  }

  /* İçerik Başlıkları ve Paragraflar */
  .yayin-content h1,
  .yayin-content h2,
  .yayin-content h3 {
    color: #111111 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .yayin-content h2 {
    font-size: 12pt !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    margin-top: 18pt !important;
    margin-bottom: 8pt !important;
    border-bottom: 1pt solid #ccc !important;
    padding-bottom: 3pt !important;
  }

  .yayin-content p {
    font-size: 10.5pt !important;
    line-height: 1.6 !important;
    margin-bottom: 9pt !important;
    text-align: justify !important;
  }

  .yayin-content pre,
  .yayin-content code {
    font-family: "Courier New", Courier, monospace !important;
    font-size: 9.5pt !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    background: #fdfdfd !important;
    border: 1pt solid #e0e0e0 !important;
    padding: 10pt !important;
  }

  .legal-draft-box {
    border: 1pt solid #bbbbbb !important;
    background: #fafafa !important;
    padding: 14pt !important;
    margin: 14pt 0 !important;
    page-break-inside: auto !important;
  }

  /* Kurumsal Dipnot (Print Footer) */
  .print-official-footer {
    display: block !important;
    margin-top: 25pt !important;
    padding-top: 10pt !important;
    border-top: 1pt solid #bbbbbb !important;
    font-family: Arial, sans-serif !important;
    font-size: 7.5pt !important;
    line-height: 1.4 !important;
    color: #666666 !important;
    page-break-inside: avoid !important;
  }

  .print-footer-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15pt !important;
  }

  .print-footer-notice {
    flex: 1 !important;
  }

  .print-footer-brand {
    font-weight: 700 !important;
    color: #910000 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   6. MOBİL DUYARLILIK (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
  .document-action-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 16px;
  }
  
  .doc-action-info {
    max-width: 100%;
  }
  
  .doc-action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-doc-action {
    justify-content: center;
    width: 100%;
  }

  .cakmak-toast {
    width: calc(100% - 32px);
    font-size: 12px;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   7. İÇERİK SİLOSU & TOPIC CLUSTERS (.topic-cluster-section & .article-documents-silo)
   ========================================================================== */
.topic-cluster-section,
.article-documents-silo {
  margin-top: 52px;
  padding: 36px 32px;
  background: rgba(22, 14, 8, 0.85);
  border: 1px solid rgba(201, 167, 106, 0.28);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.topic-cluster-section::before,
.article-documents-silo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #910000 0%, #c9a76a 50%, #910000 100%);
}

.cluster-header,
.art-doc-header {
  margin-bottom: 26px;
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201, 167, 106, 0.12);
  border: 1px solid rgba(201, 167, 106, 0.3);
  color: #d4af37;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cluster-title,
.art-doc-title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.cluster-desc,
.art-doc-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* İnteraktif Hesaplama Uygulaması Banner'ı */
.cluster-app-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(145, 0, 0, 0.25) 0%, rgba(201, 167, 106, 0.18) 100%);
  border: 1px solid rgba(201, 167, 106, 0.45);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 26px;
  transition: all 0.3s ease;
}

.cluster-app-banner:hover {
  border-color: #c9a76a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 167, 106, 0.15);
}

.app-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #910000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(145, 0, 0, 0.3);
}

.app-banner-content {
  flex: 1;
  min-width: 220px;
}

.app-banner-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #e6c589;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.app-banner-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 750;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.app-banner-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.app-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c9a76a;
  color: #1a0f07 !important;
  font-size: 13px;
  font-weight: 750;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.app-banner-btn:hover {
  background: #e6c589;
  transform: translateX(2px);
}

/* Grid Yapısı */
.cluster-grid,
.art-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.cluster-card,
.art-doc-card {
  background: rgba(30, 18, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.cluster-card:hover,
.art-doc-card:hover {
  background: rgba(38, 22, 12, 0.85);
  border-color: rgba(201, 167, 106, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-tag,
.doc-card-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
}

.tag-guide,
.doc-card-badge {
  background: rgba(145, 0, 0, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(145, 0, 0, 0.4);
}

.tag-contract,
.badge-contract {
  background: rgba(201, 167, 106, 0.2);
  color: #e6c589;
  border: 1px solid rgba(201, 167, 106, 0.35);
}

.tag-petition {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.card-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.card-title,
.doc-card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px 0;
  flex: 1;
}

.card-title a,
.doc-card-title a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.card-title a:hover,
.doc-card-title a:hover {
  color: #e6c589 !important;
}

.card-excerpt,
.doc-card-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px 0;
}

.card-link,
.doc-btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c9a76a !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  margin-top: auto;
  transition: all 0.2s ease;
}

.card-link:hover,
.doc-btn-view:hover {
  color: #e6c589 !important;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .topic-cluster-section,
  .article-documents-silo {
    padding: 22px 16px;
    margin-top: 36px;
  }
  
  .cluster-app-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  
  .app-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   8. DİLEKÇE REHBER KARTLARI, AVUKAT TAVSİYELERİ VE SSS
   ========================================================================== */
.guide-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .guide-grid-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.guide-card {
  background: #faf8f5;
  border: 1px solid #e5dbcd;
  border-left: 3.5px solid #c9a76a;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.guide-card:hover {
  border-color: #c9a76a;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(201, 167, 106, 0.12);
}

.guide-card .card-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-card .card-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #910000;
  margin: 0 0 5px 0;
  letter-spacing: -0.01em;
}

.guide-card .card-body p {
  font-size: 13px;
  line-height: 1.55;
  color: #2b2b2b;
  margin: 0;
}

.guide-pro-tip {
  background: rgba(145, 0, 0, 0.04);
  border: 1px solid rgba(145, 0, 0, 0.18);
  border-left: 4px solid #910000;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.guide-pro-tip h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #910000;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-pro-tip p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #1f2937;
  margin: 0;
}

.sample-notice-box {
  background: rgba(30, 64, 175, 0.04);
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-left: 4px solid #1e40af;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 18px 0;
}

.sample-notice-box p {
  font-size: 13px;
  line-height: 1.55;
  color: #1e3a8a;
  margin: 0;
}

.dilekce-faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #c9a76a;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.dilekce-faq-item:hover {
  border-left-color: #910000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dilekce-faq-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.dilekce-faq-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}
