/**
 * Kraftdijital Staff Styles
 * Modern team member display
 */

/* ===================================
   STAFF SECTION - HOMEPAGE
   =================================== */

.staff-section {
    padding: 100px 0;
    background: var(--kraft-white);
    position: relative;
    z-index: 2;
}

/* Section Header */
.staff-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.staff-section .section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--kraft-green);
    margin-bottom: 15px;
}

.staff-section .section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--kraft-black);
    margin: 0 0 20px;
    line-height: 1.2;
}

.staff-section .section-description {
    font-size: 18px;
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Staff Member Card */
.staff-member {
    background: var(--kraft-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.staff-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.staff-member-inner {
    padding: 30px 25px;
    text-align: center;
}

/* Staff Photo */
.staff-photo {
    margin-bottom: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.staff-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--kraft-white);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.staff-member:hover .staff-image {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
}

.staff-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    position: relative;
}

.staff-placeholder .dashicons {
    font-size: 48px;
    color: var(--kraft-white);
}

/* Staff Info */
.staff-info {
    text-align: center;
}

.staff-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--kraft-black);
    margin: 0 0 8px;
    line-height: 1.3;
}

.staff-position {
    font-size: 16px;
    font-weight: 600;
    color: var(--kraft-green);
    margin: 0 0 15px;
    line-height: 1.4;
}

.staff-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 15px;
    text-align: center;
    padding: 0 10px;
}

.staff-departments {
    margin-bottom: 15px;
}

.staff-department {
    display: inline-block;
    background: var(--kraft-green);
    color: var(--kraft-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 2px;
    border: 2px solid var(--kraft-green);
    transition: all 0.3s ease;
}

.staff-department:hover {
    background: var(--kraft-white);
    color: var(--kraft-green);
}

.staff-experience {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.staff-experience .dashicons {
    font-size: 16px;
    color: var(--kraft-green);
}

/* Staff Skills */
.staff-skills {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.staff-skill {
    background: rgba(16, 185, 129, 0.1);
    color: var(--kraft-green);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.staff-skill:hover {
    background: var(--kraft-green);
    color: var(--kraft-white);
    border-color: var(--kraft-green);
}

/* Staff Social */
.staff-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.staff-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--kraft-green);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.staff-social-link:hover {
    background: var(--kraft-green);
    color: var(--kraft-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.staff-social-link .dashicons {
    font-size: 18px;
}

/* Staff Actions */
.staff-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.staff-actions .btn-primary,
.staff-actions .btn-secondary {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.staff-actions .btn-primary {
    background: var(--kraft-gradient);
    color: var(--kraft-white);
}

.staff-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.staff-actions .btn-secondary {
    background: transparent;
    color: var(--kraft-green);
    border: 2px solid var(--kraft-green);
}

.staff-actions .btn-secondary:hover {
    background: var(--kraft-green);
    color: var(--kraft-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.staff-social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.staff-social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.staff-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.staff-social-link.facebook:hover {
    background: #4267b2;
    border-color: #4267b2;
}

.staff-social-link.website:hover {
    background: var(--kraft-green);
    border-color: var(--kraft-green);
}

/* View All Button */
.staff-view-all {
    text-align: center;
    margin-top: 40px;
}

.staff-view-all .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--kraft-gradient);
    color: var(--kraft-white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(13, 150, 104, 0.3);
}

.staff-view-all .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 150, 104, 0.4);
    color: var(--kraft-white);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .staff-section .section-title {
        font-size: 40px;
    }
    
    .staff-member-inner {
        padding: 25px 20px;
    }
    
    .staff-image,
    .staff-placeholder {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        display: block;
    }
    
    .staff-placeholder .dashicons {
        font-size: 40px;
    }
    
    .staff-name {
        font-size: 22px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .staff-section {
        padding: 80px 0 60px;
    }
    
    .staff-section .section-header {
        margin-bottom: 40px;
    }
    
    .staff-section .section-title {
        font-size: 32px;
    }
    
    .staff-section .section-description {
        font-size: 16px;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .staff-member-inner {
        padding: 25px 20px;
    }
    
    .staff-image,
    .staff-placeholder {
        width: 90px;
        height: 90px;
        margin: 0 auto;
        display: block;
    }
    
    .staff-placeholder .dashicons {
        font-size: 36px;
    }
    
    .staff-name {
        font-size: 20px;
    }
    
    .staff-position {
        font-size: 15px;
    }
    
    .staff-skills {
        gap: 6px;
    }
    
    .staff-skill {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .staff-social {
        gap: 12px;
    }
    
    .staff-social-link {
        width: 36px;
        height: 36px;
    }
    
    .staff-social-link .dashicons {
        font-size: 16px;
    }
    
    .staff-view-all .btn-primary {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-member {
    animation: fadeInUp 0.6s ease forwards;
}

.staff-member:nth-child(1) { animation-delay: 0.1s; }
.staff-member:nth-child(2) { animation-delay: 0.2s; }
.staff-member:nth-child(3) { animation-delay: 0.3s; }
.staff-member:nth-child(4) { animation-delay: 0.4s; }
.staff-member:nth-child(5) { animation-delay: 0.5s; }
.staff-member:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   ARCHIVE PAGE STYLES
   =================================== */

.staff-archive-header {
    background: var(--kraft-gradient);
    color: var(--kraft-white);
    padding: 100px 0 80px;
    text-align: center;
}

.staff-archive-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
}

.staff-archive-header p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.staff-archive-content {
    padding: 80px 0;
}

.staff-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Department Filter */
.staff-department-filter {
    text-align: center;
    margin-bottom: 50px;
}

.staff-department-filter .filter-button {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid rgba(16, 185, 129, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.staff-department-filter .filter-button:hover,
.staff-department-filter .filter-button.active {
    background: var(--kraft-green);
    color: var(--kraft-white);
    border-color: var(--kraft-green);
}

/* Single Staff Page */
.staff-single-header {
    background: var(--kraft-gradient);
    color: var(--kraft-white);
    padding: 120px 0 80px;
    text-align: center;
}

.staff-single-header .staff-photo {
    margin-bottom: 30px;
}

.staff-single-header .staff-image,
.staff-single-header .staff-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
}

.staff-single-header .staff-placeholder .dashicons {
    font-size: 60px;
}

.staff-single-header .staff-name {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px;
}

.staff-single-header .staff-position {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
    margin: 0 0 20px;
}

.staff-single-content {
    padding: 80px 0;
}

.staff-single-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.staff-single-sidebar {
    background: var(--kraft-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.staff-single-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--kraft-black);
    margin: 0 0 20px;
    border-bottom: 2px solid var(--kraft-green);
    padding-bottom: 10px;
}

.staff-contact-info {
    margin-bottom: 30px;
}

.staff-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-700);
}

.staff-contact-item .dashicons {
    color: var(--kraft-green);
    font-size: 18px;
}

/* Mobile Archive */
@media (max-width: 767px) {
    .staff-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .staff-archive-header h1 {
        font-size: 36px;
    }
    
    .staff-single-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .staff-single-sidebar {
        order: -1;
    }
}
