@charset "utf-8";

/* Terminal Theme - Catppuccin Latte Palette */
:root {
    --primary-color: #1e293b;
    --primary-hover: #0f172a;
    --text-primary: #4c4f69;
    --text-secondary: #6c6f85;
    --text-light: #9ca0b0;
    --background-primary: #eff1f5;
    --background-secondary: #e6e9ef;
    --background-accent: #dce0e8;
    --border-color: #bcc0cc;
    --transition: all 0.15s ease;
    --glow: 0 0 10px rgba(30, 41, 59, 0.15);
    --link-color: #1e293b;
    --link-hover: #0f172a;
}

/* Scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
}

body {
    font-family: "JetBrains Mono", "Courier New", Courier, monospace;
    font-weight: 400;
    font-size: 0.92rem;
    padding-top: 5.0rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    background-color: var(--background-primary) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    color: var(--text-primary);
}

/* Navbar - terminal style */
.navbar {
    font-family: "JetBrains Mono", monospace;
    opacity: 1;
    background-color: var(--background-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.navbar-brand {
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-item.active .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Override Bootstrap bg-light */
.bg-light {
    background-color: var(--background-primary) !important;
}

.bg-white {
    background-color: var(--background-primary) !important;
}

/* Cards - terminal style: no shadows, no radius, border */
.card {
    border-radius: 0 !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    background-color: var(--background-secondary) !important;
}

.card-img-overlay {
    border-radius: 0 !important;
}

.rounded-xl {
    border-radius: 0 !important;
    border: 1px solid var(--border-color);
    box-shadow: none !important;
    background-color: var(--background-secondary) !important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.rounded-xl-top {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Override all Bootstrap shadows */
.shadow-sm, .shadow, .shadow-lg {
    box-shadow: none !important;
}

/* Override all Bootstrap border-radius */
.rounded, .rounded-sm, .rounded-lg, .rounded-circle {
    border-radius: 0 !important;
}

.img-thumbnail {
    border-radius: 0 !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--background-accent) !important;
    padding: 0.25rem;
}

/* Section headers with terminal prompt */
.card-body h6,
.my-3 > h6 {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.my-3 > h6:first-child::before,
.rounded-xl > h6:first-child::before {
    content: '> ';
    color: var(--primary-color);
}

/* Profile card */
.text-profile-position {
    font-weight: 400;
    color: var(--text-secondary);
}

.text-profile-bio {
    font-weight: 400;
    color: var(--text-secondary);
}

.inline-badge {
    height: 18px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

/* Lazy loading */
img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: "JetBrains Mono", Courier, monospace;
}

/* Links - terminal style */
a {
    color: var(--link-color);
    transition: var(--transition);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Muted text */
.text-muted {
    color: var(--text-light) !important;
}

mark {
    font-size: 0.65rem;
    background-color: rgba(30, 41, 59, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0.1em 0.3em;
}

i, em {
    font-style: normal !important;
}

/* Borders */
.border-bottom, .border-top {
    border-color: var(--border-color) !important;
}

.border-gray {
    border-color: var(--border-color) !important;
}

/* Separator */
hr {
    border-top: 1px solid var(--border-color);
}

/* Modal - terminal style */
.modal-content {
    border-radius: 0 !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: var(--glow);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    background-color: transparent !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 0 !important;
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background-color: rgba(30, 41, 59, 0.06) !important;
    box-shadow: var(--glow);
}

/* Publication items */
.publication-item:hover {
    background-color: rgba(30, 41, 59, 0.04);
}

/* Nav pills - publications year sidebar */
.nav-pills .nav-link {
    color: var(--text-secondary) !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0.3rem 0.75rem;
}

.nav-pills .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(30, 41, 59, 0.06) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: var(--primary-color) !important;
    background-color: rgba(30, 41, 59, 0.1) !important;
    font-weight: 600;
}

/* Abstract links */
.abstract-links a {
    color: var(--primary-color);
}

.abstract-links a:hover {
    color: var(--primary-hover);
}

/* Footer - terminal style */
.footer {
    background-color: var(--background-secondary) !important;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection color */
::selection {
    background: rgba(30, 41, 59, 0.2);
    color: #fff;
}

/* Print styles */
@media print {
    body::after {
        display: none;
    }
}
