/* ============================================================
   Olga Zaghen — Academic Page
   style.css
   ============================================================ */

:root {
    /* ── Palette ── */
    --color-bg:             #fdf2f5;       /* very light blush pink */
    --color-bg-subtle:      #fce6ee;       /* slightly deeper blush for bio box */
    --color-bg-card:        #ffffff;       /* pure white for paper cards */
    --color-text:           #1c0e13;       /* near-black with warm tint */
    --color-text-secondary: #6b4455;       /* muted rose-brown */
    --color-link:           #b5456b;       /* deep rose */
    --color-link-hover:     #8b2d4e;
    --color-border:         #f0c8d5;       /* soft pink border */
    --color-accent:         #d4607e;       /* mid rose for decorative use */

    /* Publication badges */
    --badge-spotlight-text: #92400e;
    --badge-spotlight-bg:   #fff7ed;
    --badge-spotlight-bdr:  #f6c87a;
    --badge-oral-text:      #276749;
    --badge-oral-bg:        #f0fff4;
    --badge-oral-bdr:       #9ae6b4;
    --badge-review-text:    #5a4055;
    --badge-review-bg:      #fdf0f5;
    --badge-review-bdr:     #e0a0bc;

    --max-width:  860px;
    --section-gap: 3.5rem;

    /* ── Typography ── */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'DM Sans', -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ── */
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
}

/* ── Typography ── */
h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

h2 {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 1.1rem;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

/* Decorative underline on section headings */
h2::after {
    content: '';
    display: block;
    height: 2px;
    width: 2.5rem;
    background: var(--color-accent);
    border-radius: 2px;
    margin-top: 0.35rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-link); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }

ul { padding-left: 1.5rem; }
li { margin-bottom: 0.55rem; }

/* ── Elegant section dividers ── */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-accent) 25%, var(--color-accent) 75%, transparent);
    margin: var(--section-gap) 0;
    opacity: 0.4;
}

/* ── Navigation ── */
nav {
    position: sticky;
    top: 0;
    background: rgba(253, 242, 245, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

nav ul {
    list-style: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.15s;
}
nav a:hover,
nav a.active { color: var(--color-text); text-decoration: none; }

/* ── Main layout ── */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

section { scroll-margin-top: 3.5rem; }

/* ── About header ── */

/* Default (< 1200px): circle sits inline with the name in a flex row */
.about-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.75rem;
}

.about-header-text { flex: 1; min-width: 0; }

.tagline {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    margin-top: 0.1rem;
}

/* ── Profile photo ── */

/* Default: compact circle next to the name */
.profile-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 3px solid #e8a0b8;
    box-shadow:
        0 4px 16px rgba(180, 70, 110, 0.18),
        0 0 0 5px rgba(232, 160, 184, 0.18);
    flex-shrink: 0;
    display: block;
}

/* Wide screens (≥ 1200px): pull photo out of the page flow
   and pin it to the right of the content column */
@media (min-width: 1320px) {
    .about-header { display: block; }

    .profile-photo {
        position: fixed;
        left: calc(50% + 450px);   /* content half-width (430) + 20px gap */
        top: 5.5rem;               /* just below the sticky nav */
        width: 145px;
        height: 183px;
        border-radius: 14px;
        border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;  /* soft oval */
        flex-shrink: unset;
    }
}

/* ── Bio box ── */
.bio-box {
    background: var(--color-bg-subtle);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 2px 18px rgba(180, 70, 110, 0.09),
        inset 0 0 0 1px rgba(212, 96, 126, 0.08);
}

/* ── Social links ── */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
}

.social-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.social-links a:hover { color: var(--color-link); text-decoration: none; }

/* ── Publications ── */
#publications > h2 { margin-bottom: 0.3rem; }

.section-note {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem;
}

/* Paper cards */
.pub-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pub-item:hover {
    box-shadow: 0 3px 14px rgba(180, 70, 110, 0.12);
    border-color: #e8a0b8;
}

.pub-title {
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.pub-authors {
    font-size: 0.845rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.pub-venue {
    font-size: 0.845rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
}

.pub-venue a { font-style: italic; }
.pub-year { color: var(--color-text-secondary); }

/* Highlight badges */
.pub-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.12em 0.5em;
    border-radius: 4px;
    border: 1px solid transparent;
    line-height: 1.65;
}

.pub-badge--spotlight    { background: var(--badge-spotlight-bg); color: var(--badge-spotlight-text); border-color: var(--badge-spotlight-bdr); }
.pub-badge--oral         { background: var(--badge-oral-bg);      color: var(--badge-oral-text);      border-color: var(--badge-oral-bdr); }
.pub-badge--under-review { background: var(--badge-review-bg);    color: var(--badge-review-text);    border-color: var(--badge-review-bdr); }

/* ── Beyond Research ── */
#beyond > h2 { margin-bottom: 1rem; }

#beyond ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

#beyond ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.65rem;
}

#beyond ul li::before {
    content: '🌸';
    position: absolute;
    left: 0;
    top: 0.05em;
    font-size: 0.95em;
    line-height: 1.75;
}

/* ── Blog section (main page teaser) ── */
.blog-teaser {
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

/* ── Blog listing page ── */
.blog-post-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s;
}
.blog-post-item:hover {
    box-shadow: 0 3px 14px rgba(180, 70, 110, 0.12);
}

.blog-post-date {
    font-size: 0.825rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.2rem;
}

.blog-post-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    text-decoration: none;
}
.blog-post-title:hover { color: var(--color-link); text-decoration: none; }

.blog-post-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.empty-state {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: 1.25rem;
}

/* ── Blog post page ── */
.blog-post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.post-date {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.post-content p { margin-bottom: 1.2rem; }
.post-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; }

.post-content ul,
.post-content ol { margin-bottom: 1.2rem; }

.post-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 1.5rem 0;
}

.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: var(--color-bg-subtle);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.post-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.2rem 1.4rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.post-content pre code { background: none; padding: 0; color: inherit; font-size: 0.875rem; }

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1.75rem 2rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.55rem; }

    .about-header { gap: 1rem; }
    .profile-photo { width: 76px; height: 76px; }

    main { padding: 2rem 1.25rem 4rem; }
    nav ul { padding: 0.75rem 1.25rem; gap: 1.25rem; }
    .social-links { gap: 0.5rem 1.1rem; }
}
