/* ===========================================
   Staff - 직원 소개 (Premium Design)
   =========================================== */

/* ===================
   1. Page Wrapper
   =================== */
.ddtc-staff-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ===================
   2. Page Header
   =================== */
.ddtc-staff-header {
    text-align: center;
    padding: 3rem 0 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: ddtcStaffFadeUp 0.8s ease forwards;
}

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

.ddtc-staff-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(234, 126, 17, 0.2), rgba(234, 126, 17, 0.05));
    border: 1px solid rgba(234, 126, 17, 0.15);
    margin-bottom: 1.5rem;
    animation: ddtcStaffIconPulse 3s ease-in-out infinite;
}

@keyframes ddtcStaffIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 126, 17, 0.15); }
    50%      { box-shadow: 0 0 24px 6px rgba(234, 126, 17, 0.12); }
}

.ddtc-staff-header__title {
    font-family: 'Galmuri11', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.ddtc-staff-header__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
}

/* 멤버 수 카운터 */
.ddtc-staff-header__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-primary);
}

.ddtc-staff-header__count svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ===================
   3. Staff Grid
   =================== */
.ddtc-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ===================
   4. Staff Card
   =================== */
.ddtc-staff-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: ddtcStaffCardIn 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ddtc-staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(234, 126, 17, 0.3);
    border-color: var(--accent-primary);
}

/* 카드 진입 시차 */
.ddtc-staff-card:nth-child(1)  { animation-delay: 0.1s; }
.ddtc-staff-card:nth-child(2)  { animation-delay: 0.15s; }
.ddtc-staff-card:nth-child(3)  { animation-delay: 0.2s; }
.ddtc-staff-card:nth-child(4)  { animation-delay: 0.25s; }
.ddtc-staff-card:nth-child(5)  { animation-delay: 0.3s; }
.ddtc-staff-card:nth-child(6)  { animation-delay: 0.35s; }
.ddtc-staff-card:nth-child(7)  { animation-delay: 0.4s; }
.ddtc-staff-card:nth-child(8)  { animation-delay: 0.45s; }
.ddtc-staff-card:nth-child(9)  { animation-delay: 0.5s; }
.ddtc-staff-card:nth-child(10) { animation-delay: 0.55s; }
.ddtc-staff-card:nth-child(11) { animation-delay: 0.6s; }
.ddtc-staff-card:nth-child(12) { animation-delay: 0.65s; }

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

/* ── 명함 이미지 영역 ── */
.ddtc-staff-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 300 / 169;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.ddtc-staff-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.ddtc-staff-card:hover .ddtc-staff-card__image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* 이미지 하단 그라데이션 오버레이 */
.ddtc-staff-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ddtc-staff-card:hover .ddtc-staff-card__image::after {
    opacity: 1;
}

/* 이미지 없을 때 placeholder */
.ddtc-staff-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
}

.ddtc-staff-card__image--placeholder svg {
    color: var(--text-muted);
    opacity: 0.3;
}

.ddtc-staff-card__image--placeholder::after {
    display: none;
}

/* ── 직급 뱃지 (글래스모피즘) ── */
.ddtc-staff-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(234, 126, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(234, 126, 17, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ddtc-staff-card__badge::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.8;
    flex-shrink: 0;
}

.ddtc-staff-card:hover .ddtc-staff-card__badge {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 126, 17, 0.4);
}

/* ── 카드 번호 (좌상단) ── */
.ddtc-staff-card__number {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: 'Galmuri11', monospace;
}

/* ── 카드 정보 영역 ── */
.ddtc-staff-card__info {
    padding: 1rem 1.25rem 1.25rem;
}

.ddtc-staff-card__name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.ddtc-staff-card__name {
    font-family: 'Galmuri11', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 직급 인라인 태그 */
.ddtc-staff-card__position-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(234, 126, 17, 0.1);
    border: 1px solid rgba(234, 126, 17, 0.2);
    color: var(--accent-primary);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 소개글 */
.ddtc-staff-card__bio {
    position: relative;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    padding: 0.625rem 0 0 0.75rem;
    border-top: 1px solid var(--border-secondary);
}

.ddtc-staff-card__bio::before {
    content: '';
    position: absolute;
    top: 0.625rem;
    left: 0;
    width: 2px;
    height: calc(100% - 0.625rem);
    background: var(--accent-primary);
    border-radius: 1px;
    opacity: 0.4;
}

/* ===================
   5. Section Divider (팀 구분)
   =================== */
.ddtc-staff-section {
    grid-column: 1 / -1;
    padding: 2rem 0 0.75rem;
}

.ddtc-staff-section:first-child {
    padding-top: 0.5rem;
}

.ddtc-staff-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Galmuri11', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.ddtc-staff-section__title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--accent-primary);
    flex-shrink: 0;
}

.ddtc-staff-section__title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-primary), transparent);
}

/* ===================
   6. Empty State
   =================== */
.ddtc-staff-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-primary);
    border-radius: var(--radius-lg);
}

.ddtc-staff-empty svg {
    opacity: 0.4;
}

.ddtc-staff-empty p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.9375rem;
}

/* ===================
   7. Responsive
   =================== */
@media (max-width: 1024px) {
    .ddtc-staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ddtc-staff-wrapper {
        padding: 1.5rem 1rem 3rem;
    }

    .ddtc-staff-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 1rem;
    }

    .ddtc-staff-header__icon {
        width: 72px;
        height: 72px;
    }

    .ddtc-staff-header__icon svg {
        width: 44px;
        height: 44px;
    }

    .ddtc-staff-header__title {
        font-size: 1.5rem;
    }

    .ddtc-staff-header__subtitle {
        font-size: 0.875rem;
    }

    .ddtc-staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .ddtc-staff-card__info {
        padding: 0.75rem 0.875rem 1rem;
    }

    .ddtc-staff-card__name {
        font-size: 0.9375rem;
    }

    .ddtc-staff-card__position-tag {
        font-size: 0.625rem;
        padding: 2px 7px;
    }

    .ddtc-staff-card__bio {
        font-size: 0.75rem;
    }

    .ddtc-staff-card__badge {
        padding: 3px 8px;
        font-size: 0.625rem;
    }

    .ddtc-staff-card__number {
        width: 24px;
        height: 24px;
        font-size: 0.625rem;
    }

    .ddtc-staff-section {
        padding: 1.5rem 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .ddtc-staff-grid {
        gap: 0.625rem;
    }

    .ddtc-staff-card__name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ddtc-staff-card__bio {
        display: none;
    }

    .ddtc-staff-card__badge {
        top: 6px;
        right: 6px;
    }

    .ddtc-staff-card__number {
        top: 6px;
        left: 6px;
    }
}
