/* Quill.js dark theme overrides for G5 Hive */
.ql-toolbar.ql-snow {
    background: #1a1a2e;
    border-color: rgba(212, 175, 55, 0.3) !important;
    border-radius: 8px 8px 0 0;
}

.ql-toolbar .ql-stroke {
    stroke: #d4af37 !important;
}

.ql-toolbar .ql-fill {
    fill: #d4af37 !important;
}

.ql-toolbar .ql-picker-label {
    color: #f5f0e8 !important;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar .ql-picker-label:hover .ql-stroke {
    stroke: #ffd700 !important;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar .ql-picker-label:hover .ql-fill {
    fill: #ffd700 !important;
}

.ql-toolbar button.ql-active .ql-stroke {
    stroke: #ffd700 !important;
}

.ql-toolbar button.ql-active .ql-fill {
    fill: #ffd700 !important;
}

.ql-container.ql-snow {
    border-color: rgba(212, 175, 55, 0.3) !important;
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.ql-editor {
    background: #0f0f1a;
    color: #f5f0e8;
    min-height: 400px;
    padding: 24px;
    line-height: 1.8;
}

.ql-editor.ql-blank::before {
    color: rgba(245, 240, 232, 0.4);
    font-style: italic;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: #d4af37;
    font-weight: 700;
}

.ql-editor a {
    color: #d4af37;
    text-decoration: underline;
}

.ql-editor blockquote {
    border-left: 4px solid rgba(212, 175, 55, 0.5);
    padding-left: 16px;
    color: rgba(245, 240, 232, 0.85);
}

.ql-editor img {
    border-radius: 8px;
    max-width: 100%;
    margin: 16px 0;
}

.ql-editor code, .ql-editor pre {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: #f5f0e8;
}

/* Picker dropdowns */
.ql-snow .ql-picker-options {
    background: #1a1a2e !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

.ql-snow .ql-picker-item {
    color: #f5f0e8 !important;
}

.ql-snow .ql-picker-item:hover {
    color: #ffd700 !important;
}

/* Tooltip */
.ql-snow .ql-tooltip {
    background: #1a1a2e !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #f5f0e8 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap;
    z-index: 100;
}

.ql-snow .ql-tooltip input[type="text"] {
    background: #0f0f1a !important;
    color: #f5f0e8 !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    width: 300px !important;
}

.ql-snow .ql-tooltip a {
    color: #d4af37 !important;
}

/* Video embeds - responsive sizing */
.ql-editor .ql-video {
    display: block;
    width: 100%;
    min-height: 360px;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Also fix on the rendered blog post page */
.prose iframe,
.prose .ql-video,
.blog-post-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 16px 0;
}
