/* static/css/team/team_home.css */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.team-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 120px 0 80px 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 70vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-grid {
    margin-top: 0;
    margin-left: -15px;
    margin-right: -15px;
}

.team-grid > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Team Card */
.team-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Team Card Header */
.team-card-header {
    padding: 30px 30px 0 30px;
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    transition: all 0.3s ease;
}

.team-card:hover .team-photo {
    border-color: #667eea;
    transform: scale(1.05);
}

.team-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid #e9ecef;
    color: #6c757d;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.team-card:hover .team-photo-placeholder {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

/* Team Card Body */
.team-card-body {
    padding: 25px 30px;
    flex-grow: 1;
    text-align: center;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-name a:hover {
    color: #667eea;
}

.team-title {
    color: #667eea;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.team-degree {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
}

.team-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.team-stats {
    margin-bottom: 0;
}

.team-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Team Card Footer */
.team-card-footer {
    padding: 20px 30px 30px 30px;
    border-top: 1px solid #f8f9fa;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link.linkedin {
    background: #0077b5;
    color: white;
}

.social-link.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

.social-link.researchgate {
    background: #00d4aa;
    color: white;
}

.social-link.researchgate:hover {
    background: #00b494;
    transform: translateY(-2px);
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.facebook:hover {
    background: #165dc7;
    transform: translateY(-2px);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.instagram:hover {
    transform: translateY(-2px) scale(1.1);
}

.team-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.team-actions .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 6px 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4c93);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-outline-secondary {
    color: #6c757d;
    border: 1px solid #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* No Team State */
.no-team {
    text-align: center;
    padding: 100px 20px;
    color: #6c757d;
}

.no-team .display-1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.3;
}

.no-team h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #495057;
}

.no-team p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Bootstrap Icons Enhancement */
.bi {
    font-size: inherit;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .hero-title {
        font-size: 3rem;
    }
    .team-section {
        padding: 70px 0;
    }
}
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .team-section {
        padding: 60px 0;
    }
    
    .team-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .team-hero {
        padding: 100px 0 60px 0;
    }
    
    .team-card-header {
        padding: 25px 25px 0 25px;
    }
    
    .team-card-body {
        padding: 20px 25px;
    }
    
    .team-card-footer {
        padding: 15px 25px 25px 25px;
    }
    
    .team-photo,
    .team-photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .team-photo-placeholder {
        font-size: 3rem;
    }
    
    .team-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .team-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .team-hero {
        padding: 80px 0 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .team-section {
        padding: 50px 0;
    }
    
    .team-card-header {
        padding: 20px 20px 0 20px;
    }
    
    .team-card-body {
        padding: 15px 20px;
    }
    
    .team-card-footer {
        padding: 15px 20px 20px 20px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .stat-item {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .no-team .display-1 {
        font-size: 3rem;
    }
    
    .no-team h3 {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.social-link.scopus img,
.social-link.wos img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

/* Print Styles */
@media print {
    .team-hero,
    .team-actions,
    .social-links {
        display: none;
    }
    
    .team-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .team-photo,
    .team-photo-placeholder {
        width: 100px;
        height: 100px;
    }
}