/* ==========================================================================
   Minimal Academic Portfolio - John Hewitt Style
   ========================================================================== */

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

html {
    font-size: 16px;
}

body {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: #444;
}

h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #444;
}

h3 {
    font-size: 1.3rem;
    font-weight: normal;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #1a365d;
    text-decoration: underline;
}

a:hover {
    color: #2c5282;
}

a:visited {
    color: #4a5568;
}

/* Header Section */
.header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.header-content {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: #444;
}

.pronunciation-inline {
    font-family: "Charis SIL", "Doulos SIL", "Gentium Plus", Georgia, serif;
    font-size: 1.2rem;
    color: #888;
    font-weight: normal;
    font-style: normal;
}

.affiliation {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.profile-photo {
    width: 240px;
    flex-shrink: 0;
    margin-top: 3.5rem;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.email {
    color: #c41e3a;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: block;
}

.bio {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.bio p {
    margin-bottom: 1rem;
}

/* Contact Links */
.contact-links {
    margin: 1.5rem 0;
}

.contact-links a {
    margin-right: 0.5rem;
}

/* Research Interests */
.interests {
    font-size: 1rem;
    line-height: 1.7;
}

.interests strong {
    font-weight: bold;
}

/* Sections */
section {
    margin-bottom: 2.5rem;
}

section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Lists */
ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Publications */
.publication {
    margin-bottom: 1.5rem;
}

.pub-title {
    font-weight: normal;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.pub-authors {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.pub-venue {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.pub-links {
    font-size: 0.9rem;
}

.pub-links a {
    margin-right: 0.8rem;
}

/* Navigation at bottom */
nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ccc;
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline;
    margin: 0 1.5rem;
}

nav a {
    font-size: 1.1rem;
}

nav a.active {
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Technical Skills - simple list style */
.skills-list {
    line-height: 2;
}

/* News list */
.news-list {
    list-style: none;
    margin-left: 0;
}

.news-list li {
    margin-bottom: 0.8rem;
}

.news-date {
    color: #666;
    margin-right: 0.5rem;
}

/* Epigraph */
.epigraph {
    margin: 3rem auto 3rem;
    padding: 0;
    max-width: 700px;
    border: none;
    text-align: center;
    font-style: italic;
    color: #555;
}

.epigraph-top {
    margin: 1.5rem auto 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.epigraph p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.epigraph footer {
    font-size: 0.9rem;
    font-style: normal;
    color: #666;
}

.epigraph cite {
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        padding: 15px;
    }

    .header {
        flex-direction: column-reverse;
    }

    .profile-photo {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 2rem;
    }

    h1, .name {
        font-size: 2rem;
    }

    .pronunciation-inline {
        font-size: 0.95rem;
        display: block;
        margin-top: 0.5rem;
    }

    .affiliation {
        font-size: 1rem;
    }

    nav li {
        display: block;
        margin: 0.5rem 0;
    }

    .epigraph {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .epigraph-top {
        margin: 1rem auto 2rem;
        padding-bottom: 1.5rem;
    }

    .epigraph p {
        font-size: 1rem;
    }
}

/* Remove external link icon */
a::after {
    content: none;
}

/* Strong text */
strong {
    font-weight: bold;
}

/* Code/monospace */
code {
    font-family: "Courier New", Courier, monospace;
    background: #f5f5f5;
    padding: 2px 4px;
}

/* Blog posts */
.blog-post {
    margin-bottom: 2.5rem;
}

.blog-post h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.blog-post h2 a {
    text-decoration: none;
    color: #1a365d;
}

.blog-post h2 a:hover {
    text-decoration: underline;
    color: #2c5282;
}

.post-date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Tag Filter Styles */
.tag-filter {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.tag-filter-label {
    font-weight: bold;
    margin-right: 1rem;
    color: #444;
}

.tag-btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0.3rem 0.3rem 0.3rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.tag-btn.active {
    background: #1a365d;
    color: #fff;
    border-color: #1a365d;
}

.tag-badges {
    margin-top: 0.5rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    margin-right: 0.4rem;
    background: #e8e8e8;
    color: #555;
    font-size: 0.8rem;
    border-radius: 3px;
}

.tag-badge.primary {
    background: #e6f0f7;
    color: #1a365d;
}

.tag-badge.content-type {
    background: #fff3cd;
    color: #856404;
}

.tag-badge.tool {
    background: #d4edda;
    color: #155724;
}

/* CTA Buttons */
.cta-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: #1a365d;
    color: #fff;
    border: 2px solid #1a365d;
}

.btn-primary:hover {
    background: #2c5282;
    border-color: #2c5282;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #1a365d;
    border: 2px solid #1a365d;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #2c5282;
    color: #2c5282;
}

/* Featured Publications */
.featured-publications {
    margin-top: 1.5rem;
}

.featured-pub {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #1a365d;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.featured-pub:hover {
    background: #f0f0f0;
    border-left-color: #2c5282;
}

.featured-pub .pub-title {
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.featured-pub .pub-title a {
    color: #1a365d;
    text-decoration: none;
}

.featured-pub .pub-title a:hover {
    text-decoration: underline;
    color: #2c5282;
}

.featured-pub .pub-authors {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.featured-pub .pub-venue {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.see-all-link {
    font-size: 1.05rem;
    color: #1a365d;
    text-decoration: none;
    font-weight: normal;
}

.see-all-link:hover {
    text-decoration: underline;
    color: #2c5282;
}

/* ==========================================================================
   Projects Page Styles
   ========================================================================== */

.intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #444;
}

.project {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #ddd;
}

.project:last-of-type {
    border-bottom: none;
}

.project h2 {
    font-size: 1.4rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-role {
    color: #2c5282;
    font-weight: bold;
}

.project-funding {
    color: #666;
    font-style: italic;
}

.project-content h3 {
    font-size: 1.1rem;
    color: #444;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.project-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-content li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.project-tech {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.95rem;
}

.project-tech strong {
    color: #444;
}

.project-links {
    margin-top: 1rem;
}

.project-links a {
    display: inline-block;
    margin-right: 1.5rem;
    font-size: 0.95rem;
}

/* Mini Projects */
.mini-project {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #fafafa;
    border-left: 3px solid #ccc;
}

.mini-project h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #444;
}

.mini-project p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.mini-project .project-tech {
    padding: 0.5rem 0;
    background: transparent;
    font-size: 0.9rem;
}

.mini-project .project-links {
    margin-top: 0.5rem;
}

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

.skill-category {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.skill-category h4 {
    font-size: 0.95rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.skill-category p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}
