/* =========================================
   Hakkımızda Sayfaları (Ekibimiz, Vizyon & Misyon)
   ========================================= */

/* --- Team Page Styles --- */
.team-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
}

.team-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.team-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: var(--space-3xl) 0;
}

.team-card {
    background: #1a1a1a;
    /* Dark base so when white box fades, it's seamless with the dark overlay */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft initial shadow */
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--color-accent);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    /* Reduced height from 1:1 */
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-image {
    transform: scale(1.05);
}

.team-card-content {
    background: white;
    padding: 1.5rem;
    /* Reduced padding from 2.5rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Hide content smoothly on hover */
.team-card:hover .team-card-content {
    opacity: 0;
    transform: translateY(10px);
}

.team-card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #1a1a1a !important;
    /* Force dark text on white bg */
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.team-card-title {
    color: #8c734b;
    /* Darker accent color for readability */
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-card-meta {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.team-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(200, 170, 110, 0.08);
    /* Subtle gold background */
    color: var(--color-accent);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Overlay Design */
.team-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Elegant dark gradient that lets image peer through at top, solid dark at bottom for text */
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 2.5rem;
    text-align: center;
    z-index: 2;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
}

.overlay-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    /* Limit lines just in case bio is too long for the card height */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background: var(--color-accent);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(200, 170, 110, 0.2);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-secondary);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

/* ==========================================================================
   Profile Detail Page Styles (detay.php)
   ========================================================================== */

.premium-hero {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    padding: 10rem 0 var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(200, 170, 110, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.back-link:hover {
    color: var(--color-accent);
}

.hero-inner-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-photo-wrapper {
    position: relative;
}

.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 2px var(--color-accent);
}

.hero-photo-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-family: var(--font-heading);
    color: #1a1a1a;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.1;
}

.hero-title {
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-bar-info {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent);
}

.hero-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-pill:hover {
    background: rgba(200, 170, 110, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.linkedin-pill:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: #0A66C2;
    color: #0A66C2;
}

/* Detailed Content Section */
.profile-details {
    padding: var(--space-3xl) 0;
    background: #fafafa;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.detail-block {
    margin-bottom: 3rem;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-block h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(200, 170, 110, 0.3);
    position: relative;
}

.detail-block h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}

.detail-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.detail-text p:last-child {
    margin-bottom: 0;
}

/* Sidebar Styling */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.premium-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(200, 170, 110, 0.08);
    /* Gold/Accent background */
    color: #8c734b;
    /* Dark Accent color */
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.premium-badge:hover {
    background: var(--color-accent);
    color: white;
}

.lang-badge {
    background: #f5f5f5;
    color: #4a4a4a;
    /* Dark gray for secondary tag */
    border-color: #e0e0e0;
}

.lang-badge:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sticky-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-inner-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-photo-wrapper {
        display: flex;
        justify-content: center;
    }

    .hero-bar-info {
        padding-left: 0;
        border-left: none;
    }

    .hero-contact {
        justify-content: center;
    }

    .detail-block {
        padding: 2rem 1.5rem;
    }

    .sticky-sidebar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}