/* Ekibimiz sayfası */
.page-team {
    background: #f8faf9;
}

.team-hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
    background: linear-gradient(135deg, #004d32 0%, #006d44 45%, #00875a 100%);
    color: #fff;
}

.team-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.team-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: teamGlow 8s ease-in-out infinite alternate;
}

.team-hero-glow--1 {
    width: 320px;
    height: 320px;
    background: #34d399;
    top: -80px;
    right: 10%;
}

.team-hero-glow--2 {
    width: 260px;
    height: 260px;
    background: #6ee7b7;
    bottom: -60px;
    left: 5%;
    animation-delay: -3s;
}

@keyframes teamGlow {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(20px, -15px) scale(1.08); }
}

.team-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.team-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    animation: teamFadeUp 0.7s ease both;
}

.team-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    animation: teamFadeUp 0.7s ease 0.1s both;
}

.team-hero p {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.92;
    animation: teamFadeUp 0.7s ease 0.2s both;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 640px;
    margin: 36px auto 0;
    animation: teamFadeUp 0.7s ease 0.35s both;
}

.team-stat {
    padding: 18px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.team-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.team-stat span {
    font-size: 0.78rem;
    opacity: 0.88;
}

.team-section {
    padding: 64px 0;
    background: linear-gradient(180deg, #f8faf9 0%, #fff 100%);
}

.team-section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}

.team-section-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.team-section-header p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 290px));
    gap: 28px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ——— Ekip kartı ——— */
.team-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 77, 50, 0.06);
    border: 1px solid rgba(0, 109, 68, 0.07);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    max-width: 290px;
    width: 100%;
}

.team-card.is-visible {
    animation: teamCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--card-delay, 0s);
}

@keyframes teamCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 109, 68, 0.14);
    border-color: rgba(0, 109, 68, 0.2);
}

.team-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

.team-card:hover .team-card-shine {
    transform: translateX(120%);
}

.team-card-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f5ef 0%, #d4ebe2 100%);
}

.team-card-photo-frame {
    position: absolute;
    inset: 12px 12px 0;
    border-radius: 12px 12px 0 0;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: none;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.team-card:hover .team-card-photo-frame {
    opacity: 1;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-card-photo img {
    transform: scale(1.08);
}

.team-card-photo::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 50, 32, 0.35), transparent);
    pointer-events: none;
    z-index: 1;
}

.team-card-body {
    padding: 18px 18px 20px;
    text-align: center;
}

.team-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.team-card-role {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.team-card-bio {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 109, 68, 0.08);
}

.team-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(6px);
}

.team-card.is-visible .team-social-btn {
    animation: teamSocialPop 0.45s ease forwards;
}

.team-card.is-visible .team-social-btn:nth-child(1) { animation-delay: calc(var(--card-delay, 0s) + 0.15s); }
.team-card.is-visible .team-social-btn:nth-child(2) { animation-delay: calc(var(--card-delay, 0s) + 0.2s); }
.team-card.is-visible .team-social-btn:nth-child(3) { animation-delay: calc(var(--card-delay, 0s) + 0.25s); }
.team-card.is-visible .team-social-btn:nth-child(4) { animation-delay: calc(var(--card-delay, 0s) + 0.3s); }
.team-card.is-visible .team-social-btn:nth-child(5) { animation-delay: calc(var(--card-delay, 0s) + 0.35s); }
.team-card.is-visible .team-social-btn:nth-child(6) { animation-delay: calc(var(--card-delay, 0s) + 0.4s); }
.team-card.is-visible .team-social-btn:nth-child(7) { animation-delay: calc(var(--card-delay, 0s) + 0.45s); }
.team-card.is-visible .team-social-btn:nth-child(8) { animation-delay: calc(var(--card-delay, 0s) + 0.5s); }

@keyframes teamSocialPop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-social-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 109, 68, 0.25);
}

.team-social-btn svg {
    flex-shrink: 0;
}

.team-values {
    padding: 56px 0 72px;
    background: #fff;
}

.team-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-value-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: #f8faf9;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 109, 68, 0.25);
}

.team-value-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.4rem;
}

.team-value-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.team-value-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.team-cta {
    padding: 0 0 72px;
}

.team-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #006d44, #00875a);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.team-cta-box h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.team-cta-box p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.team-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.team-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-cta-btn--light {
    background: #fff;
    color: var(--primary);
}

.team-cta-btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.team-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.team-loading {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .team-values-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .team-hero {
        padding: 56px 0 44px;
    }

    .team-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 320px;
        gap: 22px;
    }

    .team-card {
        max-width: none;
    }

    .team-card-body {
        padding: 16px 16px 18px;
    }

    .team-card-name {
        font-size: 0.98rem;
    }

    .team-social-btn {
        width: 34px;
        height: 34px;
    }

    .team-cta-box {
        padding: 28px 22px;
        flex-direction: column;
        text-align: center;
    }

    .team-cta-actions {
        width: 100%;
        justify-content: center;
    }

    .team-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card.is-visible,
    .team-social-btn,
    .team-card-shine,
    .team-hero-glow {
        animation: none !important;
        transition: none !important;
    }

    .team-card {
        opacity: 1;
        transform: none;
    }

    .team-social-btn {
        opacity: 1;
        transform: none;
    }
}
