/* al-folio Theme Styles */

/* CSS Variables - Theme Colors */
:root {
    color-scheme: light;
    --global-bg-color: #ffffff;
    --global-code-bg-color: rgba(181, 9, 172, 0.05);
    --global-text-color: #000000;
    --global-text-color-light: #828282;
    --global-theme-color: #b509ac;
    --global-hover-color: #b509ac;
    --global-hover-text-color: #ffffff;
    --global-footer-bg-color: #1c1c1d;
    --global-footer-text-color: #c9c9c9;
    --global-footer-link-color: #ffffff;
    --global-distill-app-color: #828282;
    --global-divider-color: rgba(0, 0, 0, 0.1);
    --global-card-bg-color: #ffffff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Dark Mode Styles */
html[data-theme="dark"] {
    --global-bg-color: #1c1c1d;
    --global-code-bg-color: rgba(217, 70, 166, 0.2);
    --global-text-color: #e0e0e0;
    --global-text-color-light: #a0a0a0;
    --global-theme-color: #d946a6;
    --global-hover-color: #d946a6;
    --global-hover-text-color: #ffffff;
    --global-footer-bg-color: #0d0d0d;
    --global-footer-text-color: #909090;
    --global-footer-link-color: #d946a6;
    --global-divider-color: rgba(255, 255, 255, 0.1);
    --global-card-bg-color: #242424;
}

html[data-theme="dark"] nav#navbar {
    background-color: #1f1f1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .navbar-brand.social a {
    color: #e0e0e0;
}

html[data-theme="dark"] .navbar-nav .nav-link {
    color: #e0e0e0 !important;
}

html[data-theme="dark"] #dark-mode-toggle {
    color: #e0e0e0;
}

html[data-theme="dark"] #dark-mode-toggle:hover {
    color: #d946a6;
}

html[data-theme="dark"] code.language-plaintext.highlighter-rouge {
    background-color: rgba(217, 70, 166, 0.2);
    color: #d946a6;
}

html[data-theme="dark"] .btn-outline-primary {
    color: #d946a6;
    border-color: #d946a6;
}

html[data-theme="dark"] .btn-outline-primary:hover {
    background-color: #d946a6;
    color: #ffffff;
}

html[data-theme="dark"] .publications .btn {
    border-color: #a0a0a0;
    color: #e0e0e0;
}

html[data-theme="dark"] .publications .btn:hover {
    background-color: #d946a6;
    border-color: #d946a6;
    color: #ffffff;
}

html[data-theme="dark"] .publications .abstract.hidden {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #d946a6;
}

html[data-theme="dark"] .table {
    color: #e0e0e0;
}

html[data-theme="dark"] .news th {
    color: #a0a0a0;
}

html[data-theme="dark"] progress::-webkit-progress-value {
    background-color: #d946a6;
}

html[data-theme="dark"] progress::-moz-progress-bar {
    background-color: #d946a6;
}

/* Smooth transition between themes */
body.transition-theme {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.transition-theme a {
    transition: color 0.3s ease;
}

body.transition-theme button {
    transition: color 0.3s ease, background-color 0.3s ease;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--global-text-color);
    background-color: var(--global-bg-color);
    padding-top: 56px;
    padding-bottom: 70px;
}

body.fixed-top-nav {
    padding-top: 56px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
p,
em,
div,
li,
span,
strong {
    color: var(--global-text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto Slab', serif;
    scroll-margin-top: 66px;
}

a {
    color: var(--global-theme-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

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

hr {
    border-top: 1px solid var(--global-divider-color);
}

code.language-plaintext.highlighter-rouge {
    background-color: var(--global-code-bg-color);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: var(--global-theme-color);
}

/* Navigation */
nav#navbar {
    background-color: var(--global-bg-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand.social {
    padding-bottom: 0;
    padding-top: 0;
    font-size: 1.7rem;
}

.navbar-brand.social a {
    color: var(--global-text-color);
    margin-right: 0.5rem;
    transition: color 0.2s ease-in-out;
}

.navbar-brand.social a:hover {
    color: var(--global-hover-color);
    text-decoration: none;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--global-text-color);
    margin: 4px 0;
    transition: all 0.2s;
}

.navbar-nav .nav-item .nav-link {
    color: var(--global-text-color);
    padding: 1rem;
    font-weight: 400;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-item .nav-link:hover {
    color: var(--global-hover-color);
    text-decoration: none;
}

.navbar-nav .nav-item.active>.nav-link {
    font-weight: 700;
    color: var(--global-theme-color);
}

.navbar-nav .nav-item.active>.nav-link:hover {
    color: var(--global-hover-color);
}

/* Progress Bar */
progress {
    position: fixed;
    left: 0;
    top: 56px;
    z-index: 10;
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
}

progress::-webkit-progress-bar {
    background-color: transparent;
}

progress::-webkit-progress-value {
    background-color: var(--global-theme-color);
}

progress::-moz-progress-bar {
    background-color: var(--global-theme-color);
}

/* Container */
.container {
    max-width: 1100px;
}

.container.mt-5 {
    margin-top: 3rem !important;
}

/* Post */
.post {
    margin-bottom: 2rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-header .desc {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--global-text-color-light);
}

/* Profile */
.profile {
    width: 100%;
    margin-bottom: 1rem;
}

.profile.float-right {
    margin-left: 1rem;
}

.profile.float-left {
    margin-right: 1rem;
}

@media (min-width: 576px) {
    .profile {
        width: 30%;
    }
}

.profile img {
    width: 100%;
    border-radius: 0.5rem;
}

.profile figure {
    margin-bottom: 1rem;
}

.profile .more-info {
    margin-bottom: 5px;
    margin-top: 5px;
    font-family: monospace;
    font-size: 0.9rem;
}

.profile .more-info p {
    display: inline-block;
    margin: 0;
}

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

.z-depth-1 {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.rounded {
    border-radius: 0.5rem !important;
}

/* Article */
article {
    margin-bottom: 2rem;
}

article p {
    margin-bottom: 1rem;
}

article h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--global-divider-color);
    padding-bottom: 0.5rem;
}

article h2 a {
    color: inherit;
    text-decoration: none;
}

article h2 a:hover {
    color: var(--global-theme-color);
    text-decoration: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* News Section */
.news {
    margin-bottom: 2rem;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--global-text-color);
}

.table-sm td,
.table-sm th {
    padding: 0.75rem;
}

.table-borderless td,
.table-borderless th {
    border: 0;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.news th {
    font-weight: 500;
    color: var(--global-text-color-light);
    vertical-align: top;
    width: 20%;
}

.news td strong {
    color: var(--global-theme-color);
    font-weight: 600;
}

/* Publications */
.publications {
    margin-bottom: 2rem;
}

.publications ol.bibliography {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publications ol.bibliography>li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--global-divider-color);
}

.publications ol.bibliography>li:last-child {
    border-bottom: none;
}

.publications .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.publications .col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.publications .col-sm-2 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.publications .col-sm-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 576px) {
    .publications .col-sm-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .publications .col-sm-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

.publications .abbr {
    margin-bottom: 0.5rem;
}

.publications .abbr abbr {
    display: inline-block;
    background-color: var(--global-theme-color);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-decoration: none;
}

.publications .abbr .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.publications .abbr .rounded {
    border-radius: 0.25rem !important;
}

.publications .abbr .w-100 {
    width: 100% !important;
}

.publications .title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--global-text-color);
    margin-bottom: 0.5rem;
}

.publications .author {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.publications .author em {
    font-weight: 600;
    font-style: normal;
}

.publications .periodical {
    font-size: 0.9rem;
    color: var(--global-text-color-light);
    margin-bottom: 0.5rem;
}

.publications .periodical em {
    font-style: italic;
}

.publications .links {
    margin-top: 0.75rem;
}

.publications .btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid var(--global-text-color);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--global-text-color);
}

.publications .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
}

.publications .btn:hover {
    color: var(--global-hover-text-color);
    background-color: var(--global-theme-color);
    border-color: var(--global-theme-color);
    text-decoration: none;
}

.publications .z-depth-0 {
    box-shadow: none !important;
}

.publications .abstract.hidden {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--global-theme-color);
    border-radius: 0.25rem;
}

.publications .abstract.hidden p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Volunteering Section */
.volunteering-section {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.volunteering-item {
    padding: 1rem;
    border-left: 3px solid var(--global-theme-color);
    background-color: var(--global-card-bg-color);
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
}

.volunteering-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--global-text-color);
    line-height: 1.3;
}

.volunteering-meta {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--global-text-color-light);
    font-style: italic;
}

.volunteering-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--global-text-color);
    line-height: 1.4;
}

html[data-theme="dark"] .volunteering-item {
    background-color: var(--global-card-bg-color);
    border-left-color: var(--global-theme-color);
}

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

/* Contact Section */
.social-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-outline-primary {
    color: var(--global-theme-color);
    border: 2px solid var(--global-theme-color);
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: var(--global-theme-color);
    color: var(--global-hover-text-color);
    text-decoration: none;
}

.social-contact i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--global-footer-bg-color);
    color: var(--global-footer-text-color);
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

footer.fixed-bottom {
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: var(--global-footer-link-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--global-theme-color);
    text-decoration: underline;
}

footer .container {
    text-align: center;
}

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

.mt-0 {
    margin-top: 0 !important;
}

.float-right {
    float: right !important;
}

.float-left {
    float: left !important;
}

/* Responsive Design */
@media (max-width: 968px) {
    .post-title {
        font-size: 2rem;
    }

    article h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body.fixed-top-nav {
        padding-top: 56px;
    }

    .navbar-brand.social {
        display: none;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-header .desc {
        font-size: 1rem;
    }

    .profile {
        float: none !important;
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .publications .col-sm-2,
    .publications .col-sm-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .social-contact {
        flex-direction: column;
    }

    .social-contact .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    article h2 {
        font-size: 1.3rem;
    }

    .news th,
    .news td {
        display: block;
        width: 100%;
    }

    .news th {
        font-weight: 600;
        padding-bottom: 0.25rem;
    }
}

/* Print Styles */
@media print {
    body.fixed-top-nav {
        padding-top: 0;
    }

    header,
    footer,
    .navbar,
    progress {
        display: none !important;
    }

    .profile {
        width: 200px !important;
    }
}