/* components.css
   EVDSoft Content Editor (modal + wysiwyg + preview)
   Tek dosya: hem admin hem site kullanır.
   Vars: style.min.css içindeki renkler (primary, gray vs) ile uyumlu. */
:root{
  --ce-bg: rgba(2,6,23,.55);
  --ce-surface: #fff;
  --ce-border: rgba(0,0,0,.10);
  --ce-soft: rgba(2,6,23,.04);
  --ce-radius: 18px;
  --ce-shadow: 0 30px 90px rgba(0,0,0,.22);
  --ce-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
    --primary: #1E3A8A;
    --primary-light: #2D4BA0;
    --primary-dark: #15296B;
    --primary-transparent: rgba(30, 58, 138, 0.6);
    --primary-gradient: linear-gradient(135deg, #1E3A8A 0%, #3B5BD9 100%);
    --white: #FFFFFF;
    --black: #0D0D0D;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-800: #343A40;
    --accent: #38BDF8;
    --accent-hover: #0EA5E9;
    --danger: #FF4757;
    --warning: #FFC107;
    --success: #28A745;
}

/* === Modal === */
.ce-overlay{
  position: fixed;
  inset: 0;
  background: var(--ce-bg);
  z-index: 150;
  display: none;
  padding: 22px;
}
.ce-overlay.is-open{ display:block; }

.ce-modal{
  width: min(1320px, 100%);
  height: min(82vh, 860px);
  background: var(--ce-surface);
  border-radius: 22px;
  box-shadow: var(--ce-shadow);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
}

.ce-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ce-border);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}
.ce-title{
  font-weight: 800;
  letter-spacing: -.2px;
  font-size: 16px;
  color: var(--black, #0d0d0d);
}
.ce-actions{
  display:flex; gap:10px; align-items:center;
}
.ce-btn{
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor:pointer;
}
.ce-btn:active{ transform: translateY(1px); }
.ce-btn-primary{
  border: none;
  background: var(--primary-gradient, linear-gradient(135deg,#1E3A8A 0%, #3B5BD9 100%));
  color:#fff;
}
.ce-btn-ghost{
  background: transparent;
}

/* === Layout === */
.ce-body{
  flex:1;
  display:grid;
  grid-template-columns: 1fr 420px;
  min-height:0;
}
@media (max-width: 1100px){
  .ce-body{ grid-template-columns: 1fr; }
  .ce-right{ display:none; }
}

.ce-left{
  min-width:0;
  border-right: 1px solid var(--ce-border);
  display:flex;
  flex-direction:column;
  min-height:0;
}
.ce-right{
  min-width:0;
  display:flex;
  flex-direction:column;
  min-height:0;
  background: rgba(255,255,255,.6);
}

/* === Toolbar === */
.ce-toolbar{
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--ce-border);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  background: rgba(2,6,23,.02);
}
.ce-tool{
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  padding: 7px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
  user-select:none;
}
.ce-tool:hover{ box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-1px); }
.ce-tool.is-active{
  border-color: rgba(30,58,138,.35);
  background: rgba(30,58,138,.06);
  color: var(--primary, #1E3A8A);
}
.ce-sep{ width:1px; height:30px; background: rgba(0,0,0,.10); margin: 0 4px; }

/* === Component bar === */
.ce-components{
  padding: 10px 12px 12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  border-bottom: 1px solid var(--ce-border);
}
.ce-chip{
  border: 1px dashed rgba(30,58,138,.28);
  background: rgba(30,58,138,.05);
  color: var(--primary, #1E3A8A);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  cursor:pointer;
}
.ce-chip:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }

/* === Editor surface === */
.ce-editor{
  flex:1;
  min-height:0;
  padding: 16px 16px 22px;
  overflow:auto;
  background:#fff;
}
.ce-editor-inner{
  width: min(880px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}
.ce-editor-inner:focus{ outline: none; }

/* seçili component highlight */
.ce-editor [data-ce-comp]{
  position: relative;
  border-radius: 14px;
}
.ce-editor [data-ce-comp].is-selected{
  outline: 2px solid rgba(30,58,138,.35);
  background: rgba(30,58,138,.04);
}

/* === Right: HTML Preview + Component Inspector === */
.ce-panel{
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--ce-border);
  background: rgba(255,255,255,.78);
  display:flex;
  align-items: baseline;
  justify-content:space-between;
  gap:12px;
}
.ce-panel h4{
  margin:0;
  font-weight: 900;
  font-size: 14px;
}
.ce-panel small{ color: rgba(52,58,64,.75); }

.ce-preview{
  flex:1;
  min-height:0;
  overflow:auto;
  padding: 12px 14px 14px;
}
.ce-pre{
  margin:0;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.14);
  background: rgba(2,6,23,.9);
  font-family: var(--ce-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Inspector */
.ce-inspector{
  padding: 12px 14px 16px;
  border-top: 1px solid var(--ce-border);
  background: rgba(255,255,255,.85);
}
.ce-inspector .row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
  align-items:center;
  margin: 10px 0;
}
.ce-inspector label{
  font-size:12px;
  font-weight:800;
  color: rgba(52,58,64,.85);
}
.ce-inspector input,
.ce-inspector textarea,
.ce-inspector select{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  padding: 9px 10px;
  outline:none;
}
.ce-inspector textarea{ min-height: 90px; resize: vertical; }

/* === Blog tarafı component class’ları (görünüm) === */
/* Senin blog.css içindeki .blog-content tipografi ile uyumlu olacak şekilde post-* sınıfları */
.post-header{ margin: 0 0 18px; }
.post-kicker{
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--primary, #1E3A8A);
  margin: 0 0 8px;
  font-size: 12px;
}
.post-lead{ color: rgba(52,58,64,.85); font-size: 1.05rem; line-height: 1.8; }

.post-figure{ margin: 18px 0; }
.post-figure img{ width:100%; height:auto; border-radius: 16px; }
.post-figure figcaption{ margin-top: 8px; color: rgba(52,58,64,.75); font-size: .95rem; }

.post-cta{
  margin: 22px 0;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(30,58,138,.06);
  border: 1px solid rgba(30,58,138,.12);
}
.post-cta h3{ margin:0 0 8px; font-weight:900; }
.post-cta .btn{ margin-right: 8px; }

/* Tablo class’ı (sen zaten post-table kullanıyorsun) */
.post-table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
}
.post-table th, .post-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.post-table thead th{
  background: rgba(2,6,23,.03);
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 12px;
}
/* =========================
   EVD Component Editor - Additions
   ========================= */

/* Editor footer hint */
.ce-footer-hint{
  padding: 10px 16px 16px;
  color: rgba(52,58,64,.72);
  font-size: 12px;
}

/* Block container */
.ce-block{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 14px 14px;
  margin: 12px 0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.ce-block-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.ce-badge{
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(0,0,0,.08);
}
.ce-mini{
  font-size: 12px;
  color: rgba(52,58,64,.72);
}
.ce-help{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(52,58,64,.72);
}
.ce-block [contenteditable="true"]{
  outline: none;
}

/* Selected block highlight */
.ce-editor [data-ce-comp].is-selected{
  outline: 2px solid rgba(30,58,138,.35);
  background: rgba(30,58,138,.04);
}

/* Inspector layout additions */
.ce-inspector-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.ce-inspector-title{
  font-weight: 900;
}
.ce-inspector-mini{
  font-size: 12px;
  color: rgba(52,58,64,.72);
}
.ce-inspector-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 10px 0 12px;
}
.ce-tool-danger{
  border-color: rgba(220,38,38,.35) !important;
  color: rgba(220,38,38,1) !important;
  background: rgba(220,38,38,.06) !important;
}
.ce-inspector-fields .ce-row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
  align-items:center;
  margin: 10px 0;
}
.ce-pill{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(2,6,23,.03);
  font-weight: 900;
  font-size: 12px;
}
.ce-input{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  padding: 9px 10px;
  outline:none;
}
.ce-empty{
  padding: 10px 0;
  color: rgba(52,58,64,.72);
  font-size: 13px;
}
.ce-inline-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* image row */
.ce-img-row{
  display:flex;
  gap:10px;
  align-items:stretch;
}
.ce-img-thumb{
  width: 96px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(2,6,23,.03);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ce-img-thumb img{ width:100%; height:100%; object-fit:cover; }
.ce-img-empty{
  font-size: 12px;
  color: rgba(52,58,64,.65);
}

/* =========================
   BLOG COMPONENT STYLES (post-*)
   ========================= */

/* Rich text */
.post-rich p{ margin: 0 0 12px; line-height: 1.85; }
.post-rich a{ text-decoration: underline; }
.post-rich code{ font-family: var(--ce-mono); font-size: .95em; background: rgba(2,6,23,.06); padding: 2px 6px; border-radius: 10px; }

/* Quote */
.post-quote{
  margin: 18px 0;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(2,6,23,.03);
}
.post-quote p{ margin: 0 0 10px; font-size: 1.02rem; }
.post-quote footer{ color: rgba(52,58,64,.72); font-weight: 800; }

/* Highlight */
.post-highlight{
  margin: 18px 0;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(30,58,138,.14);
  background: rgba(30,58,138,.06);
}
.post-highlight h4{ margin: 0 0 8px; font-weight: 900; }
.post-highlight[data-variant="tip"]{
  border-color: rgba(16,185,129,.20);
  background: rgba(16,185,129,.07);
}
.post-highlight[data-variant="warning"]{
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.08);
}
.post-highlight[data-variant="success"]{
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.08);
}

/* HR */
.post-hr{
  margin: 22px 0;
  border: none;
  height: 1px;
  background: rgba(0,0,0,.12);
}

/* Code */
.post-code{
  margin: 18px 0;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(2,6,23,.04);
  padding: 14px;
  overflow:auto;
}
.post-code code{
  font-family: var(--ce-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  outline: none;
}

/* Lists */
.post-list{
  margin: 14px 0 18px;
  padding-left: 20px;
}
.post-list li{ margin: 8px 0; line-height: 1.8; }

/* Cards grid */
.post-cards{
  display:grid;
  gap: 14px;
  margin: 18px 0;
}
.post-cards[data-cols="1"]{ grid-template-columns: 1fr; }
.post-cards[data-cols="2"]{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-cards[data-cols="3"]{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px){
  .post-cards[data-cols="3"]{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .post-cards[data-cols="2"],
  .post-cards[data-cols="3"]{ grid-template-columns: 1fr; }
}

.post-card{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 14px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
.post-card-head{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom: 10px;
}
.post-card-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(30,58,138,.08);
  border: 1px solid rgba(30,58,138,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}
.post-card h4{ margin:0; font-weight: 900; }
.post-card-body p{ margin: 0 0 10px; line-height: 1.8; }
.post-card-actions{ margin-top: 8px; }

/* CTA variants */
.post-cta[data-variant="soft"]{
  background: rgba(2,6,23,.03);
  border-color: rgba(0,0,0,.10);
}
.post-cta[data-variant="dark"]{
  background: rgba(2,6,23,.88);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.post-cta[data-variant="dark"] p,
.post-cta[data-variant="dark"] h3{ color:#fff; }

/* Figure */
.post-figure-media{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(2,6,23,.03);
}

/* FAQ */
.post-faq{
  margin: 18px 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.post-faq-item{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  padding: 10px 12px;
}
.post-faq-item summary{
  cursor:pointer;
  font-weight: 900;
  list-style: none;
}
.post-faq-item summary::-webkit-details-marker{ display:none; }
.post-faq-a{ margin-top: 8px; color: rgba(52,58,64,.88); }
.post-faq-a p{ margin: 0 0 10px; line-height: 1.85; }

pre {
  background: #0b1220;
  color: #e6edf7;
  padding: 16px 18px;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
  margin: 18px 0;
}

pre > code{
  background: rgba(0,0,0,.06);
  padding: 2px 6px;
  border-radius: 8px;
}
blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  background: rgba(30,58,138,.06);
  border-radius: 14px;
  color: var(--gray-800);
}
 code{
  background: rgba(0,0,0,.06);
  padding: 2px 6px;
  border-radius: 8px;
}
/* =========================
   EVD Editor PATCH (Fullscreen + Hover Outline + Inspector)
   Append this to the END of components.css
   ========================= */

/* Fullscreen overlay */
.ce-overlay{
  padding: 0 !important;
}

/* Fullscreen modal */
.ce-modal{
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Head fixed feel */
.ce-head{
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Make right panel always visible but responsive */
.ce-body{
  height: calc(100vh - 58px);
  grid-template-columns: 1fr 420px;
}
@media (max-width: 1100px){
  .ce-body{ grid-template-columns: 1fr; }
  .ce-right{ display:block !important; border-top: 1px solid var(--ce-border); }
}

/* Canvas is true WYSIWYG */
.ce-editor-inner{
  min-height: calc(100vh - 240px);
}

/* Hover outline (no section/block requirement) */
#ceCanvas [data-ce-node]{
  position: relative;
  border-radius: 10px;
}
#ceCanvas [data-ce-node]:hover{
  outline: 2px dashed rgba(30,58,138,.30);
  outline-offset: 2px;
}

/* Selected node */
#ceCanvas .ce-selected{
  outline: 2px solid rgba(30,58,138,.40) !important;
  background: rgba(30,58,138,.04);
}

/* Inspector: nicer image preview */
.ce-ins-img{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ce-ins-img .thumb{
  width: 100%;
  height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(2,6,23,.03);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ce-ins-img .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Inline badge style (blog tarafında da işine yarar) */
.post-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(30,58,138,.18);
  background: rgba(30,58,138,.07);
  color: var(--primary, #1E3A8A);
}

/* Table helper (wrap not required) */
.post-table{
  width:100%;
}