/* Component Styles - components.css */

/* Publication Cards */
.publication-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.publication-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.publication-type.type-dataset {
    background-color: #4caf50;
    color: white;
}

.type-journal {
    background: #e3f2fd;
    color: #1976d2;
}

.type-conference {
    background: #e8f5e8;
    color: #388e3c;
}

.award-badge {
    background: #ffebee;
    color: #d32f2f;
    margin-left: 10px;
}

.publication-year {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.publication-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.publication-authors {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 15px;
}

.publication-venue {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.publication-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.publication-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Position type badges */
.publication-type.type-phd {
    background-color: #9c27b0;
    color: white;
}

.publication-type.type-mtech {
    background-color: #2196f3;
    color: white;
}

.publication-type.type-btech {
    background-color: #d2198b;
    color: white;
}

.publication-type.type-intern {
    background-color: #ff9800;
    color: white;
}

.publication-type.type-postdoc {
    background-color: #4caf50;
    color: white;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-member {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #9e9e9e; 
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

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

.member-info {
    flex-grow: 1;
    margin-bottom: 15px;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.member-title {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.3;
}

.research-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.research-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.position-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.position-badge.faculty {
    background-color: #1976d2;
    color: white;
}

.position-badge.phd {
    background-color: #9c27b0;
    color: white;
}

.position-badge.mtech {
    background-color: #2196f3;
    color: white;
}

.position-badge.btech {
    background-color: #d2198b;
    color: white;
}

.position-badge.postdoc {
    background-color: #4caf50;
    color: white;
}

.position-badge.intern {
    background-color: #ff9800;
    color: white;
}

.member-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.member-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    background: var(--bg-secondary);
}

.member-action-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.research-badge.graphics {
    background: #e3f2fd;
    color: #1976d2;
}

.research-badge.vr-ar {
    background: #e8f5e8;
    color: #388e3c;
}

.research-badge.visualization {
    background: #fff3e0;
    color: #f57c00;
}

.research-badge.ai-ml {
    background: #f3e5f5;
    color: #7b1fa2;
}

.research-badge.hci {
    background: #ffebee;
    color: #c62828;
}

.research-badge.systems {
    background: #e0f2f1;
    color: #00695c;
}

.research-badge.medical {
    background: #fce4ec;
    color: #ad1457;
}

/* Access Info */
.access-info {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
}

.access-info h3 {
    color: var(--accent-primary);
    margin-top: 0;
}

.apply-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.action-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Home Page Components */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 32px 0;
}

.hero-section h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.slide {
    display: none;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 350px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.slide.active {
    display: flex;
}

.slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    text-align: left;
    max-width: 70%;
}

.slide-content h3 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}

.slide-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.slideshow-nav {
    display: none;
}

/* Research Agenda Section */
.research-agenda {
    margin-bottom: 50px;
}

.research-agenda h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.research-overview {
    color: var(--text-secondary);
    max-width: 100%;
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.7;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.research-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}

.research-item {
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.research-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.15);
    transform: translateY(-3px);
}

.research-item h3 {
    color: var(--accent-primary);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.research-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced News Section */
.news-main-section {
    margin-bottom: 48px;
}

.news-header {
    margin-bottom: 20px;
}

.news-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.news-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-content {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.news-content::-webkit-scrollbar {
    width: 8px;
}

.news-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.news-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.news-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.news-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.news-item:last-child {
    border-bottom: none;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.news-category {
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-date {
    color: var(--text-muted);
    font-size: 13px;
}

.news-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.4;
}

.news-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-highlight {
    background: var(--accent-light);
    border-left: 4px solid var(--accent-primary);
}

.news-highlight .news-title {
    color: var(--accent-primary);
}

/* General Content Sections */
.content-section {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.content-section h3 {
    color: var(--accent-primary);
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-header svg {
    margin-right: 10px;
    color: var(--accent-primary);
}

.contact-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-actions {
    margin-top: 15px;
}

.map-container h3 {
    color: var(--accent-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.map-embed {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-actions {
    display: flex;
    gap: 15px;
}

.map-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    border: 1px solid transparent;
}

.map-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .research-list {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .slide-content {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .slide-content h3 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
}