/* -------------------------------------------------------------------------- */
/* 1. SAYFA BAŞLIĞI (Overlay ile okunabilirlik)                               */
/* -------------------------------------------------------------------------- */
.page-header {
    text-align: center;
    padding: 6rem 0 3rem;
    margin-bottom: 3rem;
    background: transparent;
}

/* Global class devreye girdiğinde başlık renklerini beyaz yap */
body.ieee-animated-bg .page-title {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.ieee-animated-bg .page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* 2. DANIŞMAN KARTI (YATAY & GÜNCELLENMİŞ FOTOĞRAF)                          */
/* -------------------------------------------------------------------------- */
.advisor-section { margin-bottom: 4rem; }

.advisor-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF; /* Beyaz zemin şart */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    border-left: 8px solid var(--color-primary);
}

/* FOTOĞRAF AYARLARI */
.advisor-card__image-wrapper {
    width: 70%; /* Mobilde biraz daha küçük */
    height: 250px;
    margin: 2rem auto 1rem; /* Ortala */
    border-radius: 50%; /* Mobilde yuvarlak avatar gibi */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.advisor-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.advisor-card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.advisor-card__name {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.advisor-card__title {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.advisor-card__bio {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

/* Profil Linki ve Departman Rozeti */
.advisor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.badge--advisor {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #ddd;
}

.advisor-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.advisor-link:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* MASAÜSTÜ DÜZENİ */
@media (min-width: 768px) {
    .advisor-card { flex-direction: row; }
    
    .advisor-card__image-wrapper {
        width: 25%; /* Masaüstünde %25 genişlik */
        height: auto;
        margin: 2rem;
        border-radius: 12px; /* Köşeli yapıya dönüş */
        align-self: flex-start;
        aspect-ratio: 1 / 1.2; /* Oranı koru */
    }
    
    .advisor-card__content { width: 75%; padding: 3rem; }
}

/* -------------------------------------------------------------------------- */
/* 3. FİLTRE BUTONLARI                                                        */
/* -------------------------------------------------------------------------- */
.filters-section { margin-bottom: 3rem; text-align: center; }

.button-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.button {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover { color: #fff; background-color: rgba(255,255,255,0.1); }

.button.is-checked {
    background-color: #fff;
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* 4. ŞAMPİYONLAR LİGİ BANNER (YENİ)                                          */
/* -------------------------------------------------------------------------- */
.champions-banner-section {
    margin-bottom: 3rem;
    text-align: center;
    padding: 0 1rem;
}

.champions-banner {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(0,98,155,0.1), rgba(95,33,103,0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 98, 155, 0.2), inset 0 0 10px rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: bannerFloat 3s ease-in-out infinite;
}

.banner-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff, #a0d8ef, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShimmer 3s linear infinite;
    text-shadow: 0 0 15px rgba(0, 98, 155, 0.6);
}

/* -------------------------------------------------------------------------- */
/* 5. EKİP GRID & KART YAPISI                                                 */
/* -------------------------------------------------------------------------- */
.team-section { margin-bottom: 5rem; min-height: 600px; }

/* Grid Temizleme */
.team-grid:after { content: ''; display: block; clear: both; }

/* ISOTOPE İÇİN GENİŞLİK AYARLARI */
.team-member {
    position: relative;
    float: left;
    width: 100%; /* Mobil: Tek sütun */
    padding: 10px;
}

@media (min-width: 600px) { .team-member { width: 50%; } }      /* Tablet: 2 Sütun */
@media (min-width: 992px) { .team-member { width: 33.333%; } } /* Laptop: 3 Sütun */
@media (min-width: 1200px) { .team-member { width: 25%; } }    /* Desktop: 4 Sütun */

/* KART TASARIMI (BEYAZ ARKA PLAN) */
.member-card {
    background-color: #FFFFFF; /* KESİNLİKLE GEREKLİ */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* --- LİDER KARTI ÖZEL EFEKTİ (GOLD PREMIUM EDITION) --- */
.member-card.leader-card-highlight {
    position: relative;
    z-index: 1;
    /* Kart yapısı */
    border-radius: 12px;
    overflow: hidden; 
    /* Arka planı şeffaf yap, rengi ::after verecek */
    background-color: transparent !important; 
    border: none;
    /* Altın Aura (Nefes Alan Glow Efekti) */
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Aura'nın yavaşça yanıp sönmesi */
    animation: goldPulse 4s ease-in-out infinite;
}

/* 1. DÖNEN ALTIN IŞIK HUZMESİ (Kenarlık Animasyonu) */
.member-card.leader-card-highlight::before {
    content: "";
    position: absolute;
    /* Karttan çok daha büyük, dönerek kenar efektini yaratır */
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    z-index: -2;
    /* Premium Gold Palette: Bronz -> Altın -> Şampanya -> Altın */
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 100deg,
        #8A6E2F 130deg,   /* Derin Bronz/Altın (Gölge) */
        #D4AF37 160deg,   /* Klasik Metalik Altın */
        #FFFACD 180deg,   /* Parlak Şampanya (Highlight) */
        #D4AF37 200deg,   /* Klasik Metalik Altın */
        transparent 360deg
    );
    /* Sürekli, akıcı dönüş */
    animation: borderSpin 4s linear infinite;
}

/* 2. İÇERİK ZEMİNİ (Okunabilirlik İçin Beyaz Maske) */
.member-card.leader-card-highlight::after {
    content: "";
    position: absolute;
    /* Kenarlık kalınlığını ayarlar (3px Altın Çerçeve Bırakır) */
    inset: 3px; 
    background: #FFFFFF; /* İçerik daima temiz beyaz zeminde */
    border-radius: 9px; /* (12px - 3px) */
    z-index: -1;
}

/* Hover Durumu: Altın Enerji Patlaması */
.member-card.leader-card-highlight:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(212, 175, 55, 0.4), /* Geniş Altın Haresi */
        0 0 30px rgba(255, 223, 128, 0.6);   /* Parlak Çekirdek Işığı */
}

/* --- ANİMASYON TANIMLARI --- */

/* Kenarlığın Dönüşü */
@keyframes borderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Altın Auranın Nefes Alması */
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 10px 45px rgba(212, 175, 55, 0.5); }
}

/* -------------------------------------------------------------------------- */
/* 6. KART İÇERİĞİ                                                            */
/* -------------------------------------------------------------------------- */
.member-card__image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #eee;
    border-bottom: 1px solid #f0f0f0;
}

.member-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.member-card:hover .member-card__image img { transform: scale(1.05); }

.member-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------------------- */
/* 7. KART ALTI (BADGES & LINKEDIN)                                           */
/* -------------------------------------------------------------------------- */
.member-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alt hizalama */
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 80%; /* LinkedIn ikonuna yer kalsın */
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.badge--secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    opacity: 0.8;
}

/* LinkedIn Butonu */
.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #999;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.linkedin-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.linkedin-btn:hover {
    color: var(--color-primary);
    background-color: rgba(0, 98, 155, 0.1);
    transform: scale(1.1);
}

.linkedin-btn.disabled {
    pointer-events: none;
    opacity: 0.0; /* Görünmez yap */
}

/* -------------------------------------------------------------------------- */
/* 8. ANIMASYON KEYFRAMES                                                     */
/* -------------------------------------------------------------------------- */
@keyframes textShimmer {
    to { background-position: 200% center; }
}

@keyframes bannerFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 20px rgba(0, 98, 155, 0.2); }
    50% { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 98, 155, 0.4); }
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobilde banner ayarı */
@media (max-width: 768px) {
    .banner-text { font-size: 1rem; }
    .champions-banner { padding: 0.8rem 1.5rem; width: 100%; }
}

/* -------------------------------------------------------------------------- */
/* PREMİUM GOLD CROWN STİLLERİ (YENİ)                                         */
/* -------------------------------------------------------------------------- */

.leader-crown {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 60px; /* Mobilde biraz küçültülebilir */
    height: 60px;
    z-index: 10; /* Kartın üzerinde dursun */
    transform: rotate(-20deg); /* Modern, dinamik açı */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); /* 3D derinlik gölgesi */
    animation: crownFloat 3s ease-in-out infinite; /* Yumuşak yüzme efekti */
}

/* Taç içindeki SVG */
.leader-crown svg {
    width: 100%;
    height: 100%;
    display: block;
    /* Altın rengi ve parlaması SVG içindeki defs ile yönetiliyor */
}

/* Şimşek / Işıltı Animasyonu (Pseudo-element) */
.leader-crown::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.8) 50%, transparent 60%);
    background-size: 200% 200%;
    opacity: 0;
    animation: crownShimmer 4s infinite;
    pointer-events: none; /* Tıklamayı engelleme */
}

/* Hover Etkileşimi */
.member-card:hover .leader-crown {
    animation: crownFloatHover 1.5s ease-in-out infinite; /* Hover'da daha hızlı hareket */
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6)); /* Parlama artar */
    transform: rotate(-20deg) scale(1.1); /* Hafif büyüme */
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .leader-crown {
        width: 50px;
        height: 50px;
        top: -8px;
        left: -8px;
    }
}

/* -------------------------------------------------------------------------- */
/* ANİMASYONLAR (KEYFRAMES)                                                   */
/* -------------------------------------------------------------------------- */

/* Yumuşak Yüzme (Floating) */
@keyframes crownFloat {
    0%, 100% { transform: rotate(-20deg) translateY(0); }
    50% { transform: rotate(-20deg) translateY(-5px); }
}

/* Hover'da Yüzme */
@keyframes crownFloatHover {
    0%, 100% { transform: rotate(-20deg) scale(1.1) translateY(0); }
    50% { transform: rotate(-20deg) scale(1.1) translateY(-3px); }
}

/* Işıltı Geçişi */
@keyframes crownShimmer {
    0% { background-position: 200% 200%; opacity: 0; }
    50% { opacity: 0.5; }
    100% { background-position: -100% -100%; opacity: 0; }
}