/**
 * Sections
 * Page-specific section styles: Hero, About, Publications, Projects, News, Footer
 */

/* =============================================
   Hero Section
   ============================================= */
.hero {
    padding: 7rem 2rem 3rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-image {
    flex-shrink: 0;
}

.profile-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-lg);
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* =============================================
   Generic Section Styles
   ============================================= */
.section {
    padding: 2rem 0;
}

.section:first-of-type {
    padding-top: 1.5rem;
}

.section-alt {
    background: var(--bg-secondary);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-align: left;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: left;
}

.section-subtitle a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* =============================================
   Research Areas
   ============================================= */
.research-areas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.research-card {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.research-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.research-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.research-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* =============================================
   Publications
   ============================================= */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
    cursor: pointer;
}

.publication:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pub-image {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.pub-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    padding: 0.5rem;
}

.pub-image img,
.pub-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}


.pub-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 50px;
}

.pub-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pub-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.authors {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.authors strong {
    color: var(--text-primary);
}

.authors sup {
    font-size: 0.65rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 1px;
}

.author-notes-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    cursor: help;
}

.author-notes-trigger i {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: var(--transition);
}

.author-notes-trigger:hover i,
.author-notes-trigger:focus i {
    color: var(--primary-color);
    opacity: 1;
}

.author-notes-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-notes-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-color);
}

.author-notes-trigger:hover .author-notes-tooltip,
.author-notes-trigger:focus .author-notes-tooltip {
    opacity: 1;
    visibility: visible;
}

.author-notes-tooltip span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.venue {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

/* =============================================
   News / Media Section
   ============================================= */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    align-items: flex-start;
    cursor: pointer;
}

.news-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.news-preview {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    min-width: 120px;
    max-width: 180px;
    min-height: 80px;
    max-height: 120px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.news-preview img,
.news-preview video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.news-source {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-source img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.news-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   Projects Grid
   ============================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.project-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--text-primary);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.project-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-content {
    max-width: 600px;
}

.contact-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 24px;
    color: var(--primary-color);
}

/* =============================================
   Footer
   ============================================= */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
