/* NED Team Showcase Frontend Styles */

.ned-team-showcase-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ned-team-showcase-wrapper {
    --ned-primary: #215FF0;
    --ned-accent: #c49a6c;
    --ned-bg: #faf8f5;
    --ned-card-bg: #ffffff;
    --ned-text: #2d2d2d;
    --ned-text-muted: #666666;
    --ned-border: #215FF0;
}

.ned-hero {
    position: relative;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--ned-primary) 0%, #2d2d45 100%);
    overflow: hidden;
}

.ned-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 154, 108, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(196, 154, 108, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.ned-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ned-hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--ned-bg);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: nedFadeUp 1s ease-out;
}

.ned-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(250, 248, 245, 0.85);
    max-width: 750px;
    line-height: 1.7;
    animation: nedFadeUp 1s ease-out 0.2s both;
}

@keyframes nedFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ned-container {
    max-width: 100%;
    margin: 0 auto;
    /*padding: 100px 24px;*/
}

.ned-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 60px;
}

.ned-team-grid .ned-team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
}

.ned-team-card {
    background: var(--ned-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    animation: nedSlideInUp 0.8s ease-out forwards;
}

@keyframes nedSlideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ned-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.ned-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ned-accent), var(--ned-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.ned-card-image {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4de 100%);
}

.ned-profile-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

.ned-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
}

.ned-profile-link:hover img,
.ned-team-card:hover .ned-card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.ned-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4de 100%);
}

.ned-placeholder-icon svg {
    width: 120px;
    height: 120px;
    color: var(--ned-accent);
    opacity: 0.3;
}

.ned-card-content {
    padding: 36px 32px;
}

.ned-card-name {
    /*font-family: 'Instrument Serif', serif;*/
    font-size: 2rem;
    color: #000000;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.ned-team-card:hover .ned-card-name {
    color: #000000;
}

.ned-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.ned-card-bio {
    color: var(--ned-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.ned-card-bio p {
    margin-bottom: 16px;
}

.ned-card-bio p:last-child {
    margin-bottom: 0;
}

.ned-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ned-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px 10px 16px;
    border: 2px solid var(--ned-border);
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.ned-linkedin-link:hover {
    background: var(--ned-primary);
    color: var(--ned-bg);
    border-color: var(--ned-primary);
    transform: translateX(4px);
}

.ned-linkedin-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ned-approach-section {
    background: var(--ned-card-bg);
    border-radius: 20px;
    padding: 60px 48px;
    margin-top: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--ned-border);
}

.ned-approach-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ned-primary);
    margin-bottom: 24px;
    text-align: center;
}

.ned-approach-section p {
    color: var(--ned-text-muted);
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.ned-no-members {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--ned-text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .ned-hero {
        padding: 80px 20px 60px;
    }

    .ned-container {
        padding: 60px 20px;
    }

    .ned-team-grid {
        gap: 32px;
    }
    
    .ned-team-grid {
        grid-template-columns: 1fr;
    }
    
    .ned-team-grid .ned-team-card:last-child:nth-child(odd) {
        max-width: 100%;
    }

    .ned-card-image {
        height: 280px;
    }

    .ned-card-content {
        padding: 28px 24px;
    }

    .ned-approach-section {
        padding: 40px 28px;
        margin-top: 60px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ned-team-showcase-wrapper *,
    .ned-team-showcase-wrapper *::before,
    .ned-team-showcase-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
