/* Content panel styles (formerly inline styles inside js/content.json).
   Everything is scoped under .content-body so it outranks the generic
   `.content-body p` rules in styles.css, as the old inline styles did. */

/* Shared */
.content-body .panel-left {
    text-align: left;
    width: 100%;
    max-width: 100%;
}

.content-body .panel-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.content-body .panel-heading {
    margin: 0 0 0.75rem 0;
    font-weight: 500;
    text-align: center;
}

/* About */
.content-body .role-label {
    display: inline-block;
    width: 200px;
}

.content-body .role-gap {
    margin-left: 2em;
}

.content-body .pill-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.content-body .pill-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-body .pill-link img {
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.content-body .about-divider {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

/* Contacts */
.content-body .social-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.content-body .social-icons a {
    color: inherit;
    text-decoration: none;
}

.content-body .social-icons i {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.content-body .social-icons img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    vertical-align: middle;
}

.content-body .social-icons a:hover i,
.content-body .social-icons a:hover img {
    transform: translateY(-5px);
    filter: grayscale(0%);
}

/* Education */
.content-body .education-grid {
    display: grid;
    grid-template-columns: minmax(450px, 1fr) minmax(100px, 1fr);
    gap: 1rem;
    align-items: center;
}

.content-body .education-grid .degree {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skills (draggable marquee, driven by src/scripts/marquee.ts) */
.content-body .marquee {
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
    cursor: grab;
    outline: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.content-body .marquee:active {
    cursor: grabbing;
}

.content-body .marquee:focus-visible {
    box-shadow: inset 0 0 0 1px var(--secondary-color);
    border-radius: 8px;
}

.content-body .marquee-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    will-change: transform;
}

.content-body .skill-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.content-body .skill-badge i {
    font-size: 1.75rem;
    filter: grayscale(100%);
}

.content-body .skill-badge img {
    width: 1.75rem;
    height: 1.75rem;
    filter: grayscale(100%);
}

.content-body .skill-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-body .skill-badge:hover i,
.content-body .skill-badge:hover img {
    filter: grayscale(0%);
    color: var(--primary-color);
}

/* Research */
.content-body .research-interests {
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
    text-align: left;
    max-width: 100%;
}

.content-body .paper-card,
.content-body .project-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.content-body .paper-card:hover,
.content-body .project-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.content-body .paper-card h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    line-height: 1.4;
    font-size: 1rem;
}

.content-body .paper-card h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-body .paper-card h4 a:hover {
    color: var(--primary-color);
}

.content-body .paper-authors {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-align: left;
    max-width: 100%;
}

.content-body .arxiv-pill {
    color: #4a9eff;
    font-weight: 500;
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(74, 158, 255, 0.15);
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.content-body .arxiv-pill:hover {
    background: rgba(74, 158, 255, 0.25);
    color: #5eb0ff;
}

/* Projects */
.content-body .project-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 120px;
}

.content-body .project-card {
    padding: 1.5rem;
}

.content-body .project-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.content-body .project-info {
    flex: 1;
}

.content-body .project-info h4 {
    margin: 0;
}

.content-body .project-name {
    font-weight: 500;
}

.content-body .project-tagline {
    font-weight: 300;
}

.content-body .project-action {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.content-body .project-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    background: #333;
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.content-body .project-button:hover {
    background: #444;
}

.content-body .install-options {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.content-body .install-options.open {
    display: block;
}

.content-body .install-options a {
    display: block;
    padding: 0.75rem 1rem;
    color: #000;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.content-body .install-options a:hover {
    background: #f0f0f0;
}

/* Blog / Talks */
.content-body .blog-heading {
    margin-bottom: 1rem;
}

.content-body .blog-placeholder {
    margin: 0;
    text-align: center;
    color: var(--secondary-color);
}

.content-body .panel-divider.talks {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.content-body .talks-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.85rem 1.5rem;
    align-items: baseline;
}

.content-body .talk-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    white-space: nowrap;
}

.content-body .talk-title {
    font-size: 0.95rem;
    line-height: 1.5;
}

.content-body .talk-title strong {
    font-weight: 600;
}
