/* ===================================
   Custom Styles for Eitan Sprejer Website
   Minimal, clean aesthetic
   =================================== */

/* --- Base Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed nav */
}

/* --- Links --- */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
}

/* --- Navigation --- */
nav {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* --- Profile Image --- */
#hero img {
    border: 4px solid #f3f4f6;
}

/* --- Badges --- */
.bg-blue-100 {
    display: inline-block;
    font-weight: 500;
}

.bg-green-100 {
    display: inline-block;
    font-weight: 500;
}

.bg-purple-100 {
    display: inline-block;
    font-weight: 500;
}

/* --- Details/Summary (Expandable Abstracts) --- */
details {
    margin-top: 0.75rem;
}

details summary {
    font-weight: 500;
    outline: none;
    user-select: none;
    transition: color 0.2s ease;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: "▸ ";
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

details[open] summary::before {
    content: "▾ ";
}

details summary:hover {
    color: #1e40af;
}

details p {
    animation: fadeIn 0.3s ease-in;
}

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

/* --- Sections --- */
section {
    scroll-margin-top: 80px;
}

/* --- Paper entries --- */
#research > div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* --- Footer --- */
footer {
    background-color: #fafafa;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* --- Print styles --- */
@media print {
    nav {
        display: none;
    }

    details {
        display: block;
    }

    details summary {
        display: none;
    }

    details p {
        display: block !important;
    }
}
