/**
 * Casino Vendor Grid - 배경 + 캐릭터 카드 스타일
 */

/* 섹션 컨테이너 */
.casino-vendor-section {
    padding: 20px;
    background: transparent;
}

/* 그리드 래퍼 */
.vendor-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
}

/* 벤더 카드 아이템 */
.vendor-card-item {
    position: relative;
    background: #0D0D0D;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vendor-card-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* 카드 내부 */
.vendor-card-inner {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

/* 배경 패턴 이미지 */
.vendor-card-inner .card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 캐릭터 이미지 */
.vendor-card-inner .card-char {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 88%;
    width: auto;
    object-fit: contain;
    z-index: 5;
    transition: transform 0.3s ease;
}

.vendor-card-item:hover .card-char {
    transform: translateX(-50%) scale(1.05);
}

/* 하단 그라디언트 */
.vendor-card-inner .card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
    z-index: 10;
}

/* 호버 플레이 버튼 */
.vendor-card-inner .card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 30;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    letter-spacing: 1px;
}

.vendor-card-item:hover .card-play-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* 벤더 정보 */
.vendor-card-inner .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    z-index: 20;
    text-align: center;
}

.vendor-card-inner .card-name {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.vendor-card-inner .card-en {
    color: #FFD700;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .vendor-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .casino-vendor-section {
        padding: 10px;
    }

    .vendor-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .vendor-card-item {
        border-radius: 8px;
    }

    .vendor-card-inner .card-name {
        font-size: 13px;
    }

    .vendor-card-inner .card-en {
        font-size: 9px;
    }

    .vendor-card-inner .card-play-btn {
        font-size: 11px;
        padding: 8px 16px;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vendor-card-item {
    animation: fadeIn 0.4s ease-out backwards;
}

.vendor-card-item:nth-child(1) { animation-delay: 0.05s; }
.vendor-card-item:nth-child(2) { animation-delay: 0.1s; }
.vendor-card-item:nth-child(3) { animation-delay: 0.15s; }
.vendor-card-item:nth-child(4) { animation-delay: 0.2s; }
.vendor-card-item:nth-child(5) { animation-delay: 0.25s; }
.vendor-card-item:nth-child(6) { animation-delay: 0.3s; }
.vendor-card-item:nth-child(7) { animation-delay: 0.35s; }
.vendor-card-item:nth-child(8) { animation-delay: 0.4s; }
.vendor-card-item:nth-child(9) { animation-delay: 0.45s; }
.vendor-card-item:nth-child(10) { animation-delay: 0.5s; }
.vendor-card-item:nth-child(11) { animation-delay: 0.55s; }
.vendor-card-item:nth-child(12) { animation-delay: 0.6s; }
