/* ═══════════════════════════════════════════════════════════════════════════
   OJS Journal Display — Frontend Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.ojd-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
    line-height: 1.7;
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.ojd-section-heading {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0d47a1 !important;
    margin: 36px 0 24px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid #0d47a1 !important;
}

/* ── Issue header ────────────────────────────────────────────────────────── */
.ojd-issue-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.ojd-issue-cover {
    width: 180px;
    border-radius: 8px;
    border: 1px solid #ddd;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

.ojd-issue-meta-block {
    flex: 1;
    min-width: 260px;
}

.ojd-issue-identification {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    color: #111 !important;
}

.ojd-issue-date {
    font-size: 14px;
    color: #888;
    margin: 0 0 12px;
}

.ojd-issue-description {
    font-size: 15px;
    color: #444;
}

/* ── Sub-headings ────────────────────────────────────────────────────────── */
.ojd-articles-heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 14px !important;
    border-left: 4px solid #0d47a1;
    padding-left: 12px;
}

.ojd-archive-articles-label {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 18px 0 10px !important;
}

/* ── Full-issue galley row ───────────────────────────────────────────────── */
.ojd-full-issue-label {
    margin: 0 0 8px;
}

.ojd-full-issue-galleys {
    margin-bottom: 24px;
}

/* ── Article list ────────────────────────────────────────────────────────── */
.ojd-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Article card (home / current issue) ─────────────────────────────────── */
.ojd-article-card {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: box-shadow .2s;
}

.ojd-article-card:hover {
    box-shadow: 0 4px 16px rgba(13, 71, 161, .12);
}

.ojd-article-thumb {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.ojd-article-card-body {
    flex: 1;
}

.ojd-article-card-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
}

.ojd-article-card-title a {
    color: #0d47a1;
    text-decoration: none;
}

.ojd-article-card-title a:hover {
    text-decoration: underline;
}

.ojd-article-authors {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* ── Article row (archive / compact) ────────────────────────────────────── */
.ojd-article-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.ojd-article-row:last-child {
    border-bottom: none;
}

.ojd-article-row-body {
    flex: 1;
}

.ojd-article-link a {
    font-size: 16px;
    font-weight: 600;
    color: #0d47a1;
    text-decoration: none;
    line-height: 1.4;
}

.ojd-article-link a:hover {
    text-decoration: underline;
}

/* ── Galley download buttons ─────────────────────────────────────────────── */
.ojd-article-galleys {
    margin-top: 8px;
}

.ojd-galley-btn {
    display: inline-block;
    background: #e8f0fe;
    color: #0d47a1;
    border: 1px solid #b3c7f0;
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    margin-right: 8px;
    margin-bottom: 4px;
    transition: background .2s, color .2s;
}

.ojd-galley-btn:hover {
    background: #0d47a1;
    color: #fff !important;
}

/* ── Archive issue block ─────────────────────────────────────────────────── */
.ojd-archive-issue-block {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.ojd-archive-issue-block .ojd-issue-cover {
    width: 130px;
}

.ojd-archive-issue-block .ojd-issue-identification {
    font-size: 19px !important;
}

/* ── "View All Issues" button ────────────────────────────────────────────── */
.ojd-view-all-wrap {
    text-align: center;
    margin-top: 36px;
}

.ojd-btn-view-all {
    display: inline-block;
    background: #0d47a1;
    color: #fff !important;
    padding: 13px 32px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s;
}

.ojd-btn-view-all:hover {
    background: #1565c0;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.ojd-notice {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.ojd-notice-warn {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 10px 14px;
    border-radius: 4px;
    font-style: normal;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .ojd-issue-header {
        flex-direction: column;
    }

    .ojd-issue-cover {
        width: 100%;
        max-width: 240px;
    }

    .ojd-article-card {
        flex-direction: column;
    }

    .ojd-archive-issue-block {
        padding: 16px;
    }
}
