/* Employee Detail Styles */
.emp-detail {
    animation: fadeIn 0.5s ease forwards;
}

.emp-detail__card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Profile Section */
.emp-detail__profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(to right, #F8FAFC, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.emp-detail__photo-wrapper {
    position: relative;
}

.emp-detail__photo {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block;
}

    .emp-detail__photo img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 15%;
        display: block;
    }

.emp-detail__info {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
}

.emp-detail__title {
    display: inline-block;
    background: rgba(28, 69, 139, 0.08);
    color: var(--selcuk-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    align-self: flex-start;
}

.emp-detail__name {
    color: #1E293B;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.emp-detail__position {
    color: #64748B;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Contact Section */
.emp-detail__contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0.5rem;
}

.emp-detail__yok-link,
.emp-detail__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-decoration: none;
}

.emp-detail__yok-link {
    background: var(--selcuk-blue);
    color: #fff;
}

    .emp-detail__yok-link:hover {
        background: var(--selcuk-blue-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(28, 69, 139, 0.2);
    }

.emp-detail__contact-link {
    color: #64748B;
    background: rgba(0, 0, 0, 0.03);
}

    .emp-detail__contact-link:hover {
        background: rgba(28, 69, 139, 0.08);
        color: var(--selcuk-blue);
        transform: translateX(4px);
    }

    .emp-detail__contact-link i,
    .emp-detail__yok-link i {
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
    }

/* Sections */
.emp-detail__sections {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.emp-detail__section {
    background: #F8FAFC;
    border-radius: 12px;
    overflow: hidden;
}

.emp-detail__section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 1.25rem;
    font-size: 1.1rem;
    color: #1E293B;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .emp-detail__section-title i {
        color: var(--selcuk-blue);
    }

.emp-detail__section-content {
    padding: 1.5rem;
}

/* Info Grid */
.emp-detail__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.emp-detail__info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.emp-detail__info-label {
    color: #64748B;
    font-size: 0.875rem;
}

.emp-detail__info-value {
    color: #1E293B;
    font-size: 1rem;
    font-weight: 500;
}

/* Roles Grid */
.emp-detail__roles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.emp-detail__role-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

    .emp-detail__role-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(28, 69, 139, 0.12);
    }

.emp-detail__role-unit {
    color: #1E293B;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.emp-detail__role-title {
    color: #64748B;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive Design */
@media (max-width: 1200px) {
    .emp-detail__profile {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .emp-detail__profile {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .emp-detail__photo-wrapper {
        max-width: 200px;
        margin: 0 auto 1.5rem;
        width: 100%;
    }

    .emp-detail__info {
        align-items: center;
        padding: 0;
        gap: 0.75rem;
    }

    .emp-detail__title {
        margin: 0 auto;
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        align-self: center;
    }

    .emp-detail__name {
        font-size: 1.5rem;
        margin: 0.25rem 0;
    }

    .emp-detail__position {
        font-size: 1rem;
        max-width: 280px;
        margin: 0 auto 0.75rem;
    }

    .emp-detail__contact {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 0.5rem;
        margin: 0.5rem 0;
    }

    .emp-detail__yok-link,
    .emp-detail__contact-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

        .emp-detail__contact-link span,
        .emp-detail__yok-link span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
}

@media (max-width: 768px) {
    .emp-detail__sections {
        padding: 1.5rem;
    }

    .emp-detail__info-grid {
        grid-template-columns: 1fr;
    }

    .emp-detail__section-content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .emp-detail__profile {
        padding: 1rem;
    }

    .emp-detail__yok-link,
    .emp-detail__contact-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .emp-detail__contact i {
        font-size: 1rem;
        min-width: 20px;
    }

    .emp-detail__sections {
        padding: 1rem;
    }

    .emp-detail__section-title {
        padding: 1rem;
        font-size: 1rem;
    }
}
