/* ============================================================
   JLIVE — Author Guidelines & Information for Authors
   MDPI Scholarly Layout in JLIVE Oxford Blue & Gold Palette
   ============================================================ */

.mdpi-guidelines-page {
    background-color: #f4f6f9;
    min-height: 90vh;
    padding-top: calc(var(--nav-height, 72px) + 28px);
    padding-bottom: 70px;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #2b3648;
}

.mdpi-guidelines-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* --- Layout Grid: Sidebar (260px) + Main Content (1fr) + Floating Actions (auto) --- */
.mdpi-guidelines-layout {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    gap: 28px;
    align-items: start;
}

/* ============================================================
   LEFT SIDEBAR: Information Navigation (matching screenshot)
   ============================================================ */
.mdpi-guidelines-sidebar {
    position: sticky;
    top: calc(var(--nav-height, 72px) + 20px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-main-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    margin: 0 0 18px 0;
    letter-spacing: -0.2px;
}

/* Nav Group */
.sidebar-nav-group {
    margin-bottom: 4px;
}

.sidebar-tab-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 6px 0;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    cursor: pointer;
    transition: color 0.15s ease;
    text-decoration: none;
}

.sidebar-tab-btn:hover {
    color: #1e3a8a;
}

.sidebar-tab-btn.active {
    color: var(--navy, #0A1F44);
    font-weight: 700;
}

/* Sub-items (Bullets under For Authors) */
.sidebar-sub-list {
    list-style: none;
    margin: 6px 0 14px 0;
    padding: 0 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-sub-item {
    position: relative;
    padding-left: 18px;
}

.sidebar-sub-item::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: -1px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.sidebar-sub-link {
    display: block;
    font-size: 13.5px;
    line-height: 1.45;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
    padding: 2px 0;
}

.sidebar-sub-link:hover {
    color: var(--navy, #0A1F44);
}

.sidebar-sub-item.active .sidebar-sub-link {
    color: var(--navy, #0A1F44);
    font-weight: 700;
}

.sidebar-sub-item.active::before {
    color: var(--gold, #C9A84C);
}

/* Divider line matching MDPI screenshot */
.sidebar-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 12px 0;
}

/* Action Buttons */
.mdpi-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy, #0A1F44);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--navy, #0A1F44);
    transition: all 0.2s ease;
}

.mdpi-btn-primary:hover {
    background: #14326d;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.18);
    transform: translateY(-1px);
}

.mdpi-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--navy, #0A1F44);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.mdpi-btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--navy, #0A1F44);
    transform: translateY(-1px);
}

/* ============================================================
   MAIN CONTENT AREA: MDPI Scholarly White Card
   ============================================================ */
.mdpi-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 44px 52px;
    box-shadow: 0 2px 12px rgba(10, 31, 68, 0.03);
    min-height: 800px;
}

/* Tab Panels */
.guidelines-tab-panel {
    display: none;
}

.guidelines-tab-panel.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Document Title */
.mdpi-doc-title {
    font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
    font-size: 29px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    margin: 0 0 24px 0;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

/* Section Headings */
.mdpi-h2 {
    font-family: var(--font-display, 'IBM Plex Serif', Georgia, serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    margin: 36px 0 16px 0;
    letter-spacing: -0.2px;
    scroll-margin-top: calc(var(--nav-height, 72px) + 30px);
}

.mdpi-h2:first-of-type {
    margin-top: 0;
}

.mdpi-h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
    margin: 24px 0 10px 0;
}

/* Text Paragraphs */
.mdpi-content-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 16px 0;
}

/* Bullet List */
.mdpi-bullet-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mdpi-bullet-list li {
    position: relative;
    padding-left: 20px;
    font-size: 13.8px;
    line-height: 1.6;
    color: #334155;
}

.mdpi-bullet-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--gold, #C9A84C);
    font-weight: bold;
    font-size: 15px;
}

/* Numbered Steps / Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin: 18px 0 24px 0;
}

.principle-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.principle-num {
    width: 26px;
    height: 26px;
    background: var(--navy, #0A1F44);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.principle-text h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #0A1F44);
}

.principle-text p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #475569 !important;
}

/* ============================================================
   TABLE STYLING
   ============================================================ */
.mdpi-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0 28px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.mdpi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
    background: #ffffff;
}

.mdpi-table th {
    background: var(--navy, #0A1F44);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 13px;
    letter-spacing: 0.02em;
    border: none;
    white-space: nowrap;
}

.mdpi-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
    line-height: 1.5;
}

.mdpi-table tr:last-child td {
    border-bottom: none;
}

.mdpi-table tr:nth-child(even) td {
    background: #fafbfd;
}

.mdpi-table tr:hover td {
    background: #f1f5f9;
}

/* Callout Box */
.mdpi-callout {
    background: #f8fafc;
    border-left: 3px solid var(--gold, #C9A84C);
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #334155;
}

.mdpi-callout.warning {
    border-left-color: #e11d48;
    background: #fff5f5;
}

.mdpi-callout strong {
    color: var(--navy, #0A1F44);
}

/* Checklist items */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 16px 0 24px 0;
}

.checklist-item {
    background: #fafbfd;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #334155;
}

.checklist-check {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(201, 168, 76, 0.15);
    color: #92650a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================================
   RIGHT FLOATING ACTION BUTTONS (Share, Contact, Download DOCX)
   ============================================================ */
.mdpi-floating-actions {
    position: sticky;
    top: calc(var(--nav-height, 72px) + 20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.floating-action-btn {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.floating-action-btn:hover {
    background: #f8fafc;
    border-color: var(--navy, #0A1F44);
    color: var(--navy, #0A1F44);
    box-shadow: 0 3px 8px rgba(10, 31, 68, 0.1);
    transform: translateY(-1px);
}

.floating-action-btn svg {
    width: 18px;
    height: 18px;
}

.floating-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy, #0A1F44);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 500;
    padding: 5px 9px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.floating-action-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Toast message for link copied */
#toast-notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--navy, #0A1F44);
    color: #ffffff;
    border-left: 3px solid var(--gold, #C9A84C);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

#toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1080px) {
    .mdpi-guidelines-layout {
        grid-template-columns: 240px 1fr;
    }

    .mdpi-floating-actions {
        display: none;
    }
}

@media (max-width: 860px) {
    .mdpi-guidelines-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mdpi-guidelines-sidebar {
        position: static;
        max-height: none;
    }

    .mdpi-content-card {
        padding: 28px 24px;
    }

    .mdpi-doc-title {
        font-size: 24px;
    }
}
