/* ==================================================
   author.css - LiputanJatim Author Area Clean UI
================================================== */

:root {
    --lj-red: #e30613;
    --lj-red-dark: #c8000b;
    --lj-dark: #071d33;
    --lj-blue: #0b3a75;
    --lj-text: #0f172a;
    --lj-muted: #64748b;
    --lj-border: #e5e7eb;
    --lj-soft: #f8fafc;
    --lj-bg: #f5f7fb;
    --lj-white: #ffffff;
}

/* =========================
   AUTHOR LAYOUT
========================= */

.lj-author-page,
.lj-author-layout {
    width: 100%;
    max-width: 1220px;
    margin: 34px auto 70px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 0 18px;
    align-items: start;
}

.lj-author-sidebar {
    position: sticky;
    top: 94px;
    min-height: calc(100vh - 130px);
    background:
        radial-gradient(circle at top left, rgba(227,6,19,.16), transparent 28%),
        linear-gradient(180deg, #061c32, #031426);
    color: #fff;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(3,20,38,.22);
}

.lj-author-sidebar h3 {
    color: #fff;
    margin: 0 0 22px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 750;
}

.lj-author-sidebar nav,
.lj-author-sidebar {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lj-author-sidebar a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #eaf2ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    padding: 11px 13px;
    border-radius: 14px;
    transition: .18s ease;
}

.lj-author-sidebar a:hover,
.lj-author-sidebar a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(3px);
}

.lj-author-sidebar a:last-child {
    margin-top: 8px;
    color: #fecaca;
}

.lj-author-main,
.lj-author-content {
    min-width: 0;
}

.lj-author-main,
.lj-author-card {
    background: #fff;
    border: 1px solid var(--lj-border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 22px 60px rgba(15,23,42,.07);
}

/* =========================
   AUTHOR TABLE
========================= */

.lj-author-table {
    display: grid;
    gap: 10px;
}

.lj-author-table-head,
.lj-author-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 130px 120px;
    gap: 14px;
    align-items: center;
}

.lj-author-table-head {
    font-weight: 700;
    color: var(--lj-muted);
    padding: 0 18px 10px;
}

.lj-author-table-row {
    border: 1px solid var(--lj-border);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}

.lj-author-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lj-action-view,
.lj-action-edit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.lj-action-view {
    background: var(--lj-red);
}

.lj-action-edit {
    background: var(--lj-dark);
}

/* =========================
   SUBMIT ARTICLE HERO
========================= */

.lj-submit-page {
    max-width: 1240px;
}

.lj-submit-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(227,6,19,.10), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--lj-border);
    border-radius: 30px;
    padding: 34px 38px;
    box-shadow: 0 22px 60px rgba(15,23,42,.07);
    margin-bottom: 24px;
}

.lj-submit-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(11,58,117,.06);
}

.lj-submit-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fef2f2;
    color: var(--lj-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.lj-submit-hero span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--lj-red);
    box-shadow: 0 0 0 5px rgba(227,6,19,.12);
}

.lj-submit-hero h1 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -.04em;
    color: var(--lj-dark);
}

.lj-submit-hero p {
    margin: 0;
    max-width: 720px;
    color: #475569;
    font-size: 15.5px;
    line-height: 1.75;
}

/* =========================
   SUBMIT FORM GRID
========================= */

.lj-submit-form {
    display: block;
}

.lj-submit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.lj-submit-main,
.lj-submit-side {
    display: grid;
    gap: 18px;
}

.lj-submit-side {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--lj-border);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 22px 60px rgba(15,23,42,.08);
}

.lj-form-card {
    background: #fff;
    border: 1px solid var(--lj-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(15,23,42,.05);
}

.lj-submit-side .lj-form-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.lj-form-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--lj-dark);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;
}

.lj-form-card label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--lj-red);
    flex: 0 0 auto;
}

.lj-form-card input[type="text"],
.lj-form-card input[type="datetime-local"],
.lj-form-card input[type="file"],
.lj-form-card select,
.lj-form-card textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8e1ee;
    border-radius: 16px;
    padding: 13px 15px;
    color: var(--lj-dark);
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    outline: none;
    transition: .18s ease;
}

.lj-form-card textarea {
    min-height: 128px;
    resize: vertical;
}

.lj-form-card input::placeholder,
.lj-form-card textarea::placeholder {
    color: #94a3b8;
}

.lj-form-card input:focus,
.lj-form-card select:focus,
.lj-form-card textarea:focus {
    border-color: var(--lj-blue);
    box-shadow: 0 0 0 4px rgba(11,58,117,.08);
}

.lj-form-card small {
    display: block;
    margin-top: 8px;
    color: var(--lj-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

/* =========================
   IMAGE PREVIEW
========================= */

.lj-image-preview {
    width: 100%;
    min-height: 200px;
    border-radius: 22px;
    border: 1.5px dashed #cbd5e1;
    background: linear-gradient(135deg, rgba(248,250,252,.95), rgba(241,245,249,.95));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.lj-image-preview span {
    max-width: 190px;
    color: var(--lj-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.lj-image-preview span::before {
    content: "🖼️";
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.lj-image-preview img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

/* =========================
   SUBMIT BUTTON
========================= */

.lj-submit-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lj-red), var(--lj-red-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(227,6,19,.28);
    transition: .18s ease;
}

.lj-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(227,6,19,.34);
}

/* ==================================================
   WORDPRESS EDITOR CLEAN FIX
   Bagian ini yang menghilangkan tombol merah-merah
================================================== */

.lj-form-card .wp-editor-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #d8e1ee;
    background: #fff;
}

.lj-form-card .wp-editor-tools {
    background: #f8fafc;
    padding: 10px 10px 0;
    border-bottom: 1px solid var(--lj-border);
}

.lj-form-card .wp-editor-tabs {
    float: right;
}

.lj-form-card .wp-switch-editor {
    height: auto !important;
    min-height: 34px !important;
    padding: 8px 13px !important;
    border-radius: 12px 12px 0 0 !important;
    border: 1px solid #dbe3ef !important;
    background: #fff !important;
    color: var(--lj-dark) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.lj-form-card .tmce-active .switch-tmce,
.lj-form-card .html-active .switch-html {
    background: var(--lj-dark) !important;
    color: #fff !important;
    border-color: var(--lj-dark) !important;
}

.lj-form-card .wp-editor-container {
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.lj-form-card .mce-toolbar-grp,
.lj-form-card .mce-container,
.lj-form-card .mce-panel {
    background: #fff !important;
}

.lj-form-card .mce-toolbar-grp {
    border-bottom: 1px solid var(--lj-border) !important;
    padding: 6px !important;
}

/* TinyMCE button normal */
.lj-form-card .mce-btn,
.lj-form-card .mce-btn:hover,
.lj-form-card .mce-btn:focus {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin: 3px !important;
    box-shadow: none !important;
}

.lj-form-card .mce-btn button,
.lj-form-card .mce-btn button:hover,
.lj-form-card .mce-btn button:focus {
    background: transparent !important;
    color: #334155 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.lj-form-card .mce-btn i,
.lj-form-card .mce-ico {
    color: #334155 !important;
}

/* TinyMCE button active */
.lj-form-card .mce-btn.mce-active,
.lj-form-card .mce-btn.mce-active:hover,
.lj-form-card .mce-btn:active {
    background: #eef6ff !important;
    border-color: #bfdbfe !important;
}

.lj-form-card .mce-btn.mce-active button,
.lj-form-card .mce-btn.mce-active i,
.lj-form-card .mce-btn.mce-active .mce-ico {
    color: var(--lj-blue) !important;
}

/* Dropdown Paragraph */
.lj-form-card .mce-listbox,
.lj-form-card .mce-listbox:hover {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.lj-form-card .mce-listbox button {
    color: #334155 !important;
}

/* Quicktags / mode Kode */
.lj-form-card .quicktags-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--lj-border) !important;
    padding: 10px !important;
}

.lj-form-card .quicktags-toolbar input.ed_button,
.lj-form-card .quicktags-toolbar input[type="button"],
.lj-form-card .quicktags-toolbar button {
    width: auto !important;
    min-width: auto !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    margin: 3px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.lj-form-card .quicktags-toolbar input.ed_button:hover,
.lj-form-card .quicktags-toolbar input[type="button"]:hover,
.lj-form-card .quicktags-toolbar button:hover {
    background: #eef6ff !important;
    border-color: #bfdbfe !important;
    color: var(--lj-blue) !important;
}

.lj-form-card iframe,
.lj-form-card textarea.wp-editor-area {
    min-height: 430px !important;
    background: #fff !important;
    color: var(--lj-dark) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* =========================
   ALERT
========================= */

.lj-auth-alert {
    margin-bottom: 18px;
    padding: 15px 18px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 650;
}

.lj-auth-alert.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.lj-auth-alert.error {
    background: #fef2f2;
    color: var(--lj-red);
    border: 1px solid #fecaca;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .lj-author-page,
    .lj-author-layout {
        grid-template-columns: 1fr;
        margin: 22px auto 50px;
    }

    .lj-author-sidebar {
        position: static;
        min-height: auto;
    }

    .lj-author-sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        scrollbar-width: none;
    }

    .lj-author-sidebar nav::-webkit-scrollbar {
        display: none;
    }

    .lj-author-sidebar a {
        flex: 0 0 auto;
        white-space: nowrap;
        background: rgba(255,255,255,.08);
    }

    .lj-submit-grid {
        grid-template-columns: 1fr;
    }

    .lj-submit-side {
        position: static;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .lj-author-table-head {
        display: none;
    }

    .lj-author-table-row {
        grid-template-columns: 1fr;
    }

    .lj-author-actions {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .lj-author-page,
    .lj-author-layout {
        padding: 0 14px;
    }

    .lj-submit-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .lj-submit-hero h1 {
        font-size: 30px;
    }

    .lj-submit-hero p {
        font-size: 14px;
    }

    .lj-form-card {
        padding: 16px;
        border-radius: 20px;
    }

    .lj-submit-side {
        padding: 16px;
    }

    .lj-form-card iframe,
    .lj-form-card textarea.wp-editor-area {
        min-height: 360px !important;
    }
}