/* Blocks Library Frontend CSS */

.blockeditor-frontend-container {
    width: 100%;
}

.blockeditor-frontend-block {
    margin-bottom: 30px;
    position: relative;
}

/* Edit Controls */
.blockeditor-frontend-wrapper {
    position: relative;
    border: 1px dashed transparent;
    transition: border-color 0.2s;
}

.blockeditor-frontend-wrapper:hover {
    border-color: #3498db;
}

.blockeditor-frontend-controls {
    position: absolute;
    top: -25px;
    right: 0;
    background: #3498db;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px 3px 0 0;
    font-size: 12px;
    display: none;
    z-index: 100;
}

.blockeditor-frontend-wrapper:hover .blockeditor-frontend-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blockeditor-frontend-edit-btn {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.blockeditor-frontend-label {
    margin-left: auto;
}

/* Drag Handle */
.blockeditor-frontend-drag-handle {
    cursor: move;
    cursor: grab;
    padding: 0 8px;
    opacity: 0.8;
    user-select: none;
    display: flex;
    align-items: center;
}

.blockeditor-frontend-drag-handle:hover {
    opacity: 1;
}

.blockeditor-frontend-drag-handle:active {
    cursor: grabbing;
}

.blockeditor-frontend-drag-handle svg {
    display: block;
}

/* Visibility Button */
.blockeditor-frontend-visibility-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.blockeditor-frontend-visibility-btn:hover {
    opacity: 1;
}

.blockeditor-frontend-visibility-btn svg {
    display: block;
}

/* Edit Button */
.blockeditor-frontend-edit-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blockeditor-frontend-edit-btn svg {
    display: block;
}

/* Hidden Block State */
.blockeditor-frontend-wrapper.blockeditor-frontend-hidden {
    opacity: 0.4;
    border: 2px dashed #e74c3c !important;
}

.blockeditor-frontend-wrapper.blockeditor-frontend-hidden .blockeditor-frontend-controls {
    background: #e74c3c;
}

.blockeditor-frontend-wrapper.blockeditor-frontend-hidden::after {
    content: 'HIDDEN';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    pointer-events: none;
}

/* Drag & Drop States */
.blockeditor-frontend-wrapper.blockeditor-frontend-dragging {
    opacity: 0.4;
    border: 2px dashed #3498db !important;
}

.blockeditor-frontend-wrapper.blockeditor-frontend-drag-over {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.05);
}

/* Placeholder */
.blockeditor-frontend-placeholder {
    background: rgba(52, 152, 219, 0.1);
    border: 2px dashed #3498db;
    border-radius: 4px;
    margin: 10px 0;
    transition: height 0.2s ease;
}

/* Text Block */
.blockeditor-frontend-block-text {
    padding: 20px;
}

.blockeditor-frontend-block-align-center { text-align: center; }
.blockeditor-frontend-block-align-right { text-align: right; }

/* Image Block */
.blockeditor-frontend-block-image figure {
    margin: 0;
}

.blockeditor-frontend-block-image img {
    max-width: 100%;
    height: auto;
}

.blockeditor-frontend-block-width-small { max-width: 400px; margin: 0 auto; }
.blockeditor-frontend-block-width-medium { max-width: 800px; margin: 0 auto; }
.blockeditor-frontend-block-width-large { max-width: 1000px; margin: 0 auto; }

/* Video Block */
.blockeditor-frontend-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.blockeditor-frontend-video-container iframe,
.blockeditor-frontend-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Accordion Block */
.blockeditor-frontend-accordion-item {
    border: 1px solid #ddd;
    margin-bottom: -1px;
}

.blockeditor-frontend-accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.blockeditor-frontend-accordion-content {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
}

/* Gallery Block */
.blockeditor-frontend-gallery-grid {
    display: grid;
    gap: 15px;
}

.blockeditor-frontend-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform 0.3s;
}

.blockeditor-frontend-gallery-item:hover img {
    transform: scale(1.05);
}

/* Button Block */
.blockeditor-frontend-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.blockeditor-frontend-btn-primary { background: #3498db; color: #fff; }
.blockeditor-frontend-btn-secondary { background: #95a5a6; color: #fff; }
.blockeditor-frontend-btn-outline { border: 2px solid #3498db; color: #3498db; }

/* Columns Block */
.blockeditor-frontend-columns-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blockeditor-frontend-column {
    flex: 1;
    min-width: 250px;
}

.blockeditor-frontend-layout-1-2 .blockeditor-frontend-col-1 { flex: 1; }
.blockeditor-frontend-layout-1-2 .blockeditor-frontend-col-2 { flex: 2; }

.blockeditor-frontend-layout-2-1 .blockeditor-frontend-col-1 { flex: 2; }
.blockeditor-frontend-layout-2-1 .blockeditor-frontend-col-2 { flex: 1; }

/* Tabs Block */
.blockeditor-frontend-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.blockeditor-frontend-tab-nav-item {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
}

.blockeditor-frontend-tab-nav-item.active {
    background: #fff;
    border-color: #ddd;
    border-radius: 4px 4px 0 0;
}

.blockeditor-frontend-tab-pane {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

.blockeditor-frontend-tab-pane.active {
    display: block;
}

/* Hero Block */
.blockeditor-frontend-block-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.blockeditor-frontend-block-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.blockeditor-frontend-hero-content {
    position: relative;
    z-index: 1;
}

/* Features Block */
.blockeditor-frontend-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.blockeditor-frontend-feature-item {
    text-align: center;
    padding: 20px;
}

.blockeditor-frontend-feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* =====================================================
   Frontend Edit Dialog
   ===================================================== */

.blockeditor-frontend-edit-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.blockeditor-frontend-edit-dialog.open {
    display: block;
}

.blockeditor-frontend-edit-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: blockeditor-frontend-fadeIn 0.2s ease;
}

.blockeditor-frontend-edit-dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: blockeditor-frontend-slideIn 0.3s ease;
}

@keyframes blockeditor-frontend-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blockeditor-frontend-slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.blockeditor-frontend-edit-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.blockeditor-frontend-edit-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.blockeditor-frontend-edit-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.blockeditor-frontend-edit-dialog-close:hover {
    color: #333;
}

.blockeditor-frontend-edit-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: calc(90vh - 140px);
}

.blockeditor-frontend-edit-dialog-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.blockeditor-frontend-edit-dialog-error {
    text-align: center;
    padding: 40px;
    color: #c00;
    font-size: 14px;
}

.blockeditor-frontend-edit-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.blockeditor-frontend-edit-dialog-cancel,
.blockeditor-frontend-edit-dialog-save {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.blockeditor-frontend-edit-dialog-cancel {
    background: #fff;
    border: 1px solid #ccc;
    color: #666;
}

.blockeditor-frontend-edit-dialog-cancel:hover {
    background: #f5f5f5;
    border-color: #999;
}

.blockeditor-frontend-edit-dialog-save {
    background: #3498db;
    border: 1px solid #2980b9;
    color: #fff;
}

.blockeditor-frontend-edit-dialog-save:hover {
    background: #2980b9;
}

.blockeditor-frontend-edit-dialog-save:disabled {
    background: #95a5a6;
    border-color: #7f8c8d;
    cursor: not-allowed;
}

/* Dialog içindeki blockeditor-item stilleri */
.blockeditor-frontend-edit-dialog-body .blockeditor-item {
    border: none;
    box-shadow: none;
    margin: 0;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-item-header {
    display: none;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-item-body {
    display: block !important;
    padding: 0;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-item.open .blockeditor-item-body {
    display: block;
}

/* Form Elements inside dialog */
.blockeditor-frontend-edit-dialog-body .blockeditor-form-group {
    margin-bottom: 18px;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-form-input,
.blockeditor-frontend-edit-dialog-body .blockeditor-form-textarea,
.blockeditor-frontend-edit-dialog-body .blockeditor-form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-form-input:focus,
.blockeditor-frontend-edit-dialog-body .blockeditor-form-textarea:focus,
.blockeditor-frontend-edit-dialog-body .blockeditor-form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.blockeditor-frontend-edit-dialog-body .blockeditor-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Field Binding Dropdown */
.blockeditor-frontend-edit-dialog-body .blockeditor-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-field-header label {
    margin-bottom: 0;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-field-binding {
    display: flex;
    align-items: center;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-binding-select {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    min-width: 110px;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-binding-select:hover {
    border-color: #3498db;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-binding-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Global + Name Row */
.blockeditor-frontend-edit-dialog-body .blockeditor-global-name-row {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    align-items: flex-start;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-global-field {
    flex: 0 0 auto;
    min-width: 140px;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-name-field {
    flex: 1;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-name-field label .blockeditor-optional {
    font-weight: normal;
    color: #999;
    font-size: 11px;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-name-field .blockeditor-form-input {
    background: #fafafa;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-name-field .blockeditor-form-input:focus {
    background: #fff;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-name-field .blockeditor-form-input:required {
    border-color: #3498db;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-global-checkbox:checked + span {
    color: #27ae60;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-field-note {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 11px;
    font-style: italic;
}

/* Notification */
.blockeditor-frontend-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.blockeditor-frontend-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.blockeditor-frontend-notification-success {
    background: #27ae60;
    color: #fff;
}

.blockeditor-frontend-notification-error {
    background: #e74c3c;
    color: #fff;
}

/* =====================================================
   Delete Button in Controls
   ===================================================== */

.blockeditor-frontend-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.blockeditor-frontend-delete-btn:hover {
    opacity: 1;
}

.blockeditor-frontend-delete-btn svg {
    display: block;
}

/* Duplicate Button */
.blockeditor-frontend-duplicate-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.blockeditor-frontend-duplicate-btn:hover {
    opacity: 1;
}

.blockeditor-frontend-duplicate-btn svg {
    display: block;
}

/* Inline Edit Button */
.blockeditor-frontend-inline-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.9;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.blockeditor-frontend-inline-edit-btn:hover {
    opacity: 1;
}

.blockeditor-frontend-inline-edit-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.blockeditor-frontend-inline-edit-btn svg {
    display: block;
}

/* Inline Editing State */
.blockeditor-frontend-wrapper.blockeditor-frontend-inline-editing {
    border: 2px solid #f39c12 !important;
}

.blockeditor-frontend-wrapper.blockeditor-frontend-inline-editing .blockeditor-frontend-controls {
    background: #f39c12;
}

.blockeditor-frontend-editable {
    outline: 2px dashed rgba(243, 156, 18, 0.5);
    outline-offset: 2px;
    min-height: 1em;
    cursor: text;
    transition: outline-color 0.2s;
}

.blockeditor-frontend-editable:hover {
    outline-color: rgba(243, 156, 18, 0.8);
}

.blockeditor-frontend-editable:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
    background: rgba(243, 156, 18, 0.05);
}

/* =====================================================
   Delete Confirmation Dialog
   ===================================================== */

.blockeditor-frontend-delete-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.blockeditor-frontend-delete-dialog.open {
    display: block;
}

.blockeditor-frontend-delete-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: blockeditor-frontend-fadeIn 0.2s ease;
}

.blockeditor-frontend-delete-dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: blockeditor-frontend-slideIn 0.3s ease;
}

.blockeditor-frontend-delete-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fef2f2;
    border-radius: 8px 8px 0 0;
}

.blockeditor-frontend-delete-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
}

.blockeditor-frontend-delete-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.blockeditor-frontend-delete-dialog-close:hover {
    color: #333;
}

.blockeditor-frontend-delete-dialog-body {
    padding: 20px;
    text-align: center;
}

.blockeditor-frontend-delete-dialog-message {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.blockeditor-frontend-delete-dialog-warning {
    margin: 0;
    font-size: 13px;
    color: #dc2626;
    font-style: italic;
}

.blockeditor-frontend-delete-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.blockeditor-frontend-delete-dialog-cancel,
.blockeditor-frontend-delete-dialog-confirm {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.blockeditor-frontend-delete-dialog-cancel {
    background: #fff;
    border: 1px solid #ccc;
    color: #666;
}

.blockeditor-frontend-delete-dialog-cancel:hover {
    background: #f5f5f5;
    border-color: #999;
}

.blockeditor-frontend-delete-dialog-confirm {
    background: #dc2626;
    border: 1px solid #b91c1c;
    color: #fff;
}

.blockeditor-frontend-delete-dialog-confirm:hover {
    background: #b91c1c;
}

.blockeditor-frontend-delete-dialog-confirm:disabled {
    background: #95a5a6;
    border-color: #7f8c8d;
    cursor: not-allowed;
}

/* =====================================================
   Insertion Zones for Adding New Blocks
   ===================================================== */

.blockeditor-frontend-insertion-zone {
    position: relative;
    height: 24px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.blockeditor-frontend-insertion-zone:hover {
    opacity: 1;
}

.blockeditor-frontend-insertion-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #3498db;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.blockeditor-frontend-insertion-zone:hover .blockeditor-frontend-insertion-line {
    opacity: 1;
}

.blockeditor-frontend-insertion-btn {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid #fff;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

.blockeditor-frontend-insertion-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.blockeditor-frontend-insertion-btn svg {
    display: block;
}

/* Empty State */
.blockeditor-frontend-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.blockeditor-frontend-empty-state p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666;
}

.blockeditor-frontend-add-first-btn {
    padding: 12px 24px;
    background: #3498db;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blockeditor-frontend-add-first-btn:hover {
    background: #2980b9;
}

/* =====================================================
   Block Type Selection Dialog
   ===================================================== */

.blockeditor-frontend-type-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.blockeditor-frontend-type-dialog.open {
    display: block;
}

.blockeditor-frontend-type-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: blockeditor-frontend-fadeIn 0.2s ease;
}

.blockeditor-frontend-type-dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: blockeditor-frontend-slideIn 0.3s ease;
}

.blockeditor-frontend-type-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.blockeditor-frontend-type-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.blockeditor-frontend-type-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.blockeditor-frontend-type-dialog-close:hover {
    color: #333;
}

.blockeditor-frontend-type-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.blockeditor-frontend-type-dialog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.blockeditor-frontend-type-dialog-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.blockeditor-frontend-type-dialog-item:hover {
    background: #e8f4fc;
    border-color: #3498db;
}

.blockeditor-frontend-type-dialog-item-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.blockeditor-frontend-type-dialog-item-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

/* Section titles */
.blockeditor-frontend-type-dialog-section {
    margin-bottom: 20px;
}

.blockeditor-frontend-type-dialog-section:last-child {
    margin-bottom: 0;
}

.blockeditor-frontend-type-dialog-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blockeditor-frontend-type-dialog-section-title svg {
    color: #888;
}

/* Global block items */
.blockeditor-frontend-type-dialog-item-global {
    border: 2px solid #27ae60;
    background: #f0fff4;
}

.blockeditor-frontend-type-dialog-item-global:hover {
    background: #dcfce7;
    border-color: #16a34a;
}

.blockeditor-frontend-type-dialog-item-type {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .blockeditor-frontend-type-dialog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blockeditor-frontend-type-dialog-item {
        padding: 12px 8px;
    }

    .blockeditor-frontend-type-dialog-item-icon {
        font-size: 24px;
    }

    .blockeditor-frontend-type-dialog-item-label {
        font-size: 11px;
    }
}
