/* ================================================================
   EDUCATION UPDATES — POST META REORDER CSS
   File: inc/post-meta-reorder/post-meta-reorder.css

   This file is AUTO-LOADED by post-meta-reorder.php on single posts.
   You do NOT need to paste this into Additional CSS.

   WHAT IT DOES:
   1. Hides original category/tags (entry-footer) on single posts
   2. Hides original post navigation (post-navigation) on single posts
   3. Styles the new .eu-post-meta-section injected by PHP
================================================================ */


/* ══════════════════════════════════════════════════════════════
   PART 1 — HIDE ORIGINALS FROM DEFAULT POSITIONS
══════════════════════════════════════════════════════════════ */

/* Hide the default entry-footer (category + tags) on single posts */
.single .entry-footer,
.single-post .entry-footer {
display: none !important;
}

/* Hide the default post navigation on single posts */
.single .post-navigation,
.single-post .post-navigation,
.single .nav-links,
.single-post .nav-links {
display: none !important;
}


/* ══════════════════════════════════════════════════════════════
   PART 2 — NEW POST META SECTION STYLES
══════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ─────────────────────────────────────────── */
.eu-post-meta-section {
    margin: 0 0 0;    /* sits directly under Social Share (which has its own margin-bottom) */
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Figtree', sans-serif;
}


/* ── TAXONOMY CARD (Category + Tags) ──────────────────────── */

.eu-pms-taxonomy {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 3px 16px rgba(37, 99, 235, 0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Each row: label + pills */
.eu-pms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

/* "Category" / "Tags" label */
.eu-pms-row-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding-top: 3px;
    min-width: 80px;
}

.eu-pms-row-label i {
    font-size: 0.7rem;
    color: #2563eb;
}

/* Pills wrapper */
.eu-pms-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

/* Category pill */
.eu-pms-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: filter 0.2s ease, transform 0.2s ease;
    -webkit-text-fill-color: currentColor;
}

.eu-pms-pill:hover {
    filter: brightness(0.88);
    transform: translateY(-1px);
}

/* Tag pill — purple tone */
.eu-pms-pill--tag {
    background: #ede9fe;
    color: #5b21b6;
}

.eu-pms-pill--tag:hover {
    background: #7c3aed;
    color: #fff;
    -webkit-text-fill-color: #fff;
    filter: none;
}


/* ── NAVIGATION CARD (Prev / Next) ────────────────────────── */

.eu-pms-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Individual nav card */
.eu-pms-nav-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(37, 99, 235, 0.07);
    text-decoration: none;
    color: #1e2235;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    overflow: hidden;
    min-height: 68px;
}

.eu-pms-nav-card--empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.eu-pms-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, #f0f4ff, #f5f3ff);
    border-color: #c7d2fe;
    color: #1e2235;
}

/* Thumbnail in nav card */
.eu-pms-nav-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
}

.eu-pms-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Text body in nav card */
.eu-pms-nav-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eu-pms-nav-body--right {
    text-align: right;
}

/* Direction label (← Previous Post) */
.eu-pms-nav-dir {
    font-size: 0.68rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Syne', sans-serif;
}

.eu-pms-nav-body--right .eu-pms-nav-dir {
    justify-content: flex-end;
}

/* Post title preview */
.eu-pms-nav-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e2235;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Figtree', sans-serif;
}

/* Next card: thumbnail on the right */
.eu-pms-nav-card--next {
    flex-direction: row-reverse;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {

    /* Stack nav cards */
    .eu-pms-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .eu-pms-nav-card--empty {
        display: none; /* hide placeholder cell on mobile */
    }

    /* Next card: restore left-to-right on mobile */
    .eu-pms-nav-card--next {
        flex-direction: row;
    }

    .eu-pms-nav-body--right {
        text-align: left;
    }

    .eu-pms-nav-body--right .eu-pms-nav-dir {
        justify-content: flex-start;
    }

    /* Tighten taxonomy card */
    .eu-pms-taxonomy {
        padding: 14px 16px;
        gap: 10px;
    }

    .eu-pms-row {
        flex-direction: column;
        gap: 6px;
    }

    .eu-pms-row-label {
        min-width: auto;
    }
}
