.editor-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2rem;
}

@media(max-width: 992px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }
}

.editor-card,
.widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ═════════════════════════════════════════════════════════════════════════
   Blog Body Text Area & Form Controls (Day Light: White/Black | Night Dark: Black/White)
   ═════════════════════════════════════════════════════════════════════════ */

/* Default / Dark Theme Text Area */
.editor-content,
.form-textarea,
textarea.form-input,
textarea {
    width: 100%;
    min-height: 520px;
    font-family: 'JetBrains Mono', 'Fira Code', var(--font-mono), monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: #000000;
    color: #ffffff;
    caret-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    outline: none;
    resize: vertical;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.editor-content:focus,
.form-textarea:focus,
textarea.form-input:focus,
textarea:focus {
    border-color: var(--accent-cyan, #00d4ff);
    box-shadow: 0 0 0 3px var(--accent-glow, rgba(0, 212, 255, 0.2));
}

.editor-content::placeholder,
.form-textarea::placeholder,
textarea.form-input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

/* ── Day Light Mode: White Background & Black Text ── */
[data-theme="light"] .editor-card,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .editor-card {
    background-color: #ffffff !important;
    border-color: rgba(31, 35, 40, 0.15) !important;
    box-shadow: 0 4px 20px rgba(31, 35, 40, 0.08);
}

[data-theme="light"] .editor-card h1,
[data-theme="light"] .editor-card .form-label,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .editor-card h1,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .editor-card .form-label {
    color: #000000 !important;
}

[data-theme="light"] .editor-content,
[data-theme="light"] .form-textarea,
[data-theme="light"] textarea.form-input,
[data-theme="light"] textarea,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .editor-content,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .form-textarea,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) textarea.form-input,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    caret-color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .editor-content:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] textarea.form-input:focus,
[data-theme="light"] textarea:focus,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .editor-content:focus,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .form-textarea:focus,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) textarea.form-input:focus,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) textarea:focus {
    border-color: #0969da !important;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.18) !important;
}

[data-theme="light"] .editor-content::placeholder,
[data-theme="light"] .form-textarea::placeholder,
[data-theme="light"] textarea.form-input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .editor-content::placeholder,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) .form-textarea::placeholder,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) textarea.form-input::placeholder,
[data-time-phase="day"]:not([data-theme="dark"]):not([data-theme="midnight"]) textarea::placeholder {
    color: #656d76 !important;
}

/* ── Night Dark Mode: Black Background & White Text ── */
[data-theme="dark"] .editor-card,
[data-theme="midnight"] .editor-card,
[data-time-phase="night"] .editor-card,
[data-time-phase="twilight"] .editor-card {
    background-color: #050811 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="dark"] .editor-card h1,
[data-theme="dark"] .editor-card .form-label,
[data-theme="midnight"] .editor-card h1,
[data-theme="midnight"] .editor-card .form-label,
[data-time-phase="night"] .editor-card h1,
[data-time-phase="night"] .editor-card .form-label,
[data-time-phase="twilight"] .editor-card h1,
[data-time-phase="twilight"] .editor-card .form-label {
    color: #ffffff !important;
}

[data-theme="dark"] .editor-content,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] textarea.form-input,
[data-theme="dark"] textarea,
[data-theme="midnight"] .editor-content,
[data-theme="midnight"] .form-textarea,
[data-theme="midnight"] textarea.form-input,
[data-theme="midnight"] textarea,
[data-time-phase="night"] .editor-content,
[data-time-phase="night"] .form-textarea,
[data-time-phase="night"] textarea.form-input,
[data-time-phase="night"] textarea,
[data-time-phase="twilight"] .editor-content,
[data-time-phase="twilight"] .form-textarea,
[data-time-phase="twilight"] textarea.form-input,
[data-time-phase="twilight"] textarea {
    background-color: #000000 !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .editor-content:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] textarea.form-input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="midnight"] .editor-content:focus,
[data-theme="midnight"] .form-textarea:focus,
[data-theme="midnight"] textarea.form-input:focus,
[data-theme="midnight"] textarea:focus,
[data-time-phase="night"] .editor-content:focus,
[data-time-phase="night"] .form-textarea:focus,
[data-time-phase="night"] textarea.form-input:focus,
[data-time-phase="night"] textarea:focus,
[data-time-phase="twilight"] .editor-content:focus,
[data-time-phase="twilight"] .form-textarea:focus,
[data-time-phase="twilight"] textarea.form-input:focus,
[data-time-phase="twilight"] textarea:focus {
    border-color: var(--accent-cyan, #00d4ff) !important;
    box-shadow: 0 0 0 3px var(--accent-glow, rgba(0, 212, 255, 0.2)) !important;
}

[data-theme="dark"] .editor-content::placeholder,
[data-theme="dark"] .form-textarea::placeholder,
[data-theme="dark"] textarea.form-input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="midnight"] .editor-content::placeholder,
[data-theme="midnight"] .form-textarea::placeholder,
[data-theme="midnight"] textarea.form-input::placeholder,
[data-theme="midnight"] textarea::placeholder,
[data-time-phase="night"] .editor-content::placeholder,
[data-time-phase="night"] .form-textarea::placeholder,
[data-time-phase="night"] textarea.form-input::placeholder,
[data-time-phase="night"] textarea::placeholder,
[data-time-phase="twilight"] .editor-content::placeholder,
[data-time-phase="twilight"] .form-textarea::placeholder,
[data-time-phase="twilight"] textarea.form-input::placeholder,
[data-time-phase="twilight"] textarea::placeholder {
    color: #94a3b8 !important;
}

.publish-btn {
    width: 100%;
    margin-top: 1rem;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}