﻿#blog-editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: none;
}

#blog-editor-box {
    width: 70%;
    margin: 60px auto;
    background: #0a0a0a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 25px #00eaff;
    color: #fff;
}

.editor-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #111;
    border: 1px solid #00eaff;
    color: #fff;
}

#editorToolbar button {
    background: #00eaff;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

#editorBody {
    background: #111;
    border: 1px solid #00eaff;
    min-height: 300px;
    padding: 10px;
    color: #fff;

    white-space: normal;          /* horizontal text flow */
    writing-mode: horizontal-tb;  /* prevent vertical text */
}

/* Red neon buttons for B, I, U */
.editor-btn-red {
    background: #ff0033 !important;
    border: 1px solid #ff3366 !important;
    color: #fff !important;
    box-shadow: 0 0 12px #ff0033, 0 0 18px #ff3366;
}
.editor-btn-red:hover {
    background: #ff3366 !important;
    box-shadow: 0 0 20px #ff0033;
}

/* Neon highlight for misspelled words */
.spellcheck-neon ::spelling-error {
    text-decoration: underline wavy #ff0033 !important;
    text-shadow: 0 0 8px #ff0033, 0 0 12px #ff3366;
}

.emoji-picker {
    display: none;
    position: absolute;
    background: #0a0a0a;
    border: 1px solid #00eaff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 12px #00eaff;
    max-width: 200px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 999999;
}
.emoji-picker span {
    cursor: pointer;
    font-size: 22px;
    margin: 4px;
}

#blog-editor-box {
    width: 70%;
    margin: 20px auto; /* moved up */
}

.editor-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.editor-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.editor-col {
    flex: 1;
}

/* Center-aligned frame */
.editor-image-frame[style*="margin: 0 auto"] {
    box-shadow: 0 0 14px #00eaffaa;
}

/* Right-aligned frame */
.editor-image-frame[style*="float: right"] {
    box-shadow: 0 0 10px #00eaff55;
}


/* Gallery container */
.editor-gallery {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

/* 2-column gallery */
.editor-gallery.gallery-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3-column gallery */
.editor-gallery.gallery-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Neon gallery frame */
.editor-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #0a0a0a;
    padding: 8px;
    box-shadow: 0 0 12px #00eaff88;
    cursor: pointer;
}

/* Lightbox for gallery */
.gallery-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 24px #00eaff;
}
