.lpb-body { background: #f1f5f9; margin: 0; }

.gjs-block svg,
.gjs-block i,
.gjs-block .gjs-fonts,
.gjs-block [class*="gjs-f-"] {
    display: none !important;
}


.sp-container {
    width: 200px !important;
    transform: translateX(-100%);
}

.lpb-picker { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }
.lpb-picker-header { text-align: center; margin-top: 40px; margin-bottom: 40px; }
.lpb-picker-header h1 { font-size: 30px; font-weight: 900; color: #0f172a; margin: 0 0 10px; }
.lpb-picker-header p { color: #64748b; font-size: 16px; margin: 0; }

.lpb-toolbar-top { display: flex; justify-content: center; margin-bottom: 30px; }
.lpb-drafts-btn {
    background: #fff; border: 2px solid #15abe3; color: #334155;
    padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; height: 60px; color: #15abe3;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.lpb-drafts-btn:hover { border-color: #10b981; color: #10b981; }

.lpb-category-grid { max-width: 1200px; margin: 0 auto; text-align: center;}
.lpb-chip {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff;
    border: 2px solid #e2e8f0; border-radius: 35px; padding: 8px 20px; height: 60px; box-sizing: border-box;
    font-size: 14px; font-weight: 600; color: #334155; cursor: pointer; transition: all 0.2s ease; margin-bottom: 9px;
}
.lpb-chip:hover { border-color: #10b981; color: #10b981; }
.lpb-chip i { color: #15abe3; font-size: 14px; }

.lpb-modal-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.55);
    display: none; align-items: center; justify-content: center; z-index: 9000; padding: 20px;
}
.lpb-modal-overlay.active { display: flex; }
.lpb-modal {
    background: #fff; border-radius: 16px; max-width: 640px; width: 100%;
    max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
}
.lpb-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; border-bottom: 1px solid #e5e7eb; }
.lpb-modal-header h2 { font-size: 18px; margin: 0; }
.lpb-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #64748b; }
.lpb-modal-body { padding: 20px 26px; overflow-y: auto; }

.lpb-draft-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.lpb-draft-info { display: flex; flex-direction: column; gap: 3px; }
.lpb-draft-info strong { font-size: 15px; color: #0f172a; }
.lpb-draft-info span { font-size: 12px; color: #94a3b8; }
.lpb-draft-actions { display: flex; gap: 8px; }
.lpb-draft-actions button {
    border: none; background: #f1f5f9; color: #334155; padding: 8px 14px;
    border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.lpb-draft-actions button.lpb-danger { background: #fee2e2; color: #b91c1c; }
.lpb-empty-state { text-align: center; color: #94a3b8; padding: 40px 0; }

/* ---------- Editor shell ---------- */
.lpb-editor-shell { display: none; flex-direction: column; height: 100vh; }
.lpb-editor-shell.active { display: flex; }

.lpb-editor-toolbar {
    display: flex; align-items: center; gap: 14px; padding: 10px 18px;
    background: #0f172a; color: #fff; flex-shrink: 0; flex-wrap: wrap;
}
.lpb-editor-toolbar .lpb-back-btn { background: none; border: none; color: #cbd5e1; font-size: 18px; cursor: pointer; }
.lpb-title-input {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
    padding: 8px 12px; border-radius: 8px; font-size: 14px; width: 220px;
}
.lpb-title-input::placeholder { color: rgba(255,255,255,0.5); }
.lpb-toolbar-spacer { flex: 1; }
.lpb-toolbar-btn {
    border: none; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.lpb-toolbar-btn.lpb-brand { background: rgba(255,255,255,0.12); color: #fff; }
.lpb-toolbar-btn.lpb-lang-variant { background: rgba(255,255,255,0.12); color: #fff; }
.lpb-toolbar-btn.lpb-save { background: #334155; color: #fff; }
.lpb-toolbar-btn.lpb-export { background: linear-gradient(135deg, #15abe3, #10b981); color: #fff; }
.lpb-toolbar-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lpb-save-status { font-size: 12px; color: #94a3b8; min-width: 90px; }
.lpb-page-tabs { display: flex; gap: 6px; padding: 8px 16px; background: #1e293b; border-top: 1px solid rgba(255,255,255,0.08); }
.lpb-page-tab {
    border: none; background: transparent; color: rgba(255,255,255,0.6);
    padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.lpb-page-tab:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lpb-page-tab.active { background: #15abe3; color: #fff; }

.lpb-editor-body { flex: 1; min-height: 0; position: relative; }
#lpb-gjs { height: 100%; }

.lpb-canvas-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(248, 250, 252, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.lpb-canvas-overlay.active { display: flex; }
.lpb-canvas-overlay span { font-size: 14px; font-weight: 600; color: #475569; }
.lpb-canvas-overlay-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e2e8f0;
    border-top-color: #15abe3;
    border-radius: 50%;
    animation: lpbSpin 0.8s linear infinite;
}
@keyframes lpbSpin { to { transform: rotate(360deg); } }

/* ---------- Brand settings modal ---------- */
.lpb-brand-form { display: flex; flex-direction: column; gap: 16px; }
.lpb-brand-row { display: flex; gap: 14px; flex-wrap: wrap; }
.lpb-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.lpb-field label { font-size: 13px; font-weight: 600; color: #334155; }
.lpb-field input[type="text"], .lpb-field input[type="email"], .lpb-field input[type="tel"],
.lpb-field input[type="password"], .lpb-field input[type="number"], .lpb-field select, .lpb-field textarea {
    padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical;
}
.lpb-field-divider { border: none; border-top: 1px solid #e5e7eb; margin: 6px 0; }
.lpb-field-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; }
.lpb-field-checkbox input { width: 16px; height: 16px; cursor: pointer; }
.lpb-field-hint { font-size: 12px; color: #94a3b8; margin: 4px 0 0; }
.lpb-field input[type="color"] { width: 100%; height: 42px; border: 2px solid #e2e8f0; border-radius: 8px; padding: 2px; cursor: pointer; }
.lpb-logo-preview { display: flex; align-items: center; gap: 12px; }
.lpb-logo-preview img { width: 56px; height: 56px; object-fit: contain; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.lpb-btn-apply { background: #15abe3; color: #fff; border: none; padding: 12px; border-radius: 10px; font-weight: 700; cursor: pointer; margin-top: 6px; }
.lpb-btn-apply:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- AI ile görsel oluştur modal ---------- */
.lpb-ai-image-preview { margin-top: 16px; }
.lpb-ai-image-preview img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; border: 2px solid #e2e8f0; background: #f8fafc; display: block; }


@media (max-width: 768px) {
    .lpb-editor-toolbar { gap: 8px; }
    .lpb-title-input { width: 130px; }
    .lpb-toolbar-btn span { display: none; }
    .lpb-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) and (max-width: 1000px) {
    .lpb-category-grid { grid-template-columns: repeat(3, 1fr); }
}
