/**
 * Merlin_3 Template Editor Styles
 * Custom styling for universal editor in Merlin_3 template
 */

/* Editor Banner Override for Merlin_3 */
/* .editor-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-bottom: 2px solid #e74c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
} */

.editor-banner .text-white {
    color: #ecf0f1 !important;
}

.editor-banner .btn-outline-light:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

/* Edit Indicators for Merlin_3 Dark Theme */
.merlin3-editor-mode .simple-editable-field::before,
.merlin3-editor-mode .rich-editable-field::before {
    background-color: #e74c3c !important;
    color: #ffffff !important;
}

.merlin3-editor-mode .simple-editable-field:hover::before,
.merlin3-editor-mode .rich-editable-field:hover::before {
    background-color: #c0392b !important;
    transform: scale(1.1);
}

.profile-pic {
    width: 100px;
    height: 100px;
}

.profile-image-container .btn {
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.profile-image-container .btn:hover {
    background: rgba(231, 76, 60, 0.9);
    border-color: #e74c3c;
    transform: translateY(-2px);
}

/* Rich Text Editor Toolbar Dark Theme */
.merlin3-editor-mode .rich-editor-toolbar {
    background: rgba(44, 62, 80, 0.95) !important;
    border: 1px solid #34495e !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.merlin3-editor-mode .rich-editor-toolbar .btn {
    color: #ecf0f1 !important;
    border-color: #34495e !important;
}

.merlin3-editor-mode .rich-editor-toolbar .btn:hover {
    background-color: #34495e !important;
    border-color: #e74c3c !important;
    color: #ffffff !important;
}

.merlin3-editor-mode .rich-editor-toolbar .btn.active {
    background-color: #e74c3c !important;
    border-color: #c0392b !important;
    color: #ffffff !important;
}

/* Section Title Styling */
.section-title.simple-editable-field {
    transition: all 0.3s ease;
}

.merlin3-editor-mode .section-title.simple-editable-field:hover {
    background: rgba(44, 62, 80, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
}

/* About Section Editor */
.about-content .rich-editable-field .editable-text-field {
    min-height: 200px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.merlin3-editor-mode .about-content .rich-editable-field .editable-text-field:hover,
.about-content .rich-editable-field .editable-text-field.editing {
    /* background: rgba(236, 240, 241, 0.05); */
    /* border: 2px dashed #e74c3c; */
}

/* Gallery Section Editor */
.gallery-container .show-on-editor {
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.gallery-container .show-on-editor h4 {
    color: #ecf0f1;
    font-weight: 600;
}

.gallery-container .btn-outline-primary {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.gallery-container .btn-outline-primary:hover {
    background-color: #e74c3c;
    border-color: #c0392b;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Gallery Grid Enhancement */
.gallery-grid {
    transition: all 0.3s ease;
}

.merlin3-editor-mode .gallery-grid {
    border: 2px dashed transparent;
    border-radius: 12px;
    padding: 20px;
}

.merlin3-editor-mode .gallery-grid:hover {
    border-color: #e74c3c;
    background: rgba(44, 62, 80, 0.05);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.merlin3-editor-mode .gallery-item:hover {
    transform: translateY(-5px);
}

/* Contact Form Editor */
.contact .show-on-editor {
    /* background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); */
    border-radius: 50px;
    padding: 8px 0;
}

.contact .btn-outline-success {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 24px;
}

.contact .btn-outline-success:hover {
    background-color: #ffffff;
    color: #27ae60;
    transform: translateY(-2px);
}

/* Contact Form Container */
.contact-form-container {
    transition: all 0.3s ease;
}

.merlin3-editor-mode .contact-form-container:hover {
    background: rgba(39, 174, 96, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 2px dashed #27ae60;
}

/* Newsletter Section */
.newsletter-section .section-title.simple-editable-field {
    transition: all 0.3s ease;
}

.merlin3-editor-mode .newsletter-section .section-title.simple-editable-field:hover {
    background: rgba(155, 89, 182, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    border: 2px dashed #9b59b6;
}

/* Social Links Editor */
.social-links {
    transition: all 0.3s ease;
}

.merlin3-editor-mode .social-links:hover {
    background: rgba(52, 73, 94, 0.1);
    border-radius: 12px;
    padding: 16px;
    border: 2px dashed #34495e;
}

/* Modal Overrides for Dark Theme */
.merlin3-editor-mode .modal-content {
    font-family: var(--font-family-sans-serif);
    background-color: #2c3e50;
    color: #ecf0f1;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.merlin3-editor-mode .modal-header {
    border-bottom-color: #34495e;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.merlin3-editor-mode .modal-footer {
    border-top-color: #34495e;
    background-color: #34495e;
}

.merlin3-editor-mode .form-control,
.merlin3-editor-mode .form-select {
    background-color: #34495e;
    border-color: #4a5568;
    color: #ecf0f1;
}

.merlin3-editor-mode .form-control:focus,
.merlin3-editor-mode .form-select:focus {
    background-color: #34495e;
    border-color: #e74c3c;
    color: #ecf0f1;
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}

/* Button Overrides */
.merlin3-editor-mode .btn-primary {
    background-color: #e74c3c;
    border-color: #c0392b;
}

.merlin3-editor-mode .btn-primary:hover {
    background-color: #c0392b;
    border-color: #a93226;
}

.merlin3-editor-mode .btn-outline-primary {
    color: #e74c3c;
    border-color: #e74c3c;
}

.merlin3-editor-mode .btn-outline-primary:hover {
    background-color: #e74c3c;
    border-color: #c0392b;
    color: #ffffff;
}

/* Video Pause Overlay */
.merlin3-editor-mode video {
    position: relative;
}

.merlin3-editor-mode video::after {
    content: '⏸️ Paused for Editing';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
    z-index: 10;
}

/* Smooth Transitions */
.merlin3-editor-mode * {
    transition: all 0.3s ease !important;
}

/* Hide Editor Elements in Online Mode */
body:not(.editor-active):not(.merlin3-editor-mode) .show-on-editor {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1280px) {
.profile-image-container .btn {
        top: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .gallery-container .show-on-editor {
        padding: 15px;
        text-align: center;
    }
    
    .gallery-container .show-on-editor h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .merlin3-editor-mode .about-content .rich-editable-field .editable-text-field {
        min-height: 150px;
        padding: 15px;
    }
}

/* Animation for Editor Activation */
@keyframes merlin3EditorActivate {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.merlin3-editor-mode .show-on-editor {
    animation: merlin3EditorActivate 0.5s ease;
}

/* Special Effects for Video Portfolio Theme */
.merlin3-editor-mode .gallery-item::before {
    content: '📹 Click to Edit';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.merlin3-editor-mode .gallery-item:hover::before {
    opacity: 1;
} 