/* ========================================
   TEAM MEMBER MODAL - Profil Fotoğraf Popup
   Ekleme Tarihi: Aralık 2024
   ======================================== */

/* Modal Overlay (Arka plan) */
.team-member-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-member-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.team-member-modal {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
}

.team-member-modal-overlay.active .team-member-modal {
    transform: scale(1);
    opacity: 1;
}

/* Modal İçerik */
.team-member-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Profil Resmi Container */
.team-member-photo {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #000;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Bilgi Overlay (Resim üzerinde) */
.team-member-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 40px 30px 30px;
    color: #fff;
}

.team-member-name {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 10px 0;
    color: #fff;
}

.team-member-position {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ff264a;
    margin: 0;
}

/* Kapatma Butonu */
.team-member-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.team-member-modal-close:hover {
    background: rgba(255, 38, 74, 0.9);
    border-color: #ff264a;
    transform: rotate(90deg);
}

.team-member-modal-close::before,
.team-member-modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
}

.team-member-modal-close::before {
    transform: rotate(45deg);
}

.team-member-modal-close::after {
    transform: rotate(-45deg);
}

/* İsim Hover Efekti */
.post-title.post-title-light {
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.post-title.post-title-light:hover {
    color: #ff264a;
    text-shadow: 0 0 20px rgba(255, 38, 74, 0.5);
}

.post-title.post-title-light::after {
    content: '👁';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-size: 20px;
    transition: opacity 0.3s ease, right 0.3s ease;
}

.post-title.post-title-light:hover::after {
    opacity: 1;
    right: -30px;
}

/* Responsive - Tablet */
@media only screen and (max-width: 995px) {
    .team-member-modal {
        max-width: 95%;
    }
    
    .team-member-photo {
        height: 60vh;
    }
    
    .team-member-name {
        font-size: 36px;
    }
    
    .team-member-position {
        font-size: 14px;
    }
    
    .team-member-modal-close {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
}

/* Responsive - Mobile */
@media only screen and (max-width: 640px) {
    .team-member-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .team-member-photo {
        height: 50vh;
    }
    
    .team-member-info-overlay {
        padding: 30px 20px 20px;
    }
    
    .team-member-name {
        font-size: 28px;
    }
    
    .team-member-position {
        font-size: 12px;
    }
    
    .team-member-modal-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .post-title.post-title-light::after {
        display: none; /* Mobilde göz ikonu gizle */
    }
}

/* Loading State */
.team-member-photo.loading {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth Scroll Lock (Modal açıkken) */
body.modal-open {
    overflow: hidden;
}

/* Touch Feedback - Mobile */
@media (hover: none) {
    .post-title.post-title-light:active {
        color: #ff264a;
        transform: scale(0.98);
    }
}

/* Accessibility */
.team-member-modal:focus {
    outline: 2px solid #ff264a;
    outline-offset: -2px;
}

/* Auto-Close Progress Bar */
.team-member-modal-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 11;
}

.team-member-modal-timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff264a 0%, #ff5a7a 100%);
    width: 100%;
    transform-origin: left;
    animation: timer-countdown 15s linear forwards;
}

@keyframes timer-countdown {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Timer paused state (hover durumunda) */
.team-member-modal:hover .team-member-modal-timer-progress {
    animation-play-state: paused;
}

/* Timer countdown badge (opsiyonel - kaç saniye kaldı) */
.team-member-modal-countdown {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.team-member-modal:hover .team-member-modal-countdown {
    opacity: 1;
}

.team-member-modal-countdown::before {
    content: '⏱';
    font-size: 14px;
}

/* Responsive - Mobile */
@media only screen and (max-width: 640px) {
    .team-member-modal-countdown {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .team-member-modal-timer {
        height: 2px;
    }
}

/* Print - Modal gizle */
@media print {
    .team-member-modal-overlay {
        display: none !important;
    }
}

.team-member-bio-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: transparent;  /* Arka plan yok */
    color: #ff264a;
    border: 2px solid #ff264a;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.team-member-bio-btn:hover {
    background: #ff264a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 38, 74, 0.4);
}

.bio-btn-icon {
    font-size: 12px;
}

.bio-btn-text {
    white-space: nowrap;
}

/* Mobile - Çok daha küçük, minimal */
@media only screen and (max-width: 640px) {
    .team-member-bio-btn {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 9px;
        border-radius: 16px;
        border-width: 1.5px;
        gap: 4px;
    }
    
    .bio-btn-icon {
        font-size: 10px;
    }
}

/* Pulse animation - border */
@keyframes bioButtonPulse {
    0%, 100% { 
        border-color: #ff264a;
        box-shadow: 0 0 0 0 rgba(255, 38, 74, 0);
    }
    50% { 
        border-color: #ff5a7a;
        box-shadow: 0 0 0 4px rgba(255, 38, 74, 0.2);
    }
}

.team-member-bio-btn {
    animation: bioButtonPulse 2s ease-in-out infinite;
}

.team-member-bio-btn:hover {
    animation: none;
}
