/* Blocks Library Frontend CSS */
/* Note: background and color properties are removed from frontend blocks
   to allow Tailwind CSS customization via "Custom Classes" field */

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

/* Container Fluid - centered with max-width */
.blockeditor-frontend-container-fluid {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Block wrapper - handles container width */
.blockeditor-frontend-block-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.blockeditor-frontend-block {
    margin-bottom: 30px;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Alignment classes */
.blockeditor-align-left { text-align: left; }
.blockeditor-align-center { text-align: center; }
.blockeditor-align-right { text-align: right; }

/* Button styles */
.blockeditor-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blockeditor-btn-primary {
    background-color: #2563eb;
    color: #fff;
}
.blockeditor-btn-primary:hover {
    background-color: #1d4ed8;
}

.blockeditor-btn-secondary {
    background-color: #4b5563;
    color: #fff;
}
.blockeditor-btn-secondary:hover {
    background-color: #374151;
}

.blockeditor-btn-outline {
    background-color: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}
.blockeditor-btn-outline:hover {
    background-color: #2563eb;
    color: #fff;
}

.blockeditor-btn-link {
    background-color: transparent;
    color: #2563eb;
    padding: 0;
}
.blockeditor-btn-link:hover {
    text-decoration: underline;
}

/* Divider styles */
.blockeditor-divider-small { padding: 1rem 0; }
.blockeditor-divider-medium { padding: 2rem 0; }
.blockeditor-divider-large { padding: 3rem 0; }

.blockeditor-divider-line {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 0;
}
.blockeditor-divider-solid { border-top-style: solid; }
.blockeditor-divider-dashed { border-top-style: dashed; }
.blockeditor-divider-dotted { border-top-style: dotted; }
.blockeditor-divider-invisible { border: none; }

/* Video styles */
.blockeditor-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
}

.blockeditor-video-iframe,
.blockeditor-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   Edit Controls (Admin UI - keep colors)
   ===================================================== */
.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;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.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;
}

/* 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;
}

/* Placeholder */
.blockeditor-frontend-placeholder {
    border: 2px dashed #3498db;
    border-radius: 4px;
    margin: 10px 0;
    transition: height 0.2s ease;
}

/* =====================================================
   Text Block
   ===================================================== */
.blockeditor-frontend-block-text {
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
}

/* Text block heading */
.blockeditor-text-heading {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    width: 100%;
}

/* Text block content */
.blockeditor-text-content {
    font-size: 1.125rem;
    line-height: 1.75;
    width: 100%;
}

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

/* =====================================================
   Image Block
   ===================================================== */
.blockeditor-frontend-block-image {
    padding: 1rem 0;
}

.blockeditor-frontend-image-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.blockeditor-frontend-image-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.blockeditor-frontend-block-image:hover .blockeditor-frontend-image-img {
    transform: scale(1.02);
}

.blockeditor-frontend-image-caption {
    margin-top: 12px;
    padding: 0 4px;
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* Image Width Variants */
.blockeditor-image-full .blockeditor-frontend-image-figure {
    width: 100%;
}

.blockeditor-image-large .blockeditor-frontend-image-figure {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.blockeditor-image-medium .blockeditor-frontend-image-figure {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blockeditor-image-small .blockeditor-frontend-image-figure {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Image with shadow option */
.blockeditor-frontend-image-figure {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blockeditor-image-large .blockeditor-frontend-image-figure,
    .blockeditor-image-medium .blockeditor-frontend-image-figure {
        max-width: 100%;
    }

    .blockeditor-image-small .blockeditor-frontend-image-figure {
        max-width: 280px;
    }
}

/* Legacy width classes for backwards compatibility */
.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; }

/* =====================================================
   Quote Block
   ===================================================== */
.blockeditor-frontend-block-quote {
    padding: 2rem 0;
}

.blockeditor-frontend-quote {
    position: relative;
    margin: 0;
    padding: 0;
}

.blockeditor-frontend-quote-icon {
    display: block;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.blockeditor-frontend-quote-text {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.7;
    font-style: italic;
}

.blockeditor-frontend-quote-footer {
    margin-top: 1rem;
}

.blockeditor-frontend-quote-cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blockeditor-frontend-quote-author {
    font-weight: 600;
    font-size: 1rem;
}

.blockeditor-frontend-quote-title {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Quote Style: Simple */
.blockeditor-quote-simple .blockeditor-frontend-quote {
    border-left-width: 4px;
    border-left-style: solid;
    padding-left: 1.5rem;
}

.blockeditor-quote-simple .blockeditor-frontend-quote-icon {
    display: none;
}

/* Quote Style: Modern */
.blockeditor-quote-modern .blockeditor-frontend-quote {
    border-radius: 12px;
    padding: 2rem;
    border-left-width: 5px;
    border-left-style: solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blockeditor-quote-modern .blockeditor-frontend-quote-icon {
    opacity: 0.4;
}

.blockeditor-quote-modern .blockeditor-frontend-quote-text {
    font-size: 1.35rem;
}

/* Quote Style: Large */
.blockeditor-quote-large .blockeditor-frontend-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blockeditor-quote-large .blockeditor-frontend-quote-icon {
    font-size: 4rem;
    opacity: 0.25;
}

.blockeditor-quote-large .blockeditor-frontend-quote-text {
    font-size: 1.75rem;
    font-weight: 300;
}

.blockeditor-quote-large .blockeditor-frontend-quote-cite {
    align-items: center;
}

/* Quote Style: Minimal */
.blockeditor-quote-minimal .blockeditor-frontend-quote {
    padding: 1rem 0;
}

.blockeditor-quote-minimal .blockeditor-frontend-quote-icon {
    display: none;
}

.blockeditor-quote-minimal .blockeditor-frontend-quote-text {
    font-size: 1.125rem;
    border-left-width: 2px;
    border-left-style: solid;
    padding-left: 1rem;
}

.blockeditor-quote-minimal .blockeditor-frontend-quote-author {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blockeditor-frontend-quote-text {
        font-size: 1.1rem;
    }

    .blockeditor-quote-large .blockeditor-frontend-quote-text {
        font-size: 1.35rem;
    }

    .blockeditor-quote-modern .blockeditor-frontend-quote {
        padding: 1.5rem;
    }

    .blockeditor-frontend-quote-icon {
        font-size: 2.5rem;
    }
}

/* =====================================================
   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-block-accordion {
    border-radius: 8px;
    overflow: hidden;
}

.blockeditor-frontend-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blockeditor-frontend-accordion-item {
    border-width: 1px;
    border-style: solid;
    border-radius: 0;
    overflow: hidden;
}

.blockeditor-frontend-accordion-item:first-child {
    border-radius: 8px 8px 0 0;
}

.blockeditor-frontend-accordion-item:last-child {
    border-radius: 0 0 8px 8px;
}

.blockeditor-frontend-accordion-item:only-child {
    border-radius: 8px;
}

.blockeditor-frontend-accordion-item + .blockeditor-frontend-accordion-item {
    border-top: none;
}

.blockeditor-frontend-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    transition: all 0.2s ease;
}

.blockeditor-frontend-accordion-header[aria-expanded="true"] {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.blockeditor-frontend-accordion-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.blockeditor-frontend-accordion-title {
    flex: 1;
}

.blockeditor-frontend-accordion-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.blockeditor-frontend-accordion-header[aria-expanded="true"] .blockeditor-frontend-accordion-arrow {
    transform: rotate(180deg);
}

.blockeditor-frontend-accordion-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.blockeditor-frontend-accordion-content[hidden] {
    display: none;
}

.blockeditor-frontend-accordion-content-inner {
    padding: 20px;
    line-height: 1.7;
    font-size: 14px;
}

/* Allow Multiple Open variant (visual enhancement) */
.blockeditor-frontend-block-accordion[data-allow-multiple="true"] .blockeditor-frontend-accordion-item {
    margin-bottom: 8px;
    border-radius: 8px;
}

.blockeditor-frontend-block-accordion[data-allow-multiple="true"] .blockeditor-frontend-accordion-item:first-child,
.blockeditor-frontend-block-accordion[data-allow-multiple="true"] .blockeditor-frontend-accordion-item:last-child {
    border-radius: 8px;
}

/* =====================================================
   Admin Accordion Items Styling (keep colors for admin UI)
   ===================================================== */
.blockeditor-accordion-items {
    margin-bottom: 12px;
}

.blockeditor-accordion-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.blockeditor-accordion-item-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    gap: 10px;
}

.blockeditor-accordion-drag-handle {
    cursor: move;
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

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

.blockeditor-accordion-label {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blockeditor-accordion-icon-preview {
    font-size: 16px;
}

.blockeditor-accordion-item-actions {
    display: flex;
    gap: 6px;
}

.blockeditor-accordion-edit {
    padding: 4px 12px;
    background: #3498db;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.blockeditor-accordion-edit:hover {
    background: #2980b9;
}

.blockeditor-accordion-remove {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.blockeditor-accordion-remove:hover {
    background: #e74c3c;
    color: #fff;
}

.blockeditor-accordion-add {
    padding: 8px 16px;
    background: #27ae60;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.blockeditor-accordion-add:hover {
    background: #219a52;
}

/* =====================================================
   Gallery Block
   ===================================================== */
.blockeditor-frontend-block-gallery {
    padding: 1rem 0;
}

.blockeditor-frontend-gallery-grid {
    --gallery-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns), 1fr);
    gap: 16px;
}

/* Responsive gallery columns */
@media (max-width: 768px) {
    .blockeditor-frontend-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .blockeditor-frontend-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.blockeditor-frontend-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blockeditor-frontend-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

.blockeditor-frontend-gallery-overlay {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px;
}

.blockeditor-frontend-gallery-icon {
    font-size: 1rem;
    opacity: 0.9;
}

/* Lightbox styles */
.blockeditor-frontend-gallery-item[data-lightbox] {
    cursor: zoom-in;
}

/* =====================================================
   Gallery Admin Items (keep colors for admin UI)
   ===================================================== */
.blockeditor-gallery-items {
    margin-bottom: 10px;
}

.blockeditor-gallery-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.blockeditor-gallery-item-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f9f9f9;
    gap: 10px;
}

.blockeditor-gallery-drag-handle {
    cursor: move;
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    padding: 2px;
}

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

.blockeditor-gallery-preview {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blockeditor-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blockeditor-gallery-placeholder {
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blockeditor-gallery-label {
    flex: 1;
    font-weight: 500;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blockeditor-gallery-icon-preview {
    font-size: 14px;
}

.blockeditor-gallery-item-actions {
    display: flex;
    gap: 6px;
}

.blockeditor-gallery-edit {
    padding: 4px 12px;
    background: #3498db;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.blockeditor-gallery-edit:hover {
    background: #2980b9;
}

.blockeditor-gallery-remove {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.blockeditor-gallery-remove:hover {
    background: #e74c3c;
    color: #fff;
}

.blockeditor-gallery-add {
    padding: 8px 16px;
    background: #27ae60;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.blockeditor-gallery-add:hover {
    background: #219a52;
}

/* Gallery Dialog URL Preview */
.blockeditor-gallery-url-preview-fe {
    margin-top: 8px;
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    overflow: hidden;
}

.blockeditor-gallery-url-preview-fe img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.blockeditor-gallery-url-preview-fe .error {
    color: #e74c3c;
    font-size: 12px;
}

/* Gallery Icon Buttons */
.blockeditor-gallery-icon-btn-fe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.blockeditor-gallery-icon-btn-fe:hover {
    background: #e0e0e0;
    border-color: #3498db;
    transform: scale(1.1);
}

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

/* Button variants - no colors, use Tailwind */
.blockeditor-frontend-btn-outline {
    border-width: 2px;
    border-style: solid;
}

/* =====================================================
   Columns Block
   ===================================================== */
.blockeditor-frontend-block-columns .blockeditor-columns-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blockeditor-frontend-block-columns .blockeditor-column {
    min-width: 280px;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
    .blockeditor-frontend-block-columns .blockeditor-columns-grid {
        flex-direction: column;
    }

    .blockeditor-frontend-block-columns .blockeditor-column {
        flex: 1 1 100% !important;
        min-width: 100%;
    }
}

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

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

.blockeditor-frontend-tab-nav-item.active {
    border-radius: 4px 4px 0 0;
}

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

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

/* Tabs Icon */
.blockeditor-frontend-tab-icon {
    margin-right: 6px;
}

/* Vertical Tabs Layout */
.blockeditor-frontend-tabs-vertical .blockeditor-frontend-tabs-wrapper {
    display: flex;
    gap: 0;
}

.blockeditor-frontend-tabs-vertical .blockeditor-frontend-tabs-nav-vertical {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 180px;
    border-bottom: none;
    border-right-width: 1px;
    border-right-style: solid;
}

.blockeditor-frontend-tabs-vertical .blockeditor-frontend-tab-btn-vertical {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-align: left;
    border: none;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-right-width: 3px;
    border-right-style: solid;
    border-right-color: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blockeditor-frontend-tabs-vertical .blockeditor-frontend-tab-btn-vertical.active {
    border-right-color: currentColor;
}

.blockeditor-frontend-tabs-vertical .blockeditor-frontend-tabs-panels-vertical {
    flex: 1;
    min-width: 0;
}

.blockeditor-frontend-tabs-vertical .blockeditor-frontend-tab-panel {
    padding: 16px 24px;
}

/* Horizontal Tabs (default) - clean styling */
.blockeditor-frontend-tabs-horizontal .blockeditor-frontend-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.blockeditor-frontend-tabs-horizontal .blockeditor-frontend-tab-btn {
    position: relative;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blockeditor-frontend-tabs-horizontal .blockeditor-frontend-tab-btn.active::after,
.blockeditor-frontend-tabs-horizontal .blockeditor-frontend-tab-btn[aria-selected="true"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
}

.blockeditor-frontend-tabs-horizontal .blockeditor-frontend-tab-panel {
    padding: 20px 0;
}

/* Responsive: Stack vertical tabs on mobile */
@media (max-width: 640px) {
    .blockeditor-frontend-tabs-vertical .blockeditor-frontend-tabs-wrapper {
        flex-direction: column;
    }

    .blockeditor-frontend-tabs-vertical .blockeditor-frontend-tabs-nav-vertical {
        flex-direction: row;
        overflow-x: auto;
        min-width: 100%;
        border-right: none;
        border-bottom-width: 1px;
        border-bottom-style: solid;
    }

    .blockeditor-frontend-tabs-vertical .blockeditor-frontend-tab-btn-vertical {
        border-right: none;
        border-bottom-width: 3px;
        border-bottom-style: solid;
        border-bottom-color: transparent;
        white-space: nowrap;
    }

    .blockeditor-frontend-tabs-vertical .blockeditor-frontend-tab-btn-vertical.active {
        border-bottom-color: currentColor;
        border-right-color: transparent;
    }
}

/* =====================================================
   Tabs Dialog (Admin UI - keep colors)
   ===================================================== */
.blockeditor-tabs-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.blockeditor-tabs-dialog.open {
    display: flex;
}

.blockeditor-tabs-dialog-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.blockeditor-tabs-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.blockeditor-tabs-dialog-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.blockeditor-tabs-dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

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

.blockeditor-tabs-dialog-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 130px);
}

.blockeditor-tabs-dialog-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
}

.blockeditor-tabs-dialog-body input,
.blockeditor-tabs-dialog-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

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

.blockeditor-tabs-dialog-body textarea {
    min-height: 120px;
    resize: vertical;
}

.blockeditor-tabs-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
}

.blockeditor-tabs-dialog-cancel,
.blockeditor-tabs-dialog-save {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ccc;
}

.blockeditor-tabs-dialog-cancel {
    background: #fff;
    color: #666;
}

.blockeditor-tabs-dialog-cancel:hover {
    background: #f5f5f5;
}

.blockeditor-tabs-dialog-save {
    background: #3498db;
    border-color: #2980b9;
    color: #fff;
}

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

/* Tabs Items (Admin UI - keep colors) */
.blockeditor-tabs-items {
    margin-bottom: 10px;
}

.blockeditor-tabs-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.blockeditor-tabs-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blockeditor-tabs-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.blockeditor-tabs-item-actions {
    display: flex;
    gap: 8px;
}

.blockeditor-tabs-edit {
    padding: 4px 10px;
    background: #3498db;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.blockeditor-tabs-edit:hover {
    background: #2980b9;
}

.blockeditor-tabs-add {
    padding: 6px 12px;
    background: #5cb85c;
    border: 1px solid #4cae4c;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.blockeditor-tabs-add:hover {
    background: #449d44;
}

.blockeditor-tabs-remove {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #c9302c;
    border-radius: 3px;
    color: #c9302c;
    font-size: 12px;
    cursor: pointer;
}

.blockeditor-tabs-remove:hover {
    background: #c9302c;
    color: #fff;
}

/* =====================================================
   Hero Block
   ===================================================== */
.blockeditor-frontend-block-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Height variants */
.blockeditor-hero-small {
    min-height: 50vh;
}

.blockeditor-hero-medium {
    min-height: 70vh;
}

.blockeditor-hero-large {
    min-height: 85vh;
}

.blockeditor-hero-full {
    min-height: 100vh;
}

/* Hero overlay - now using dedicated element */
.blockeditor-frontend-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* Text alignment variants */
.blockeditor-hero-align-left .blockeditor-frontend-hero-content {
    text-align: left;
    align-items: flex-start;
}

.blockeditor-hero-align-center .blockeditor-frontend-hero-content {
    text-align: center;
    align-items: center;
}

.blockeditor-hero-align-right .blockeditor-frontend-hero-content {
    text-align: right;
    align-items: flex-end;
}

/* Hero content */
.blockeditor-frontend-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
}

.blockeditor-frontend-hero-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blockeditor-frontend-hero-subheading {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 30px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.blockeditor-frontend-hero-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blockeditor-frontend-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Sticky header trigger - JS will use this */
[data-sticky-trigger="true"] {
    /* Used by JavaScript to track scroll position */
}

/* Sticky Header Classes - Apply these to your header */
.header-hero-visible {
    /* Header style when hero is visible */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-hero-hidden {
    /* Header style when hero is scrolled past */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Body classes for additional styling */
body.hero-in-view {
    /* Styles when hero is visible */
}

body.hero-out-of-view {
    /* Styles when hero is scrolled past */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blockeditor-hero-small {
        min-height: 40vh;
    }

    .blockeditor-hero-medium {
        min-height: 50vh;
    }

    .blockeditor-hero-large {
        min-height: 60vh;
    }

    .blockeditor-hero-full {
        min-height: 100vh;
    }

    .blockeditor-frontend-hero-content {
        padding: 30px 15px;
    }

    .blockeditor-frontend-hero-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* =====================================================
   Features Block Frontend Styles
   ===================================================== */

.blockeditor-frontend-block-features {
    padding: 2rem 0;
}

.blockeditor-frontend-features-grid {
    --features-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--features-columns), 1fr);
    gap: 2rem;
}

/* Responsive columns */
@media (max-width: 1024px) {
    .blockeditor-frontend-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blockeditor-frontend-features-grid {
        grid-template-columns: 1fr;
    }
}

.blockeditor-frontend-feature-item {
    padding: 1.5rem;
}

.blockeditor-frontend-feature-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: inline-block;
}

.blockeditor-frontend-feature-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.blockeditor-frontend-feature-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Style: Card */
.blockeditor-features-style-card .blockeditor-frontend-feature-item {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blockeditor-features-style-card .blockeditor-frontend-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blockeditor-features-style-card .blockeditor-frontend-feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

/* Features Style: Minimal */
.blockeditor-features-style-minimal .blockeditor-frontend-feature-item {
    padding: 1rem;
    border-left-width: 3px;
    border-left-style: solid;
}

.blockeditor-features-style-minimal .blockeditor-frontend-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blockeditor-features-style-minimal .blockeditor-frontend-feature-title {
    font-size: 1.1rem;
}

/* Features Style: Bordered */
.blockeditor-features-style-bordered .blockeditor-frontend-feature-item {
    border-width: 2px;
    border-style: solid;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

/* Features Style: Centered */
.blockeditor-features-style-centered .blockeditor-frontend-feature-item {
    text-align: center;
}

.blockeditor-features-style-centered .blockeditor-frontend-feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blockeditor-features-style-centered .blockeditor-frontend-feature-title {
    font-size: 1.25rem;
}

/* =====================================================
   Features Admin Items (keep colors for admin UI)
   ===================================================== */
.blockeditor-features-items {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
}

.blockeditor-features-item {
    border-bottom: 1px solid #eee;
}

.blockeditor-features-item:last-child {
    border-bottom: none;
}

.blockeditor-features-item-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f9f9f9;
    gap: 10px;
}

.blockeditor-features-drag-handle {
    cursor: move;
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    padding: 2px;
}

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

.blockeditor-features-label {
    flex: 1;
    font-weight: 500;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blockeditor-features-icon-preview {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.blockeditor-features-item-actions {
    display: flex;
    gap: 6px;
}

.blockeditor-features-edit {
    padding: 4px 12px;
    background: #3498db;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.blockeditor-features-edit:hover {
    background: #2980b9;
}

.blockeditor-features-remove {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.blockeditor-features-remove:hover {
    background: #e74c3c;
    color: #fff;
}

.blockeditor-features-add {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #5cb85c;
    text-align: center;
    transition: all 0.2s;
}

.blockeditor-features-add:hover {
    background: #e8f5e9;
    border-color: #5cb85c;
}

/* Features Icon Buttons (Dialog) */
.blockeditor-features-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.blockeditor-features-icon-btn:hover {
    background: #e0e0e0;
    border-color: #3498db;
    transform: scale(1.1);
}

/* =====================================================
   Frontend Edit Dialog (Admin UI - keep colors)
   ===================================================== */

.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;
}

/* Image Block Preview (Frontend Edit Dialog) */
.blockeditor-frontend-edit-dialog-body .blockeditor-image-preview {
    margin-top: 10px;
    max-width: 300px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-image-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    object-fit: contain;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-image-preview:empty {
    display: none;
}

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

/* Columns Editor (Frontend Edit Dialog) */
.blockeditor-frontend-edit-dialog-body .columns-editor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blockeditor-frontend-edit-dialog-body .column-input {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
}

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

.blockeditor-frontend-edit-dialog-body .column-input textarea {
    width: 100%;
    box-sizing: border-box;
}

.blockeditor-frontend-edit-dialog-body .column-input.blockeditor-bindable-field .blockeditor-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

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

/* 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 (Admin UI)
   ===================================================== */

.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;
}

/* Tabs Inline Editing Mode */
.blockeditor-frontend-inline-editing .blockeditor-frontend-tabs-panels {
    display: block !important;
}

.blockeditor-frontend-inline-editing .blockeditor-frontend-tab-panel {
    display: block !important;
    position: relative;
}

.blockeditor-frontend-inline-editing .blockeditor-frontend-tab-panel:not(:first-child) {
    border-top: 1px dashed #ddd;
    margin-top: 10px;
    padding-top: 10px;
}

.blockeditor-frontend-inline-editing .blockeditor-frontend-tab-panel::before {
    content: attr(id);
    position: absolute;
    top: -8px;
    left: 10px;
    background: #f39c12;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.blockeditor-frontend-inline-editing .blockeditor-frontend-tab-btn,
.blockeditor-frontend-inline-editing .blockeditor-frontend-tab-btn-vertical {
    pointer-events: none;
    opacity: 0.6;
}

/* =====================================================
   Delete Confirmation Dialog (Admin UI)
   ===================================================== */

.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;
}

/* Quote Icon Buttons (Frontend Edit Dialog) */
.blockeditor-frontend-edit-dialog-body .blockeditor-quote-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.blockeditor-frontend-edit-dialog-body .blockeditor-quote-icon-btn:hover {
    background: #e0e0e0;
    border-color: #3498db;
    transform: scale(1.1);
}

/* =====================================================
   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;
    }
}

/* =====================================================
   Tabs Icon Suggestions (Frontend Dialog)
   ===================================================== */

.blockeditor-tabs-icon-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.blockeditor-tabs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.blockeditor-tabs-icon-btn:hover {
    background: #e0e0e0;
    border-color: #3498db;
    transform: scale(1.1);
}

.blockeditor-optional {
    font-weight: normal;
    color: #888;
    font-size: 12px;
}

/* Field Binding Styles for Tabs Dialog */
.blockeditor-tabs-dialog .blockeditor-bindable-field {
    position: relative;
}

.blockeditor-tabs-dialog .blockeditor-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.blockeditor-tabs-dialog .blockeditor-field-binding {
    flex-shrink: 0;
}

.blockeditor-tabs-dialog .blockeditor-binding-select {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    min-width: 120px;
}

.blockeditor-tabs-dialog .blockeditor-binding-select:hover {
    border-color: #3498db;
    background: #fff;
}

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