/* ==========================================================================
 * Mazura Theme — Main Stylesheet
 * shadcn/ui-inspired Modern Academic Portal for OJS 3.5+
 * Author: Antigravity for Mazura
 * ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES — shadcn/ui token system
────────────────────────────────────────────────────────────────────────── */
:root {
    /* Radius */
    --mz-radius:     0.5rem;
    --mz-radius-sm:  0.3rem;
    --mz-radius-md:  0.6rem;
    --mz-radius-lg:  0.75rem;
    --mz-radius-xl:  1rem;
    --mz-radius-2xl: 1.25rem;
    --mz-radius-full: 9999px;

    /* Spacing scale */
    --mz-space-1:  0.25rem;
    --mz-space-2:  0.5rem;
    --mz-space-3:  0.75rem;
    --mz-space-4:  1rem;
    --mz-space-5:  1.25rem;
    --mz-space-6:  1.5rem;
    --mz-space-8:  2rem;
    --mz-space-10: 2.5rem;
    --mz-space-12: 3rem;
    --mz-space-16: 4rem;
    --mz-space-20: 5rem;
    --mz-space-24: 6rem;

    /* Fonts */
    --mz-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mz-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* shadcn/ui Light Mode Colors */
    --mz-bg:             hsl(210 17% 98%);
    --mz-fg:             hsl(240 10% 3.9%);
    --mz-card:           hsl(0 0% 100%);
    --mz-card-fg:        hsl(240 10% 3.9%);
    --mz-popover:        hsl(0 0% 100%);
    --mz-popover-fg:     hsl(240 10% 3.9%);
    --mz-primary:        hsl(240 5.9% 10%);
    --mz-primary-fg:     hsl(0 0% 98%);
    --mz-secondary:      hsl(240 4.8% 95.9%);
    --mz-secondary-fg:   hsl(240 5.9% 10%);
    --mz-muted:          hsl(240 4.8% 95.9%);
    --mz-muted-fg:       hsl(240 3.8% 46.1%);
    --mz-accent:         hsl(240 4.8% 95.9%);
    --mz-accent-fg:      hsl(240 5.9% 10%);
    --mz-border:         hsl(240 5.9% 90%);
    --mz-input:          hsl(240 5.9% 90%);
    --mz-ring:           hsl(240 5.9% 10%);

    /* Semantic */
    --mz-destructive:    hsl(0 84.2% 60.2%);
    --mz-success:        hsl(142 76% 36%);
    --mz-warning:        hsl(38 92% 50%);

    /* Header */
    --mz-header-h: 3.75rem;

    /* Shadow */
    --mz-shadow-sm:  0 1px 2px rgba(0,0,0,.05);
    --mz-shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    --mz-shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --mz-shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --mz-shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);

    /* Hero accent (default: zinc-based dark) */
    --mz-hero-from: hsl(240 5% 6%);
    --mz-hero-to:   hsl(240 6% 10%);
    --mz-hero-accent: hsl(240 5% 14%);
}

/* Accent palettes */
[data-accent="blue"] {
    --mz-primary:    hsl(221 83% 53%);
    --mz-primary-fg: #fff;
    --mz-ring:       hsl(221 83% 53%);
    --mz-hero-from:  hsl(221 80% 12%);
    --mz-hero-to:    hsl(221 75% 18%);
}
[data-accent="violet"] {
    --mz-primary:    hsl(262 83% 58%);
    --mz-primary-fg: #fff;
    --mz-ring:       hsl(262 83% 58%);
    --mz-hero-from:  hsl(262 60% 12%);
    --mz-hero-to:    hsl(262 55% 18%);
}
[data-accent="rose"] {
    --mz-primary:    hsl(346 77% 50%);
    --mz-primary-fg: #fff;
    --mz-ring:       hsl(346 77% 50%);
    --mz-hero-from:  hsl(346 60% 12%);
    --mz-hero-to:    hsl(346 55% 18%);
}
[data-accent="orange"] {
    --mz-primary:    hsl(24 95% 53%);
    --mz-primary-fg: #fff;
    --mz-ring:       hsl(24 95% 53%);
    --mz-hero-from:  hsl(24 60% 12%);
    --mz-hero-to:    hsl(24 55% 18%);
}
[data-accent="green"] {
    --mz-primary:    hsl(142 72% 36%);
    --mz-primary-fg: #fff;
    --mz-ring:       hsl(142 72% 36%);
    --mz-hero-from:  hsl(142 50% 10%);
    --mz-hero-to:    hsl(142 45% 15%);
}

/* Dark mode */
[data-theme="dark"] {
    --mz-bg:           hsl(240 10% 3.9%);
    --mz-fg:           hsl(0 0% 98%);
    --mz-card:         hsl(240 10% 3.9%);
    --mz-card-fg:      hsl(0 0% 98%);
    --mz-secondary:    hsl(240 3.7% 15.9%);
    --mz-secondary-fg: hsl(0 0% 98%);
    --mz-muted:        hsl(240 3.7% 15.9%);
    --mz-muted-fg:     hsl(240 5% 64.9%);
    --mz-accent:       hsl(240 3.7% 15.9%);
    --mz-accent-fg:    hsl(0 0% 98%);
    --mz-border:       hsl(240 3.7% 15.9%);
    --mz-input:        hsl(240 3.7% 15.9%);
}

/* ──────────────────────────────────────────────────────────────────────────
   2. CSS RESET & BASE
────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body, .mz-body {
    margin: 0;
    font-family: var(--mz-font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--mz-fg);
    background: var(--mz-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--mz-fg);
}

p { margin: 0 0 1rem; color: var(--mz-muted-fg); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ──────────────────────────────────────────────────────────────────────────
   3. LAYOUT PRIMITIVES
────────────────────────────────────────────────────────────────────────── */
.mz-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--mz-space-6);
}

/* Portal main — full width, no padding constraints */
.mz-portal-main {
    width: 100%;
    min-height: calc(100vh - var(--mz-header-h));
}

/* Journal / inner pages layout */
.mz-main {
    padding: var(--mz-space-8) 0;
    min-height: calc(100vh - var(--mz-header-h));
}

.mz-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mz-space-8);
}

.mz-layout__sidebar {
    display: none;
}

@media (min-width: 64rem) {
    .mz-layout {
        grid-template-columns: 1fr 280px;
    }
    .mz-layout__sidebar {
        display: block;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   4. HEADER
────────────────────────────────────────────────────────────────────────── */
.mz-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--mz-header-h);
    background: var(--mz-bg);
    border-bottom: 1px solid var(--mz-border);
    box-shadow: var(--mz-shadow-sm);
    transition: background 200ms, border-color 200ms;
}

.mz-header__inner {
    display: flex;
    align-items: center;
    gap: var(--mz-space-3);
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--mz-space-6);
}

/* Green gradient for header requested by user */
.mz-header--gradient {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-bottom: none;
    color: #ffffff;
}

.mz-header--gradient .mz-logo__text,
.mz-header--gradient .mz-nav__list a,
.mz-header--gradient .mz-user-nav__list a,
.mz-header--gradient .mz-icon-btn,
.mz-header--gradient .mz-header__hamburger {
    color: rgba(255, 255, 255, 0.9);
}

.mz-header--gradient .mz-nav__list a:hover,
.mz-header--gradient .mz-user-nav__list a:hover,
.mz-header--gradient .mz-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* Logo */
.mz-logo {
    display: flex;
    align-items: center;
    gap: var(--mz-space-2);
    text-decoration: none;
    flex-shrink: 0;
}

.mz-logo__img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.mz-logo__text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mz-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Desktop nav */
.mz-nav {
    display: none;
    flex: 1;
    padding-left: var(--mz-space-6);
}

@media (min-width: 64rem) {
    .mz-nav { display: flex; }
}

/* OJS injects <ul class="mz-nav__list"> */
.mz-nav__list {
    display: flex;
    align-items: center;
    gap: var(--mz-space-1);
    font-size: 0.875rem;
}

.mz-nav__list li { list-style: none; }

.mz-nav__list a {
    display: inline-flex;
    align-items: center;
    padding: var(--mz-space-2) var(--mz-space-3);
    color: var(--mz-muted-fg);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--mz-radius-md);
    transition: color 150ms, background 150ms;
}

.mz-nav__list a:hover {
    color: var(--mz-fg);
    background: var(--mz-accent);
}

/* Right side */
.mz-header__actions {
    display: flex;
    align-items: center;
    gap: var(--mz-space-2);
    margin-left: auto;
    flex-shrink: 0;
}

.mz-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--mz-radius-md);
    color: var(--mz-muted-fg);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 150ms;
    text-decoration: none;
    padding: 0;
}

.mz-icon-btn:hover {
    color: var(--mz-fg);
    background: var(--mz-accent);
    border-color: var(--mz-border);
}

/* Hamburger — hidden on desktop */
.mz-header__hamburger {
    display: flex;
}

@media (min-width: 64rem) {
    .mz-header__hamburger { display: none; }
}

/* User nav */
.mz-user-nav {}
.mz-user-nav__list {
    display: flex;
    align-items: center;
    gap: var(--mz-space-1);
    font-size: 0.8rem;
}
.mz-user-nav__list li { list-style: none; }
.mz-user-nav__list a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem var(--mz-space-3);
    color: var(--mz-muted-fg);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--mz-radius-md);
    transition: all 150ms;
}
.mz-user-nav__list a:hover {
    color: var(--mz-fg);
    background: var(--mz-accent);
}

/* Dark mode toggle icons */
.mz-theme-toggle__sun { display: block; }
.mz-theme-toggle__moon { display: none; }
[data-theme="dark"] .mz-theme-toggle__sun { display: none; }
[data-theme="dark"] .mz-theme-toggle__moon { display: block; }

.mz-hide-mobile {
    display: none;
}
@media (min-width: 48rem) {
    .mz-hide-mobile { display: flex; }
}

/* ──────────────────────────────────────────────────────────────────────────
   5. MOBILE MENU
────────────────────────────────────────────────────────────────────────── */
.mz-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
}

.mz-mobile-menu[hidden] {
    display: none;
}

.mz-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
}

.mz-mobile-menu__panel {
    position: relative;
    z-index: 1;
    width: min(20rem, 88vw);
    background: var(--mz-bg);
    border-right: 1px solid var(--mz-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: mzSlideIn 200ms ease;
}

@keyframes mzSlideIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.mz-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--mz-space-4) var(--mz-space-6);
    border-bottom: 1px solid var(--mz-border);
}

.mz-mobile-menu__body {
    padding: var(--mz-space-4) var(--mz-space-6);
    flex: 1;
}

.mz-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--mz-space-1);
}
.mz-mobile-nav li { list-style: none; }
.mz-mobile-nav a {
    display: block;
    padding: var(--mz-space-2) var(--mz-space-3);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mz-fg);
    text-decoration: none;
    border-radius: var(--mz-radius-md);
    transition: background 150ms;
}
.mz-mobile-nav a:hover {
    background: var(--mz-accent);
}

.mz-divider {
    border: none;
    border-top: 1px solid var(--mz-border);
    margin: var(--mz-space-4) 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   6. BUTTONS
────────────────────────────────────────────────────────────────────────── */
.mz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--mz-font);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    border-radius: var(--mz-radius-md);
    cursor: pointer;
    transition: all 200ms cubic-bezier(.16,1,.3,1);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    line-height: 1.25;
}

.mz-btn--primary {
    background: var(--mz-primary);
    color: var(--mz-primary-fg);
    border-color: var(--mz-primary);
}
.mz-btn--primary:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: var(--mz-shadow-md);
    color: var(--mz-primary-fg);
}

.mz-btn--secondary {
    background: var(--mz-secondary);
    color: var(--mz-secondary-fg);
    border-color: var(--mz-border);
}
.mz-btn--secondary:hover {
    background: var(--mz-muted);
    transform: translateY(-1px);
}

.mz-btn--outline {
    background: transparent;
    color: var(--mz-fg);
    border-color: var(--mz-border);
}
.mz-btn--outline:hover {
    background: var(--mz-accent);
    transform: translateY(-1px);
}

.mz-btn--ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.mz-btn--ghost:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    border-color: rgba(255,255,255,.5);
}

.mz-btn--white {
    background: #fff;
    color: var(--mz-primary);
    border-color: transparent;
}
.mz-btn--white:hover {
    background: #f1f5f9;
    color: var(--mz-primary);
    transform: translateY(-1px);
    box-shadow: var(--mz-shadow-md);
}

.mz-btn--sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
}

.mz-btn--lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   7. BADGES
────────────────────────────────────────────────────────────────────────── */
.mz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: var(--mz-radius-full);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.mz-badge__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: mzPulse 1.5s ease-in-out infinite;
}
@keyframes mzPulse { 0%,100%{opacity:1}50%{opacity:.5} }

.mz-badge--s1  { background: #fef3c7; color: #92400e; }
.mz-badge--s2  { background: #dcfce7; color: #14532d; }
.mz-badge--s3  { background: #dbeafe; color: #1e3a8a; }
.mz-badge--s4  { background: #f3e8ff; color: #581c87; }
.mz-badge--doaj { background: #e0f2fe; color: #075985; }
.mz-badge--oa   { background: #ecfdf5; color: #065f46; }
.mz-badge--live { background: #dcfce7; color: #15803d; }
.mz-badge--neutral { background: var(--mz-muted); color: var(--mz-muted-fg); }

.mz-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 0.3rem 0.9rem;
    border-radius: var(--mz-radius-full);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.mz-pill {
    display: inline-flex;
    align-items: center;
    background: var(--mz-muted);
    color: var(--mz-muted-fg);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--mz-radius-full);
    border: 1px solid var(--mz-border);
}

/* ──────────────────────────────────────────────────────────────────────────
   8. HERO
────────────────────────────────────────────────────────────────────────── */
.mz-hero {
    position: relative;
    min-height: min(85vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--mz-hero-from);
}

/* Grid background pattern */
.mz-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Glow orbs */
.mz-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 50%, rgba(255,255,255,.05) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 85% 20%, rgba(255,255,255,.04) 0%, transparent 60%),
        linear-gradient(180deg, var(--mz-hero-from) 0%, var(--mz-hero-to) 100%);
    pointer-events: none;
}

.mz-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: var(--mz-space-20) var(--mz-space-6);
    text-align: center;
}

.mz-hero__title {
    font-size: clamp(2rem, 5vw + 0.5rem, 4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.mz-hero__tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* Search */
.mz-search { max-width: 640px; margin: 0 auto 2rem; }

.mz-search__inner {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--mz-radius-full);
    padding: 0.3rem 0.3rem 0.3rem 1.1rem;
    box-shadow: var(--mz-shadow-xl);
    gap: 0.5rem;
    transition: box-shadow 200ms;
}
.mz-search__inner:focus-within {
    box-shadow: var(--mz-shadow-xl), 0 0 0 3px rgba(255,255,255,.3);
}

.mz-search__icon { flex-shrink: 0; color: #94a3b8; }

.mz-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--mz-font);
    font-size: 0.9rem;
    color: #1e293b;
    min-width: 0;
}
.mz-search__input::placeholder { color: #94a3b8; }

.mz-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* ──────────────────────────────────────────────────────────────────────────
   9. STATS
────────────────────────────────────────────────────────────────────────── */
.mz-stats {
    background: var(--mz-card);
    border-bottom: 1px solid var(--mz-border);
    padding: var(--mz-space-10) 0;
}

.mz-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--mz-border);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-xl);
    overflow: hidden;
    box-shadow: var(--mz-shadow);
}

@media (min-width: 48rem) { .mz-stats__grid { grid-template-columns: repeat(4, 1fr); } }

.mz-stat-card {
    background: var(--mz-card);
    padding: var(--mz-space-6) var(--mz-space-5);
    display: flex;
    align-items: center;
    gap: var(--mz-space-4);
    transition: background 150ms;
}
.mz-stat-card:hover { background: var(--mz-muted); }

.mz-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--mz-radius-md);
    background: var(--mz-secondary);
    color: var(--mz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mz-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mz-stat-card__value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--mz-fg);
    letter-spacing: -0.03em;
    line-height: 1;
}

.mz-stat-card__label {
    font-size: 0.78rem;
    color: var(--mz-muted-fg);
    font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────────────────
   10. SECTION WRAPPER
────────────────────────────────────────────────────────────────────────── */
.mz-section {
    padding: var(--mz-space-20) 0;
    background: var(--mz-bg);
}

.mz-section--alt {
    background: var(--mz-muted);
}

.mz-section--dark {
    background: var(--mz-hero-from);
    position: relative;
    overflow: hidden;
}
.mz-section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.mz-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mz-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mz-primary);
    margin-bottom: 0.35rem;
    display: block;
}

.mz-section__title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--mz-fg);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* ──────────────────────────────────────────────────────────────────────────
   11. FILTERS
────────────────────────────────────────────────────────────────────────── */
.mz-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    background: var(--mz-card);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-xl);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--mz-shadow-sm);
}

.mz-filters__selects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mz-filters__search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--mz-muted);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-md);
    padding: 0.4rem 0.75rem;
}

.mz-select {
    font-family: var(--mz-font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mz-fg);
    background: var(--mz-card);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-md);
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    transition: border-color 150ms;
}
.mz-select:focus {
    border-color: var(--mz-ring);
    box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}

.mz-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--mz-font);
    font-size: 0.82rem;
    color: var(--mz-fg);
    min-width: 0;
}
.mz-input::placeholder { color: var(--mz-muted-fg); }

/* ──────────────────────────────────────────────────────────────────────────
   12. JOURNAL CARD GRID
────────────────────────────────────────────────────────────────────────── */
.mz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 36rem) { .mz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .mz-grid { grid-template-columns: repeat(3, 1fr); } }

.mz-card {
    display: flex;
    flex-direction: column;
    background: var(--mz-card);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-xl);
    overflow: hidden;
    box-shadow: var(--mz-shadow-sm);
    transition: transform 250ms cubic-bezier(.16,1,.3,1),
                box-shadow 250ms cubic-bezier(.16,1,.3,1),
                border-color 250ms;
}
.mz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mz-shadow-lg);
    border-color: var(--mz-ring);
}

/* Cover */
.mz-card__cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--mz-secondary);
    flex-shrink: 0;
}
.mz-card__cover > a {
    display: block;
    width: 100%;
    height: 100%;
}
.mz-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}
.mz-card:hover .mz-card__cover img { transform: scale(1.06); }

.mz-card__cover-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mz-muted-fg);
    opacity: .5;
}

.mz-card__badges {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

/* Body */
.mz-card__body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mz-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mz-fg);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}
.mz-card__title a { color: inherit; text-decoration: none; }
.mz-card__title a:hover { color: var(--mz-primary); }

.mz-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    margin-bottom: 0.5rem;
}
.mz-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--mz-muted-fg);
    font-weight: 500;
}

.mz-card__desc {
    font-size: 0.8rem;
    color: var(--mz-muted-fg);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.mz-card__footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--mz-border);
}

/* Empty state */
.mz-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--mz-muted-fg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;

    svg { opacity: .3; }
    p { margin: 0; font-size: 0.95rem; }
}

/* ──────────────────────────────────────────────────────────────────────────
   13. CALL FOR PAPERS
────────────────────────────────────────────────────────────────────────── */
.mz-cfp-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.mz-cfp-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--mz-radius-xl);
    padding: 1.25rem 1.75rem;
    transition: all 200ms ease;
}
.mz-cfp-item:hover {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-2px);
}
@media (min-width: 48rem) {
    .mz-cfp-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.mz-cfp-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mz-cfp-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.mz-cfp-item__sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,.55);
}

/* ──────────────────────────────────────────────────────────────────────────
   14. PUBLISHER PROFILE + AUTHOR GUIDELINES
────────────────────────────────────────────────────────────────────────── */
.mz-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mz-space-16);
}
@media (min-width: 56rem) {
    .mz-about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.mz-about-text {
    font-size: 0.95rem;
    color: var(--mz-muted-fg);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.mz-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}
.mz-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--mz-muted-fg);
}
.mz-checklist li svg { flex-shrink: 0; color: var(--mz-success); }

/* Guide list */
.mz-guide-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--mz-space-4);
}

.mz-guide-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--mz-card);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-lg);
    text-decoration: none;
    transition: all 150ms ease;
}
.mz-guide-item:hover {
    border-color: var(--mz-ring);
    transform: translateX(5px);
    box-shadow: var(--mz-shadow-sm);
}
.mz-guide-item:hover .mz-guide-item__icon {
    background: var(--mz-primary);
    color: var(--mz-primary-fg);
}
.mz-guide-item:hover .mz-guide-item__arrow {
    color: var(--mz-primary);
    transform: translateX(3px);
}

.mz-guide-item__icon {
    width: 38px;
    height: 38px;
    border-radius: var(--mz-radius-md);
    background: var(--mz-secondary);
    color: var(--mz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 150ms ease;
}

.mz-guide-item__text {
    flex: 1;
    min-width: 0;
}
.mz-guide-item__text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mz-fg);
    margin-bottom: 2px;
}
.mz-guide-item__text span {
    font-size: 0.75rem;
    color: var(--mz-muted-fg);
}

.mz-guide-item__arrow {
    flex-shrink: 0;
    color: var(--mz-muted-fg);
    transition: all 150ms ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   15. INDEXING LOGOS
────────────────────────────────────────────────────────────────────────── */
.mz-indexing {
    background: var(--mz-muted);
    border-top: 1px solid var(--mz-border);
    padding: 3rem 0;
}

.mz-indexing__label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mz-muted-fg);
    margin-bottom: 1.75rem;
}

.mz-indexing__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2.5rem;
}

.mz-index-logo {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--mz-fg);
    text-decoration: none;
    filter: grayscale(100%) opacity(.3);
    transition: all 250ms ease;
}
.mz-index-logo:hover {
    filter: grayscale(0%) opacity(1);
    color: var(--mz-primary);
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────────────────
   16. FOOTER
────────────────────────────────────────────────────────────────────────── */
.mz-footer {
    background: var(--mz-card);
    border-top: 1px solid var(--mz-border);
    padding: var(--mz-space-10) 0;
}

.mz-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mz-space-8);
}
@media (min-width: 48rem) {
    .mz-footer__inner {
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
    }
}

.mz-footer__logo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mz-fg);
    display: block;
    margin-bottom: 0.35rem;
}

.mz-footer__tagline {
    font-size: 0.78rem;
    color: var(--mz-muted-fg);
    margin: 0;
}

.mz-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.mz-footer__nav li { list-style: none; }
.mz-footer__nav a {
    font-size: 0.82rem;
    color: var(--mz-muted-fg);
    text-decoration: none;
    transition: color 150ms;
}
.mz-footer__nav a:hover { color: var(--mz-fg); }

.mz-footer__meta {
    text-align: right;
}

.mz-footer__custom {
    font-size: 0.82rem;
    color: var(--mz-muted-fg);
    margin-bottom: 0.5rem;
}

.mz-footer__copy {
    font-size: 0.78rem;
    color: var(--mz-muted-fg);
    margin: 0;
}
.mz-footer__copy a {
    color: var(--mz-muted-fg);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mz-footer__copy a:hover { color: var(--mz-fg); }

/* ──────────────────────────────────────────────────────────────────────────
   17. JOURNAL HERO (single-journal homepage)
────────────────────────────────────────────────────────────────────────── */
.mz-journal-hero {
    position: relative;
    overflow: hidden;
    background: var(--mz-hero-from);
    padding: 0;
}
.mz-journal-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--mz-hero-from) 0%, var(--mz-hero-to) 100%);
}
.mz-journal-hero--image .mz-journal-hero__bg {
    background-size: cover;
    background-position: center;
}
.mz-journal-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.mz-journal-hero__content {
    position: relative;
    z-index: 1;
    padding: var(--mz-space-16) var(--mz-space-6);
}
.mz-journal-hero__inner {
    max-width: 700px;
}
.mz-journal-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}
.mz-journal-hero__desc {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}
.mz-journal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   18. AUTH PAGES (Login & Register)
────────────────────────────────────────────────────────────────────────── */
/* Managed by Tailwind CSS in headerHead.tpl */

/* ──────────────────────────────────────────────────────────────────────────
   19. SIDEBAR & BLOCKS
────────────────────────────────────────────────────────────────────────── */
.mz-sidebar-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--mz-space-6);
}

.pkp_block {
    background: var(--mz-card);
    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius-lg);
    padding: var(--mz-space-5);
    box-shadow: var(--mz-shadow-sm);
}

.pkp_block .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mz-fg);
    margin-bottom: var(--mz-space-3);
    padding-bottom: var(--mz-space-2);
    border-bottom: 1px solid var(--mz-border);
}

.pkp_block .content {
    font-size: 0.875rem;
    color: var(--mz-muted-fg);
    line-height: 1.6;
}
.pkp_block .content ul { padding-left: 1rem; }

/* ──────────────────────────────────────────────────────────────────────────
   20. UTILITIES
────────────────────────────────────────────────────────────────────────── */
.mz-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Disable Dropdowns per User Request */
.pkp_navigation_primary ul,
.pkp_navigation_user ul,
.mz-nav__list ul,
.mz-user-nav__list ul {
    display: none !important;
}

/* Fix OJS navigation menu injected classes */
.pkp_navigation_primary,
.pkp_navigation_user {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.pkp_navigation_primary li,
.pkp_navigation_user li {
    list-style: none;
}

.pkp_navigation_primary a,
.pkp_navigation_user a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    color: var(--mz-muted-fg);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--mz-radius-md);
    transition: all 150ms;
}
.pkp_navigation_primary a:hover,
.pkp_navigation_user a:hover {
    color: var(--mz-fg);
    background: var(--mz-accent);
}

/* Responsive helper */
@media (max-width: 47.99rem) {
    .mz-hide-mobile { display: none !important; }
}

/* Enable dropdowns on hover & premium styling */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 12rem;
    padding: 0.35rem;
    margin-top: 0.25rem;
    background-color: var(--mz-popover, #ffffff);
    color: var(--mz-popover-fg, #1F2328);
    border: 1px solid var(--mz-border, #D0D7DE);
    border-radius: var(--mz-radius-md, 6px);
    box-shadow: var(--mz-shadow-md, 0 4px 6px -1px rgba(0,0,0,.1));
    list-style: none;
    text-align: left;
}

/* Support dark/contrast theme modes */
[data-theme="dark"] .dropdown-menu,
.dark .dropdown-menu {
    background-color: var(--mz-popover, #161b22) !important;
    color: var(--mz-popover-fg, #c9d1d9) !important;
    border-color: var(--mz-border, #30363d) !important;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-menu-left {
    left: 0;
    right: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    clear: both;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--mz-popover-fg, #1F2328) !important;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: calc(var(--mz-radius-md, 6px) - 2px);
    transition: background-color 150ms, color 150ms;
    cursor: pointer;
}

[data-theme="dark"] .dropdown-item,
.dark .dropdown-item {
    color: var(--mz-popover-fg, #c9d1d9) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--mz-accent-fg, #1F2328) !important;
    background-color: var(--mz-accent, #F6F8FA) !important;
    text-decoration: none;
    outline: none;
}

[data-theme="dark"] .dropdown-item:hover,
.dark .dropdown-item:hover {
    color: var(--mz-accent-fg, #ffffff) !important;
    background-color: var(--mz-accent, #21262d) !important;
}

/* Enable dropdowns on hover */
.dropdown:hover .dropdown-menu,
.dropdown:hover > .dropdown-menu,
.group:hover .dropdown-menu,
#userNav li:hover .dropdown-menu,
#languageLargeNav:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Badge styles like healthSciences */
.badge {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.badge-light {
    background-color: #1cb8c9 !important; /* Premium cyan background */
    color: #0d1117 !important; /* Dark text for contrast */
}
