/* ==========================================================================
   Live On-Site Visual Editor Stylesheet
   ========================================================================== */

#liveEditorBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1E1E2D;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999999;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Nunito', 'Quicksand', sans-serif;
    font-size: 0.9rem;
}

body.editor-active {
    padding-top: 60px !important;
}

body.editor-active .navbar {
    top: 60px !important;
}

.editor-bar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.editor-bar-brand .emoji {
    font-size: 1.4rem;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-editor {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-editor-primary {
    background: #7C4DFF;
    color: #FFFFFF;
}

.btn-editor-primary:hover {
    background: #651FFF;
    transform: translateY(-1px);
}

.btn-editor-success {
    background: #00E676;
    color: #1E1E2D;
}

.btn-editor-success:hover {
    background: #00C853;
}

.btn-editor-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.btn-editor-dark:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-editor-danger {
    background: rgba(255, 23, 68, 0.2);
    color: #FF5252;
}

.btn-editor-danger:hover {
    background: #FF1744;
    color: #FFFFFF;
}

/* Floating Trigger Button */
#liveEditorTrigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #7C4DFF, #651FFF);
    color: #FFFFFF;
    border: none;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

#liveEditorTrigger:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 14px 35px rgba(124, 77, 255, 0.6);
}

/* Edit Mode Visual Hints */
body.editing-enabled [contenteditable="true"] {
    outline: 2px dashed #7C4DFF !important;
    outline-offset: 4px;
    background: rgba(124, 77, 255, 0.04) !important;
    border-radius: 4px;
    cursor: text !important;
}

body.editing-enabled [contenteditable="true"]:focus {
    outline: 2px solid #00E676 !important;
    background: rgba(0, 230, 118, 0.08) !important;
}

body.editing-enabled img {
    cursor: pointer !important;
    transition: filter 0.2s;
}

body.editing-enabled img:hover {
    filter: brightness(0.8) contrast(1.1);
    outline: 3px solid #00B0FF;
}

/* Image Change Modal */
.image-editor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.image-editor-modal.active {
    display: flex;
}

.image-modal-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.image-modal-card h3 {
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
}

.image-modal-card input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E4E6EF;
    border-radius: 10px;
    margin-bottom: 20px;
}
