/* ═══════════════════════════════════════════════════════════════
   Lambe Journal — Global Academic Theme
   A premium, modern academic journal design
   ═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts Import ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Custom Properties ────────────────────────────────── */
:root {
    /* Primary palette — Vibrant University Green */
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #064e3b;
    --primary-900: #022c22;

    /* Accent — Gold/Yellow for contrast */
    --accent-50: #fffbeb;
    --accent-100: #fef3c7;
    --accent-200: #fde68a;
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-700: #b45309;

    /* Success */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    /* Warning */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    /* Danger */
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    /* Info */
    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;

    /* Neutrals - True Black & Grays */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #09090b;

    /* Surface & Background */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f4f5;
    --surface: #ffffff;
    --surface-hover: #fafafa;

    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(9, 9, 11, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* Text */
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --text-inverse: #ffffff;

    /* Borders */
    --border-light: #e4e4e7;
    --border-medium: #d4d4d8;
    --border-dark: #a1a1aa;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif 4', 'Playfair Display', Georgia, serif;
    --font-display: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Sizing */
    --max-width: 1280px;
    --header-height: 76px;
    --sidebar-width: 280px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
label,
li,
a,
button,
input,
textarea,
select,
strong,
em {
    overflow-wrap: anywhere;
    word-break: break-word;
}

a:hover {
    color: var(--primary-700);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Typography ───────────────────────────────────────────── */
h1,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: normal;
}

h1 {
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    line-height: 1.35;
}

h4 {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    line-height: 1.4;
}

h5 {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: 1.4;
}

h6 {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.text-serif {
    font-family: var(--font-serif);
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary-color {
    color: var(--primary-500);
}

.text-success {
    color: var(--success-600);
}

.text-danger {
    color: var(--danger-600);
}

/* ─── Layout Containers ────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

.container-narrow {
    max-width: 720px;
}

.container-wide {
    max-width: 1440px;
}

/* ─── Site Header ──────────────────────────────────────────── */
.site-header {
    background: rgba(6, 78, 59, 0.95);
    /* primary-800 with opacity */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-inverse);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    transition: all var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-inverse);
}

.site-logo-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-200) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .site-logo {
        min-width: 0;
        max-width: calc(100% - 60px);
    }

    .site-logo-text {
        font-size: 1.2rem;
    }
}

/* ─── Main Navigation ─────────────────────────────────────── */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-400);
    border-radius: 1px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ─── Mobile Navigation ───────────────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .site-header {
        min-height: var(--header-height);
    }

    .header-inner {
        gap: 0.75rem;
    }

    .site-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-800);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
        box-shadow: var(--shadow-xl);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav a {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .nav-auth {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-auth .btn,
    .nav-auth form {
        width: 100%;
    }

    .nav-auth form {
        display: block;
    }
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
}

.btn:active {
    transform: scale(0.95);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    box-shadow: var(--shadow-glow);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-700));
    color: var(--text-inverse);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-600), var(--success-700));
    color: var(--text-inverse);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-700));
    color: var(--text-inverse);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-600), var(--danger-700));
    color: var(--text-inverse);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-500);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.625rem;
}

/* ─── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
    transform: translateY(-4px);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--gray-50);
}

/* ─── Forms ────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.password-wrapper .form-input {
    padding-right: 40px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    z-index: 5;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: var(--danger-500);
    margin-left: 2px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    /* using primary-500 RGB */
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger-500);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger-600);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ─── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
    text-transform: capitalize;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-success {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-warning {
    background: var(--warning-100);
    color: var(--warning-600);
}

.badge-danger {
    background: var(--danger-100);
    color: var(--danger-700);
}

.badge-info {
    background: var(--info-100);
    color: var(--info-600);
}

.badge-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Status-specific badges */
.badge-draft {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-submitted {
    background: var(--info-100);
    color: var(--info-600);
}

.badge-review {
    background: var(--accent-100);
    color: var(--accent-600);
}

.badge-revision {
    background: var(--warning-100);
    color: var(--warning-600);
}

.badge-accepted {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-rejected {
    background: var(--danger-100);
    color: var(--danger-700);
}

.badge-published {
    background: var(--primary-100);
    color: var(--primary-700);
}

/* ─── Tables ───────────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--gray-50);
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--surface-hover);
}

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

/* ─── Alerts & Messages ────────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: var(--success-50);
    color: var(--success-700);
    border-color: var(--success-100);
}

.alert-danger {
    background: var(--danger-50);
    color: var(--danger-700);
    border-color: var(--danger-100);
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning-600);
    border-color: var(--warning-100);
}

.alert-info {
    background: var(--info-50);
    color: var(--info-600);
    border-color: var(--info-100);
}

/* ─── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination a {
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.pagination a:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.pagination .active {
    background: var(--primary-500);
    color: white;
    border: 1px solid var(--primary-500);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ─── Site Footer ──────────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
}

.footer-brand .site-logo-text {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    color: var(--gray-200);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Split Layout (Main + Sidebar) ───────────────────────── */
.split-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.split-main {
    flex: 1;
    min-width: 0;
}

.split-sidebar {
    flex: 0 0 300px;
    width: 300px;
}

@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
    }
    
    .split-sidebar {
        flex: none;
        width: 100%;
    }
    
    .split-sidebar .card {
        position: static !important; /* Remove sticky on mobile/tablet */
    }
}

/* ─── Indexing Grid ───────────────────────────────────────── */
.indexing-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 992px) and (min-width: 600px) {
    .indexing-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── Hero Section (Homepage) ──────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50% 50% 0 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero .tagline {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    min-width: 0;
    flex: 1 1 130px;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-400);
    display: block;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    display: block;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }

    .hero .tagline {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 1.75rem;
    }

    .hero-stats {
        gap: 1rem;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stat {
        flex-basis: calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-stat {
        flex-basis: auto;
    }
}

/* ─── Section Styling ──────────────────────────────────────── */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.section-header p.issue-description,
.issue-description {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    max-width: 850px !important;
    margin: 1.25rem auto 0 !important;
    color: var(--text-secondary) !important;
    text-align: justify !important;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-400));
    border: none;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ─── Article Cards (Homepage / Browse) ────────────────────── */
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    min-width: 0;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-card h3 {
    font-size: 1.15rem;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-card h3 a {
    color: var(--text-primary);
}

.article-card h3 a:hover {
    color: var(--primary-500);
}

.article-card .authors {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-card .abstract-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.article-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.article-card-actions .btn {
    flex: 0 1 auto;
    min-width: 0;
}

/* Horizontal card support for current issue & lists */
@media (min-width: 769px) {
    .article-card.article-card-horizontal {
        flex-direction: row;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-card.article-card-horizontal,
    .article-list .article-card {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* ─── Article Grid ─────────────────────────────────────────── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-card {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-card-meta {
        gap: 0.4rem;
    }

    .article-card-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .article-card-actions .btn {
        width: 100%;
        text-align: center;
    }

    .article-card-actions span {
        margin-left: 0 !important;
        justify-content: flex-start;
        padding-top: 0.25rem;
    }
}

/* ─── Loading & Transitions ────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── Modal ────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ─── Auth Pages ───────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card-header .site-logo-icon {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-card-header p {
    font-size: 0.9rem;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    position: relative;
    background: var(--surface);
    padding: 0 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
}

/* ─── Password Field with Eye Toggle ───────────────────────── */
.password-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.password-wrapper .form-input {
    width: 100% !important;
    padding-right: 2.75rem !important;
}

.password-toggle {
    position: absolute !important;
    right: 0.65rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.35rem !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    outline: none !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    transition: color 0.2s ease, background 0.2s ease !important;
}

.password-toggle:hover {
    color: #0d5c3a !important;
    background: rgba(13, 92, 58, 0.08) !important;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.92) !important;
}

.password-toggle svg {
    pointer-events: none !important;
    width: 20px !important;
    height: 20px !important;
}

.password-toggle .eye-open {
    display: block !important;
}

.password-toggle .eye-closed {
    display: none !important;
}

.password-toggle.is-visible .eye-open {
    display: none !important;
}

.password-toggle.is-visible .eye-closed {
    display: block !important;
}

/* ─── Utility Classes ──────────────────────────────────────── */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

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

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hidden {
    display: none;
}

/* ─── Scrollbar Styling ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ─── Notification System ──────────────────────────────────── */
.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.notification-bell:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.notification-bell svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5; /* Slightly thicker for better visibility */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.notification-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger-500);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px var(--primary-800);
    line-height: 1;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 340px;
    max-width: calc(100vw - 2rem);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    pointer-events: none;
    overflow: hidden;
    margin-top: 12px;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: var(--gray-50);
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    transform: rotate(45deg);
    z-index: -1;
}

.notification-wrapper:hover .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.notification-dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
}

.notification-dropdown-header h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: rgba(16, 185, 129, 0.04);
    border-left: 3px solid var(--primary-500);
}

.notification-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.notification-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-item:last-child {
    border-bottom: none;
}

/* ─── Editorial Board Component ────────────────────────────── */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .board-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.board-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.board-image-wrapper {
    width: 160px;
    height: 160px;
    margin: 2rem auto 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-100);
    border: 4px solid var(--primary-50);
}

.board-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.board-card:hover .board-image-wrapper img {
    transform: scale(1.05);
}

.board-info {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.board-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.board-credentials {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.board-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.board-email {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.board-email:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* ─── Anchor Target Offsets for Sticky Header ─────────────── */
#ethics,
#contact,
#guidelines,
#editorial-board,
#indexing {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}