/* ============================================================
   subdomain.css
   Styles for the Floating Action Button and Comment Drawer
   ============================================================ */

/* FAB Style */
#comment-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
    border: none;
    outline: none;
    color: white;
}

/* FAB Colors */
.a4-note-theme #comment-fab {
    background: #af7100;
}

.a4-note-theme #comment-fab:hover {
    background: #8f5d01;
}

#comment-fab {
    background: #4d4d4d;
    /* Default for Code View */
}

#comment-fab:hover {
    background: #474747;
}

#comment-fab:active {
    transform: scale(0.95);
}

/* Drawer Style */
#comment-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    /* Hidden by default */
    width: 600px;
    height: 100%;
    background: #000000b4;
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #cccccc21;
}

#comment-drawer.open {
    right: 0;
}

#comment-drawer-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#comment-drawer-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#comment-drawer-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#comment-drawer-close:hover {
    color: white;
}

#comment-drawer-body {
    flex: 1;
    overflow-y: auto;
}

/* Customizing comment form for sidebar */
#comment-drawer-body .comment-section-container {
    padding: 0;
    margin: 0;
    box-shadow: none;
    background: transparent;
    border: none;
}

#comment-drawer-body .comment-form-title {
    display: none;
}

#comment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1001;
    display: none;
}

#comment-overlay.show {
    display: block;
}

@media (max-width: 780px) {
    #comment-drawer {
        width: 100%;
        right: -100%;
    }
}

/* ─────────────────────────────────────────────────────────────
   Code View Styles
   ───────────────────────────────────────────────────────────── */
.code-view-body {
    margin: 0;
    padding: 0;
    background: #272822;
    /* Monokai background */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#editor {
    flex: 1;
    font-size: 16px;
}

.header-bar {
    padding: 10px;
    background: #1e1f1c;
    color: #bbb;
    font-family: monospace;
    border-bottom: 1px solid #3e3e3e;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.btn-copy {
    background: transparent;
    border: 1px solid #555;
    color: #bbb;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-copy:hover {
    background: #333;
    color: white;
}

/* Custom tweaks for dark comment section */
.comment-section .chat-container {
    margin: 0px !important;
}

.comment-section .chat-header,
.comment-section .gh-form-footer-login {
    color: white;
}

.comment-section .chat-body {
    background: transparent;
}

.comment-section .chat-body,
.comment-section .chat-header,
.comment-section .chat-container {
    border-radius: 0px !important;
    border: none !important;
}


.comment-section .gh-content,
.comment-section .gh-form-header,
.comment-section .gh-form-footer {
    background: transparent;
}

.comment-section .gh-msg-body {
    background: #1414149a;
}

.comment-section .chat-header {
    display: none;
}

.comment-section .gh-form-container {
    background: rgb(24 24 24 / 62%);
}

.comment-section #cmt_input {
    background: #000;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.158);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.26);
}