/**
 * Team Slider - 팀 홍보 카드 슬라이더
 * 카드 비율: 3:4 (가로:세로)
 * 반응형 사이즈 조절
 */

/* ===== Container ===== */
.team-promo-section{
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 100%;
}

.team-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0px;
    padding: 24px 0;
}

.team-slider__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
    padding: 0px 16px;
}

.team-slider__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #202124;
    margin: 0;
}

.team-slider__title .material-symbols-outlined {
    font-size: 24px;
    color: #1a73e8;
}

.team-slider__nav {
    display: flex;
    gap: 8px;
}

.team-slider__nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background: #fff;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.team-slider__nav-btn:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.team-slider__nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.team-slider__nav-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== Track ===== */
.team-slider__track-wrapper {
    overflow: hidden;
    margin: 0px;
    padding: 20px;
}

.team-slider__track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.team-slider__track.dragging {
    transition: none;
    cursor: grabbing;
}

.team-slider__track-wrapper:hover .team-slider__track {
    cursor: grab;
}

/* ===== Card - 3:4 비율 ===== */
.team-card {
    --card-width: 180px;
    flex: 0 0 var(--card-width);
    aspect-ratio: 3 / 4;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 홍보 카드 스타일 */
.team-card--promoted {
    position: relative;
    border: 2px solid #fff;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
}

.team-card--promoted:hover {
    border: 2px solid #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.team-card__promo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    padding: 1px 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Header - 로고 영역 (카드 높이의 40%) */
.team-card__header {
    position: relative;
    flex: 0 0 30%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card__header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.team-card__logo {
    width: 100px;
    height: 40px;
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
}

.team-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__logo .material-symbols-outlined {
    font-size: 28px;
    color: #9aa0a6;
}

/* Card Body (카드 높이의 60%) */
.team-card__body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.team-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card__sub {
    font-size: 10px;
    color: #5f6368;
    text-align: center;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 14px;
}

.team-card__intro {
    flex: 1;
    font-size: 11px;
    color: #3c4043;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Social Links */
.team-card__socials {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.team-card__social {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: all 0.2s ease;
    text-decoration: none;
}

.team-card__social:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

.team-card__social svg {
    width: 14px;
    height: 14px;
}

.team-card__social--instagram:hover { background: #fce4ec; color: #e91e63; }
.team-card__social--youtube:hover { background: #ffebee; color: #f44336; }
.team-card__social--cafe:hover { background: #e8f5e9; color: #4caf50; }
.team-card__social--kakao:hover { background: #fff8e1; color: #ffc107; }
.team-card__social--homepage:hover { background: #e3f2fd; color: #2196f3; }

/* ===== Empty State ===== */
.team-slider--empty {
    text-align: center;
    padding: 40px 20px;
    color: #5f6368;
}

.team-slider--empty .material-symbols-outlined {
    font-size: 48px;
    color: #dadce0;
    margin-bottom: 12px;
}

/* ===== Indicators ===== */
.team-slider__indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.team-slider__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dadce0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-slider__indicator.active {
    background: #1a73e8;
    width: 24px;
    border-radius: 4px;
}

/* ===== Responsive - Large Desktop ===== */
@media (min-width: 1200px) {
    .team-card {
        --card-width: 200px;
    }

    .team-card__logo {
        width: 100px;
        height: 40px;
    }

    .team-card__name {
        font-size: 15px;
    }

    .team-card__intro {
        font-size: 12px;
    }
}

/* ===== Responsive - Tablet ===== */
@media (max-width: 768px) {
    .team-slider {
        padding: 16px 0px;
    }

    .team-slider__header {
        padding: 0 12px;
    }

    .team-slider__title {
        font-size: 16px;
    }

    .team-slider__track-wrapper {
        width: 95%;
        margin: 0px auto;
        padding: 10px 0px;
    }

    .team-slider__track {
        gap: 12px;
    }

    .team-card {
        --card-width: 150px;
    }

    .team-card__logo {
        width: 80px;
        height: 32px;
    }

    .team-card__logo .material-symbols-outlined {
        font-size: 24px;
    }

    .team-card__body {
        padding: 10px;
    }

    .team-card__name {
        font-size: 13px;
    }

    .team-card__sub {
        font-size: 9px;
    }

    .team-card__intro {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .team-card__social {
        width: 24px;
        height: 24px;
    }

    .team-card__social svg {
        width: 12px;
        height: 12px;
    }

    .team-slider__nav {
        display: none;
    }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 480px) {
    .team-card {
        --card-width: 130px;
    }

    .team-card__header {
        flex: 0 0 35%;
    }

    .team-card__logo {
        width: 70px;
        height: 28px;
    }

    .team-card__logo .material-symbols-outlined {
        font-size: 20px;
    }

    .team-card__body {
        padding: 8px;
    }

    .team-card__name {
        font-size: 12px;
    }

    .team-card__sub {
        display: none;
    }

    .team-card__intro {
        font-size: 9px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }

    .team-card__socials {
        gap: 4px;
    }

    .team-card__social {
        width: 22px;
        height: 22px;
    }

    .team-card__social svg {
        width: 10px;
        height: 10px;
    }
}

/* ===== 팀 홍보 문의 버튼 ===== */
.team-promo-inquiry {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.team-promo-inquiry__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.team-promo-inquiry__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.team-promo-inquiry__btn .material-symbols-outlined {
    font-size: 18px;
}

/* ===== 팀 홍보 문의 모달 ===== */
.team-promo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.team-promo-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.team-promo-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.team-promo-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.team-promo-modal__box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90vw;
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-promo-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.team-promo-modal__header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.team-promo-modal__header .material-symbols-outlined {
    font-size: 24px;
}

.team-promo-modal__close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.team-promo-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.team-promo-modal__body {
    padding: 20px;
    overflow-y: auto;
}

.team-promo-modal__body .promo-info-section h4,
.team-promo-modal__body .promo-steps h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #202124;
}

.team-promo-modal__body .promo-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.team-promo-modal__body .promo-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #3c4043;
    border-bottom: 1px solid #f1f3f4;
}

.team-promo-modal__body .promo-benefits li:last-child {
    border-bottom: none;
}

.team-promo-modal__body .promo-benefits .material-symbols-outlined {
    font-size: 20px;
    color: #1a73e8;
}

.team-promo-modal__body .promo-benefits strong {
    color: #ea4335;
    font-weight: 700;
}

.team-promo-modal__body .promo-steps ol {
    padding-left: 20px;
    margin: 0;
}

.team-promo-modal__body .promo-steps li {
    padding: 6px 0;
    font-size: 14px;
    color: #5f6368;
}

.team-promo-modal__footer {
    padding: 16px 20px;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: center;
}

.team-promo-modal__link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.team-promo-modal__link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.team-promo-modal__link-btn .material-symbols-outlined {
    font-size: 18px;
}

@media (max-width: 480px) {
    .team-promo-modal__box {
        max-height: 90vh;
    }

    .team-promo-modal__header {
        padding: 14px 16px;
    }

    .team-promo-modal__header h3 {
        font-size: 16px;
    }

    .team-promo-modal__body {
        padding: 16px;
    }

    .team-promo-modal__body .promo-benefits li {
        font-size: 13px;
    }
}
