/* -------------------------------------- */
/* EDITOR UI — Gaia Layout + Glass Theme  */
/* -------------------------------------- */

@layer components {

    /* -------------------------------------- */
    /* CONTENT GLASS WRAPPER (NEW)            */
    /* -------------------------------------- */
    .content-glass {
        max-width: 1100px;
        margin: 40px auto;
        padding: 25px;

        background: rgba(255,255,255,0.55);
        border: 1px solid rgba(255,255,255,0.7);
        border-radius: 12px;

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.8),
            0 4px 12px rgba(0,0,0,0.15);
    }

    .content-glass > * + * {
        margin-top: 20px;
    }

    /* -------------------------------------- */
    /* MARKDOWN BUTTONS — Gaia shape, Glass   */
    /* -------------------------------------- */
    .md-btn {
        padding: 6px 10px;
        margin-right: 6px;

        font-family: Tahoma, Verdana, sans-serif;
        font-size: 12px;

        background: rgba(255,255,255,0.55);
        border: 1px solid rgba(255,255,255,0.7);
        border-radius: 6px;

        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.8),
            0 2px 4px rgba(0,0,0,0.12);

        cursor: pointer;
        user-select: none;
        transition: background 0.1s ease, transform 0.05s ease;
    }

    .md-btn:hover {
        background: rgba(255,255,255,0.75);
    }

    .md-btn:active {
        transform: translateY(1px);
        background: rgba(255,255,255,0.9);
    }

    /* -------------------------------------- */
    /* POPUP WINDOWS — Gaia dark box, Glass   */
    /* -------------------------------------- */
    .popup {
        position: absolute;
        background: rgba(255,255,255,0.85);
        padding: 12px;

        border: 1px solid rgba(255,255,255,0.7);
        border-radius: 8px;

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.8),
            0 3px 6px rgba(0,0,0,0.15);

        z-index: 999;
    }

    .hidden {
        display: none;
    }

    .popup-close {
        margin-top: 10px;
        padding: 6px 10px;

        font-size: 12px;
        font-family: Tahoma, Verdana, sans-serif;

        background: rgba(255,255,255,0.55);
        border: 1px solid rgba(255,255,255,0.7);
        border-radius: 6px;

        cursor: pointer;
    }

    /* -------------------------------------- */
    /* COLOR PICKER                           */
    /* -------------------------------------- */
    .color-row {
        display: flex;
        gap: 6px;
        margin-bottom: 10px;
    }

    .color-swatch {
        width: 22px;
        height: 22px;
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,0.7);
        cursor: pointer;
    }

    /* -------------------------------------- */
    /* SIZE PICKER                            */
    /* -------------------------------------- */
    .size-row button {
        padding: 6px 10px;
        margin-right: 6px;

        font-size: 12px;
        font-family: Tahoma, Verdana, sans-serif;

        background: rgba(255,255,255,0.55);
        border: 1px solid rgba(255,255,255,0.7);
        border-radius: 6px;

        cursor: pointer;
        transition: background 0.1s ease;
    }

    .size-row button:hover {
        background: rgba(255,255,255,0.75);
    }

    /* -------------------------------------- */
    /* GAIA LAYOUT GRID (unchanged structure) */
    /* -------------------------------------- */
    #editor-wrapper {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto 1fr;
        gap: 20px;
        width: 65%;
        margin-top: 42px;
		margin-left: 325px;
    }

    /* -------------------------------------- */
    /* PREVIEW BOX — Gaia shape, Glass theme  */
    /* -------------------------------------- */
    #preview-box {
        grid-column: 1 / 3;

        background: rgba(255,255,255,0.65);
        border: 1px solid rgba(255,255,255,0.7);
        padding: 15px;
        border-radius: 8px;

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.8),
            0 3px 6px rgba(0,0,0,0.12);
    }

    #preview-area {
        min-height: 150px;
        padding: 10px;

        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(0,0,0,0.15);
        border-radius: 6px;
    }

    /* -------------------------------------- */
    /* MAIN EDITOR + SIDEBAR — Glass panels   */
    /* -------------------------------------- */
    #editor-main,
    #editor-sidebar {
        background: rgba(255,255,255,0.55);
        border: 1px solid rgba(255,255,255,0.7);
        border-radius: 8px;
        padding: 15px;

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.8),
            0 3px 6px rgba(0,0,0,0.12);
    }

    /* -------------------------------------- */
    /* TEXTAREA — Gaia shape, Glass border    */
    /* -------------------------------------- */
    #post-body {
        width: 100%;
        height: 400px;

        border-radius: 6px;
        border: 1px solid rgba(0,0,0,0.25);
        padding: 10px;
        resize: vertical;

        background: rgba(255,255,255,0.9);
        font-family: Tahoma, Verdana, sans-serif;
        font-size: 14px;
    }
}
