/**
 * ContentBlocks Debug System - Heading CSS
 * Spezifische Styles für Heading Debug-Elemente
 */

/* 📝 Heading Debug Icon */
[data-cb-debug-type="heading"] .cb-debug-icon {
    top: 8px;
    right: 8px;
    background: #ffc107; /* Yellow */
}

/* 📝 Heading Debug Modal */

.cb-debug-modal[data-debug-type="heading"] .cb-debug-modal-header h4 {
    color: white;
    margin: 0;
    font-weight: 600;
}

/* 📝 Heading Debug Sections - Ultra-Kompakt */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-section {
    border-left: 3px solid #ffc107 !important;
    padding-left: 6px !important;
    margin-bottom: 6px !important;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-section h5 {
    color: #ffc107 !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
}

/* 📝 Heading Debug Fields - Spezifische Styling */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-field input:focus,
.cb-debug-modal[data-debug-type="heading"] .cb-debug-field select:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* 📝 Heading Debug Buttons */
.cb-debug-modal[data-debug-type="heading"] .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cb-debug-modal[data-debug-type="heading"] .btn-warning {
    background: #ffc107;
    color: #212529;
}

.cb-debug-modal[data-debug-type="heading"] .btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* 📝 Heading Debug Header - Ultra-Kompakt */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-header {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: 2px solid #f8f9fa !important;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-header h4 {
    color: #ffc107 !important;
    margin: 0 0 2px 0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-header small {
    color: #6c757d !important;
    font-size: 10px !important;
}

/* 📝 Heading Debug Loading States */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-field.loading {
    position: relative;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-field.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffc107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* 📝 Heading Debug Tab System */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-tab.active {
    border-bottom-color: #ffc107;
    color: #ffc107;
    font-weight: 600;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-tab:hover {
    background: rgba(255, 193, 7, 0.1);
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-tab-content {
    display: none;
}

.cb-debug-modal[data-debug-type="heading"] .cb-debug-tab-content.active {
    display: block;
}

/* 📝 Heading Debug Hover Effects */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-field:hover {
    background: rgba(255, 193, 7, 0.05);
    border-radius: 4px;
    padding: 5px;
    margin: -5px;
    transition: all 0.3s ease;
}

/* 📝 Heading Debug Focus States */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-field:focus-within {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
    padding: 5px;
    margin: -5px;
}

/* 📝 Heading Debug Disabled States */
.cb-debug-modal[data-debug-type="heading"] .cb-debug-field select:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* 📝 Heading Debug Responsive */
@media (max-width: 768px) {
    .cb-debug-modal[data-debug-type="heading"] {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .cb-debug-modal[data-debug-type="heading"] .cb-debug-tabs {
        flex-direction: column;
    }
    
    .cb-debug-modal[data-debug-type="heading"] .cb-debug-tab {
        border-bottom: none;
        border-right: 2px solid transparent;
    }
    
    .cb-debug-modal[data-debug-type="heading"] .cb-debug-tab.active {
        border-bottom: none;
        border-right-color: #ffc107;
    }
}

/* 📝 Heading Debug Animation */
.cb-debug-modal[data-debug-type="heading"] {
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Heading Hover Effects */
.heading-container h1:hover,
.heading-container h2:hover,
.heading-container h3:hover,
.heading-container h4:hover,
.heading-container h5:hover,
.heading-container h6:hover {
    transition: all 0.3s ease;
}

.heading-container .hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.heading-container .hover-zoom:hover {
    transform: scale(1.05);
}

.heading-container .hover-overlay:hover {
    position: relative;
}

.heading-container .hover-overlay:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
}
