﻿/* =========================================================
   KEPSAŞ - YÖNETİM KURULU
   ========================================================= */

:root {
    --team-blue: #1a4c6b;
    --team-ink: #1c2730;
    --team-muted: #6c757d;
    --team-bg: #f8f9fa;
    --team-card-bg: #ffffff;
    --team-border: rgba(26, 76, 107, 0.10);
    --team-border-hover: rgba(26, 76, 107, 0.20);
    --team-shadow: 0 8px 22px rgba(25, 43, 56, 0.06);
    --team-shadow-hover: 0 15px 32px rgba(25, 43, 56, 0.10);
}


/* =========================================================
   SAYFA
   ========================================================= */

.team-page {
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 55px;
    background: var(--team-bg);
}


/* =========================================================
   HERO
   ========================================================= */

.team-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 50px;
    text-align: center;
    background: radial-gradient( circle at 50% 0%, rgba(13, 110, 253, 0.08), transparent 55% );
}

.team-hero-container {
    position: relative;
    z-index: 2;
}

.team-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


/* =========================================================
   HERO ETİKETİ
   ========================================================= */

.team-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    color: #0d6efd;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 999px;
    box-shadow: 0 5px 15px rgba(25, 43, 56, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}


/* =========================================================
   HERO BAŞLIK
   ========================================================= */

.team-hero h1 {
    margin: 0 0 1rem;
    color: #212529;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.4px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.team-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--team-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

    .team-breadcrumb span {
        color: #0d6efd;
    }


/* =========================================================
   KART ALANI
   ========================================================= */

.team-section {
    position: relative;
    z-index: 5;
    margin-top: -18px;
}


/* =========================================================
   KART
   ========================================================= */

.team-card {
    width: 100%;
    max-width: 330px;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: var(--team-card-bg);
    border: 1px solid var(--team-border);
    border-radius: 12px;
    box-shadow: var(--team-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .team-card:hover {
        transform: translateY(-4px);
        border-color: var(--team-border-hover);
        box-shadow: var(--team-shadow-hover);
    }


/* =========================================================
   FOTOĞRAF
   ========================================================= */

.team-image-wrapper {
    width: 100%;
    height: 330px;
    overflow: hidden;
    background: #e9ecef;
}

.team-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.team-card:hover .team-img {
    transform: scale(1.018);
    filter: contrast(1.02);
}


/* =========================================================
   İÇERİK
   ========================================================= */

.team-content {
    padding: 20px 18px 22px;
    text-align: center;
}

.team-position {
    display: block;
    min-height: 18px;
    margin-bottom: 7px;
    color: var(--team-blue);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.team-name {
    margin: 0;
    color: var(--team-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.team-title-line {
    width: 28px;
    height: 2px;
    margin: 14px auto 0;
    background: rgba(26, 76, 107, 0.42);
    border-radius: 20px;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.team-card:hover .team-title-line {
    width: 46px;
    background: var(--team-blue);
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1199.98px) {

    .team-card {
        max-width: 310px;
    }

    .team-image-wrapper {
        height: 310px;
    }
}


/* =========================================================
   TABLET
   2 kolon korunur
   ========================================================= */

@media (max-width: 991.98px) {

    .team-page {
        padding-bottom: 46px;
    }

    .team-hero {
        padding: 34px 0 42px;
    }

        .team-hero h1 {
            font-size: clamp(32px, 6vw, 44px);
        }

    .team-section {
        margin-top: -12px;
    }

        .team-section > .row {
            --bs-gutter-x: 1rem;
            --bs-gutter-y: 1rem;
        }

    .team-card {
        max-width: none;
    }

    .team-image-wrapper {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .team-content {
        padding: 18px 16px 20px;
    }
}


/* =========================================================
   MOBİL
   Dikey dev kart yerine yatay, kompakt profil kartı
   ========================================================= */

@media (max-width: 575.98px) {

    .team-page {
        padding-bottom: 32px;
    }

    .team-hero {
        padding: 24px 0 34px;
    }

    .team-eyebrow {
        margin-bottom: 0.7rem;
        padding: 0.42rem 0.95rem;
        font-size: 0.66rem;
        letter-spacing: 0.55px;
    }

    .team-hero h1 {
        margin-bottom: 8px;
        font-size: clamp(28px, 8vw, 34px);
        letter-spacing: -0.8px;
    }

    .team-breadcrumb {
        gap: 0.35rem;
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .team-section {
        margin-top: -8px;
        padding-right: 10px;
        padding-left: 10px;
    }

        .team-section > .row {
            --bs-gutter-y: 0.7rem;
            margin-right: 0;
            margin-left: 0;
        }

            .team-section > .row > [class*="col-"] {
                width: 100%;
                padding-right: 0;
                padding-left: 0;
            }

    /*
     * Modern mobil davranış:
     * Kart artık 300px yüksek portre değil.
     * Fotoğraf solda, bilgiler sağda.
     */
    .team-card {
        max-width: none;
        min-height: 126px;
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: stretch;
        margin: 0;
        border-radius: 11px;
    }

    .team-image-wrapper {
        width: 112px;
        height: 100%;
        min-height: 126px;
        aspect-ratio: auto;
    }

    .team-img {
        object-position: center top;
    }

    .team-content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 15px 15px 14px;
        text-align: left;
    }

    .team-position {
        min-height: 0;
        margin-bottom: 5px;
        font-size: 0.58rem;
        line-height: 1.3;
        letter-spacing: 0.45px;
    }

    .team-name {
        font-size: 1rem;
        line-height: 1.2;
        letter-spacing: -0.15px;
    }

    .team-title-line {
        width: 24px;
        margin: 10px 0 0;
    }

    .team-card:hover {
        transform: none;
    }

        .team-card:hover .team-title-line {
            width: 34px;
        }
}


/* =========================================================
   ÇOK KÜÇÜK MOBİL
   ========================================================= */

@media (max-width: 390px) {

    .team-card {
        min-height: 116px;
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .team-image-wrapper {
        width: 98px;
        min-height: 116px;
    }

    .team-content {
        padding: 12px 12px 11px;
    }

    .team-position {
        font-size: 0.53rem;
        letter-spacing: 0.3px;
    }

    .team-name {
        font-size: 0.94rem;
    }
}


/* =========================================================
   HAREKET AZALTMA
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .team-card,
    .team-img,
    .team-title-line {
        transition: none;
    }

        .team-card:hover {
            transform: none;
        }

            .team-card:hover .team-img {
                transform: none;
                filter: none;
            }
}
