/* ==========================================================================
   Tourist Destination (TD) - Academic Publishing Design System
   Modern, Clean, High-Contrast Academic Theme with Dark Mode & Responsive UI
   ========================================================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,500;0,600;0,700;1,400;1,600&display=swap');

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fcfdfe;
    --bg-sidebar: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    /* Borders & Dividers */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: rgba(162, 8, 61, 0.35);
    
    /* Typography Colors */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    /* Brand Burgundy Accent (Default) */
    --primary: #a2083d;
    --primary-hover: #830630;
    --primary-light: #fdf2f4;
    --primary-border: #fbcfe8;
    --primary-glow: rgba(162, 8, 61, 0.22);
    --primary-rgb: 162, 8, 61;
    
    /* Warm Complementary Accent */
    --accent: #d9531e;
    --accent-hover: #b84012;
    --accent-light: #fdf2e9;
    
    /* Status Colors */
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --success: #15803d;
    --success-light: #dcfce7;
    --info: #0284c7;
    --info-light: #e0f2fe;
    
    /* Elevation & Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 30px -6px rgba(15, 23, 42, 0.1), 0 8px 12px -6px rgba(15, 23, 42, 0.06);
    --shadow-cover: 0 18px 36px -10px rgba(162, 8, 61, 0.28), 0 6px 16px -4px rgba(0, 0, 0, 0.12);
    
    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fonts */
    --font-heading: 'Lora', 'Georgia', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Dark Mode High-Contrast Theme
   ========================================================================== */
[data-theme="dark"] {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-card: #161f30;
    --bg-card-hover: #1c273c;
    --bg-sidebar: rgba(17, 24, 39, 0.98);
    --bg-glass: rgba(17, 24, 39, 0.85);
    
    --border-color: #263345;
    --border-light: #1e293b;
    --border-focus: rgba(244, 63, 94, 0.45);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #090d16;
    
    /* Refined Rose-Crimson Primary for Dark Mode */
    --primary: #f43f5e;
    --primary-hover: #fb7185;
    --primary-light: rgba(244, 63, 94, 0.12);
    --primary-border: rgba(244, 63, 94, 0.3);
    --primary-glow: rgba(244, 63, 94, 0.3);
    
    --accent: #fb923c;
    --accent-hover: #f97316;
    --accent-light: rgba(251, 146, 60, 0.14);
    
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);
    --success: #34d399;
    --success-light: rgba(52, 211, 153, 0.15);
    --info: #38bdf8;
    --info-light: rgba(56, 189, 248, 0.15);
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 24px -3px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 32px -6px rgba(0, 0, 0, 0.7);
    --shadow-cover: 0 18px 36px -8px rgba(0, 0, 0, 0.75), 0 0 25px rgba(244, 63, 94, 0.25);
}

/* ==========================================================================
   Global Resets & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 0.95rem;
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   Utility Topbar
   ========================================================================== */
.utility-topbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 7px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.utility-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.utility-right a {
    color: var(--text-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.utility-right a:hover {
    color: var(--primary);
}

.action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: var(--transition-fast);
}
.action-icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
    border-color: var(--primary-border);
}

.lang-switch-toggle a {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.lang-switch-toggle a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
}

/* ==========================================================================
   Main Header Navigation
   ========================================================================== */
.main-header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    max-width: 54px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    transition: transform 0.25s ease;
}

.brand-logo.logo-for-dark {
    display: none;
}
.brand-logo.logo-for-light {
    display: inline-block;
}
[data-theme="dark"] .brand-logo.logo-for-dark {
    display: inline-block;
}
[data-theme="dark"] .brand-logo.logo-for-light {
    display: none;
}
.brand-logo.single-logo {
    display: inline-block !important;
}

.brand-monogram {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0;
}

.nav-toggle-btn {
    display: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.nav-toggle-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 2px;
    position: relative;
    transition: var(--transition-fast);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}
.nav-menu a.active::after, .nav-menu a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Site Content Layout
   ========================================================================== */
.site-content-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px;
    min-height: calc(100vh - 260px);
}

.homepage-grid {
    display: grid;
    grid-template-columns: minmax(0, 8.2fr) minmax(0, 3.8fr);
    gap: 36px;
    align-items: start;
}

/* ==========================================================================
   Hero & 3D Journal Cover
   ========================================================================== */
.journal-hero-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 36px;
    display: flex;
    gap: 36px;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.journal-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cover-stage {
    flex-shrink: 0;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.journal-cover-3d {
    width: 155px;
    height: 220px;
    background: linear-gradient(145deg, var(--primary), var(--primary-hover));
    border-radius: 4px 10px 10px 4px;
    position: relative;
    box-shadow: var(--shadow-cover);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 14px;
    color: #ffffff !important;
    font-family: var(--font-heading);
    text-align: center;
    border-left: 6px solid rgba(0, 0, 0, 0.35);
    overflow: hidden;
    user-select: none;
    transform: rotateY(-8deg) rotateX(2deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.cover-stage:hover .journal-cover-3d {
    transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow: 0 24px 44px -8px var(--primary-glow), 0 8px 20px -4px rgba(0, 0, 0, 0.2);
}

.journal-cover-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.journal-cover-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-cover-logo-box {
    background: transparent;
    padding: 2px;
    border-radius: var(--radius-xs);
    width: 70px;
    height: 54px;
    margin: 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.journal-cover-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.journal-cover-issn {
    font-size: 0.68rem;
    opacity: 0.9;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-details {
    flex: 1;
    min-width: 280px;
}

.hero-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.meta-pill {
    font-size: 0.78rem;
    font-weight: 650;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
}

.pub-badge-link {
    background: var(--primary-light);
    color: var(--primary) !important;
    border: 1px solid var(--primary-border);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}
.pub-badge-link:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

.hero-journal-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 14px 0;
    line-height: 1.25;
}

.hero-actions-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-indices-bar {
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 16px;
    margin-top: 18px;
}

.index-chip {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition-fast);
}
.index-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.dergipark-btn-solid, .btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    border: 1px solid var(--primary);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 650;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
}
.dergipark-btn-solid:hover, .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.dergipark-btn-outline, .btn-secondary {
    background-color: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 650;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.dergipark-btn-outline:hover, .btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

/* ==========================================================================
   Tabs & Policy Pages
   ========================================================================== */
.dergipark-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 28px;
    gap: 4px;
}

.dergipark-tabs .tab-item {
    padding: 11px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 650;
    font-size: 0.92rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    margin-bottom: -2px;
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}
.dergipark-tabs .tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-light);
}
.dergipark-tabs .tab-item:hover:not(.active) {
    color: var(--primary);
    background: var(--bg-primary);
}

.tab-pane-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px;
    margin-bottom: 32px;
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
    line-height: 1.75;
}

/* Section Headings */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.15em;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Search Box Component
   ========================================================================== */
.search-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.search-input-modern {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-xs);
}
.search-input-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Issue Navigation Bar */
.issue-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 0.85rem;
    gap: 15px;
    box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Article Cards (TOC & Search)
   ========================================================================== */
.article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
}

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

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

.article-type-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    display: inline-block;
    margin-bottom: 8px;
}
.article-type-research { background: var(--success-light); color: var(--success); }
.article-type-review { background: var(--info-light); color: var(--info); }
.article-type-case { background: var(--warning-light); color: var(--warning); }
.article-type-default { background: var(--primary-light); color: var(--primary); }

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}
.article-card h3 a {
    color: var(--text-primary);
}
.article-card h3 a:hover {
    color: var(--primary);
}

.article-authors-str {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 550;
}

.article-snippet {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-doi-link {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.article-doi-link:hover {
    color: var(--primary);
}

.article-card-action {
    flex-shrink: 0;
}

.btn-card-pdf {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--primary) !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.btn-card-pdf:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
}

/* ==========================================================================
   Article Detail Page (`views/article.php`)
   ========================================================================== */
.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 8.2fr) minmax(0, 3.8fr);
    gap: 36px;
    align-items: start;
}

.article-header-box {
    margin-bottom: 24px;
}

.article-title-heading {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 12px 0 16px 0;
}

.article-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.author-affiliation-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-block-row {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}
.author-block-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.author-name-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-inst-line {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ror-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    text-decoration: none;
}
.ror-badge-pill:hover {
    background: #0284c7;
    color: #ffffff;
}

.orcid-link-row {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.credit-role-tag {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    display: inline-block;
}

.abstract-card-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-xs);
}

.abstract-text {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 0.96rem;
    max-width: 82ch;
}

.keywords-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sidebar Panels */
.article-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-xs);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.side-download-btn {
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.side-download-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.identity-list {
    list-style: none;
}
.identity-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.86rem;
    color: var(--text-secondary);
}
.identity-list li:last-child {
    border-bottom: none;
}

/* Citation Widget */
.citation-mini-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.citation-mini-tab {
    padding: 6px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.citation-mini-tab.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.citation-text-box {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    padding: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    min-height: 85px;
    word-break: break-all;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ==========================================================================
   Sidebar Navigation Menus (DergiPark Menu & Widgets)
   ========================================================================== */
.dergipark-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.dergipark-menu li {
    border-bottom: 1px solid var(--border-color);
}
.dergipark-menu li:last-child {
    border-bottom: none;
}
.dergipark-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}
.dergipark-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    padding-left: 22px;
}
.dergipark-menu i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

/* Word Cloud Modern Chips */
.word-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
}

.cloud-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-fast);
    line-height: 1.3;
}
.cloud-pill-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.cloud-count-badge {
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.7;
}

/* ==========================================================================
   Editorial Board & Modal
   ========================================================================== */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.editor-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.editor-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.editor-role {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.editor-institution {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 24px 0;
    color: var(--text-secondary);
    margin-top: 50px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 5fr 3.2fr 3.8fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 0.84rem;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-msg {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 9999;
}
.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Forms & Authentication
   ========================================================================== */
.auth-container {
    max-width: 480px;
    margin: 40px auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-block {
    width: 100%;
    text-align: center;
    padding: 12px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.alert-danger { background-color: var(--danger-light); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.alert-success { background-color: var(--success-light); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.alert-info { background-color: var(--info-light); color: var(--info); border: 1px solid rgba(2,132,199,0.2); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(21, 128, 61, 0.25); }
.badge-warning { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(217, 119, 6, 0.25); }
.badge-danger  { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.25); }
.badge-info    { background: var(--info-light); color: var(--info); border: 1px solid rgba(2, 132, 199, 0.25); }
.badge-neutral { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-color); }
.badge-purple  { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-indigo  { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }

[data-theme="dark"] .badge-purple { background: rgba(124, 58, 237, 0.15); color: #c4b5fd; border-color: rgba(124, 58, 237, 0.3); }
[data-theme="dark"] .badge-indigo { background: rgba(79, 70, 229, 0.15); color: #a5b4fc; border-color: rgba(79, 70, 229, 0.3); }
[data-theme="dark"] .badge-neutral { background: var(--bg-secondary); color: var(--text-secondary); border-color: var(--border-color); }

/* ==========================================================================
   Dashboard Layout & Navigation
   ========================================================================== */
.dashboard-layout-container {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 32px;
    align-items: start;
}

.dashboard-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 90px;
}

.user-profile-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.user-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.user-profile-summary h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.dash-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.dash-nav-list li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dash-nav-list li.active a {
    background: var(--primary);
    color: #ffffff !important;
}
.dash-nav-list li.active a svg {
    stroke: #ffffff;
}

/* Explicit compact icon sizing for dashboard navigation and actions */
.dash-nav-list svg,
.dash-nav-list i,
.dashboard-sidebar svg,
.dashboard-layout-container svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
}

.dashboard-content-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-xs);
    min-width: 0;
}

/* Responsive Breakpoints & Mobile Nav Drawer */
@media (max-width: 992px) {
    .homepage-grid, .article-detail-layout, .dashboard-layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .journal-hero-card {
        padding: 28px 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-meta-pills, .hero-actions-group, .hero-indices-bar {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-toggle-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 24px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        display: block;
        animation: slideDown 0.25s ease forwards;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .article-sidebar {
        position: static;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .utility-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-container {
        padding: 10px 16px;
    }
    
    .brand-text h1 {
        font-size: 1.05rem;
    }
    
    .site-content-wrapper {
        padding: 20px 16px;
    }
    
    .journal-hero-card {
        padding: 20px 16px;
    }
    
    .hero-journal-title {
        font-size: 1.45rem;
    }
    
    .article-title-heading {
        font-size: 1.4rem;
    }
    
    .article-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .article-card-action {
        width: 100%;
    }
    
    .btn-card-pdf {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   ACADEMIC FULL-TEXT ARTICLE STYLES (DOCX TO SEMANTIC HTML)
   ========================================================================== */

.article-fulltext-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.article-fulltext-card:hover {
    box-shadow: var(--shadow-md);
}

.article-fulltext-header {
    border-bottom: 2px solid var(--bg-secondary);
    padding-bottom: 15px;
}

.article-fulltext-content {
    font-family: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
    word-break: break-word;
}

/* Base Headings Hierarchy & Academic Styling */
.article-fulltext-content h1,
.article-fulltext-content .article-h1 {
    font-family: var(--font-heading, 'Playfair Display', 'Lora', serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    line-height: 1.35;
    text-align: left !important;
    text-indent: 0 !important;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 6px;
    letter-spacing: 0.01em;
}

/* Level 1 Main Section Headings (e.g. 1. GİRİŞ, 2. YÖNTEM, 3. BULGULAR, REFERENCES) */
.article-fulltext-content h2,
.article-fulltext-content .article-h2,
.article-fulltext-content .article-section-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.22rem;
    font-weight: 750;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    text-align: left !important;
    text-indent: 0 !important;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    letter-spacing: 0.015em;
    display: block;
    clear: both;
}

/* Level 2 Subsections (e.g. 1.1. Problem Durumu, 2.1. Veri Analizi) */
.article-fulltext-content h3,
.article-fulltext-content .article-h3 {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.08rem;
    font-weight: 650;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.55rem;
    line-height: 1.35;
    text-align: left !important;
    text-indent: 0 !important;
    border-left: 3.5px solid var(--primary);
    padding-left: 10px;
    display: block;
    clear: both;
}

/* Level 3 Sub-subsections (e.g. 1.1.1. Örneklem) */
.article-fulltext-content h4,
.article-fulltext-content .article-h4 {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1.2rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
    text-align: left !important;
    text-indent: 0 !important;
    display: block;
    clear: both;
}

.article-fulltext-content h5,
.article-fulltext-content h6 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    text-align: left !important;
    text-indent: 0 !important;
}

.article-fulltext-content p,
.article-fulltext-content .article-p {
    margin-bottom: 1.15em;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
}

/* Captions for Tables and Figures */
.article-fulltext-content .article-table-caption,
.article-table-caption,
caption.article-table-caption {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin: 14px 0 6px 0;
    text-align: left !important;
    text-indent: 0 !important;
    line-height: 1.45;
    display: block;
}

.article-fulltext-content .article-table-note,
.article-table-note,
.article-table-source {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 6px 0 18px 0;
    text-align: left !important;
    text-indent: 0 !important;
    line-height: 1.5;
    display: block;
}

.article-fulltext-content .article-img-caption,
.article-img-caption,
.article-fulltext-content figcaption {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.90rem;
    font-weight: 650;
    color: var(--primary);
    margin: 10px auto 4px auto;
    text-align: center !important;
    text-indent: 0 !important;
    line-height: 1.45;
    display: block;
}

.article-fulltext-content .article-img-source,
.article-img-source,
.article-img-note {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.80rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 3px auto 16px auto;
    text-align: center !important;
    text-indent: 0 !important;
    line-height: 1.45;
    display: block;
}

.article-fulltext-content ul,
.article-fulltext-content ol {
    margin: 1em 0 1.4em 2em;
    padding-left: 0;
    text-align: left;
}

.article-fulltext-content li {
    margin-bottom: 0.5em;
    line-height: 1.65;
}

.article-fulltext-content blockquote,
blockquote.article-quote {
    margin: 1.5em 0;
    padding: 12px 20px;
    border-left: 4px solid var(--primary);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: block;
}

/* Academic Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.8em 0;
    border-radius: var(--radius-sm);
}

.article-fulltext-content table {
    width: 100%;
    border-collapse: collapse !important;
    font-size: 8pt;
    line-height: 1 !important;
    margin: 4px 0 8px 0;
    background: var(--bg-card);
    border-top: 1.5pt solid #0f172a;
    border-bottom: 1.5pt solid #0f172a;
    border-left: none;
    border-right: none;
}

.article-fulltext-content tr {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1 !important;
}

.article-fulltext-content th,
.article-fulltext-content td {
    padding: 2.5px 5px !important;
    line-height: 1 !important;
    border-bottom: 0.5pt solid var(--border-color);
    border-left: none;
    border-right: none;
    text-align: left;
    vertical-align: middle !important;
}

.article-fulltext-content th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    border-top: 1pt solid #0f172a;
    border-bottom: 1pt solid #0f172a;
}

.article-fulltext-content tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .article-fulltext-content tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

/* ZERO margin & padding before/after text inside table cells, single line height */
.article-fulltext-content table p,
.article-fulltext-content table td p,
.article-fulltext-content table th p,
.article-fulltext-content table td div,
.article-fulltext-content table th div,
.article-fulltext-content table td span,
.article-fulltext-content table th span {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
    text-align: inherit;
}

/* Figures & Images */
.article-fulltext-content figure {
    margin: 2em auto;
    text-align: center;
    max-width: 100%;
}

.article-fulltext-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: block;
    margin: 1.2em auto;
}

/* Math & Code Blocks */
.article-math-block {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin: 1.4em 0;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.95rem;
    color: var(--primary);
    overflow-x: auto;
    text-align: center;
}

.article-math-inline {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 0 5px;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.88em;
    color: var(--primary);
    vertical-align: middle;
}

/* Editorial Timeline Badges */
.article-timeline-container {
    animation: fadeIn 0.3s ease;
}

.timeline-badge-pill {
    transition: all 0.2s ease;
    cursor: default;
}

.timeline-badge-pill:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

/* ==========================================================================
   Minimalist Modern Dashboard Tables & Data Grids
   ========================================================================== */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-xs);
    margin: 16px 0 24px 0;
    transition: var(--transition);
}

.table-container:hover {
    box-shadow: var(--shadow-sm);
}

.queue-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: left;
}

.queue-table thead th {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--border-color);
    border-top: none;
    border-left: none;
    border-right: none;
    white-space: nowrap;
    user-select: none;
}

.queue-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
    border-right: none;
    color: var(--text-primary);
    background: transparent;
    transition: background-color 0.15s ease;
}

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

.queue-table tbody tr:hover td {
    background-color: rgba(2, 132, 199, 0.028);
}

[data-theme="dark"] .queue-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Specific Table Cell Components */
.tbl-id-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.tbl-cell-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.4;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
}

.tbl-cell-title:hover {
    color: var(--primary);
}

.tbl-meta-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tbl-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.84rem;
}

.tbl-author-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Table Action Buttons Toolbar */
.tbl-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tbl-actions-right {
    justify-content: flex-end;
}

.tbl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: var(--radius-xs);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1.3;
    white-space: nowrap;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.tbl-btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}
.tbl-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.tbl-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary) !important;
    border-color: var(--border-color);
}
.tbl-btn-secondary:hover {
    background: var(--bg-primary);
    color: var(--text-primary) !important;
    border-color: var(--text-muted);
}

.tbl-btn-success {
    background: var(--success-light);
    color: var(--success) !important;
    border-color: rgba(21, 128, 61, 0.25);
}
.tbl-btn-success:hover {
    background: var(--success);
    color: #ffffff !important;
    border-color: var(--success);
}

.tbl-btn-warning {
    background: var(--warning-light);
    color: var(--warning) !important;
    border-color: rgba(217, 119, 6, 0.25);
}
.tbl-btn-warning:hover {
    background: var(--warning);
    color: #ffffff !important;
    border-color: var(--warning);
}

.tbl-btn-danger {
    background: var(--danger-light);
    color: var(--danger) !important;
    border-color: rgba(220, 38, 38, 0.25);
}
.tbl-btn-danger:hover {
    background: var(--danger);
    color: #ffffff !important;
    border-color: var(--danger);
}

.tbl-btn-indigo {
    background: #eef2ff;
    color: #4f46e5 !important;
    border-color: #c7d2fe;
}
.tbl-btn-indigo:hover {
    background: #4f46e5;
    color: #ffffff !important;
    border-color: #4f46e5;
}

[data-theme="dark"] .tbl-btn-indigo {
    background: rgba(79, 70, 229, 0.15);
    color: #a5b4fc !important;
    border-color: rgba(79, 70, 229, 0.3);
}
[data-theme="dark"] .tbl-btn-indigo:hover {
    background: #4f46e5;
    color: #ffffff !important;
}

.tbl-btn-icon {
    padding: 4px 6px;
    min-width: 26px;
    height: 26px;
}


