/* 케이터링 이미지 스튜디오 스타일 */

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ed7412;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #de5a08;
}

/* 드래그앤드롭 영역 */
.border-3 {
    border-width: 3px;
}

#dropzone {
    min-height: 200px;
    transition: all 0.3s ease;
}

#dropzone:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(237, 116, 18, 0.15);
}

/* 이미지 카드 호버 효과 */
.group:hover img {
    transform: scale(1.05);
}

.group img {
    transition: transform 0.3s ease;
}

/* 케이터링 유형 버튼 */
button[class*="rounded-xl"] {
    transition: all 0.3s ease;
}

button[class*="rounded-xl"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 프로그레스 바 애니메이션 */
.bg-gradient-to-r {
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* 라이트박스 */
[x-show="lightboxImage"] img {
    max-height: 90vh;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 로딩 애니메이션 */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 펄스 애니메이션 */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 반응형 조정 */
@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
    }
    
    #dropzone {
        padding: 2rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 토스트 메시지 */
[x-show="errorMessage"] {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 결과 이미지 그리드 */
.shadow-lg {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 버튼 호버 효과 */
button, a {
    transition: all 0.2s ease;
}

button:active, a:active {
    transform: scale(0.98);
}

/* 입력 필드 포커스 */
input:focus {
    box-shadow: 0 0 0 3px rgba(237, 116, 18, 0.2);
}

/* 섹션 전환 애니메이션 */
[x-transition] {
    transition: all 0.3s ease;
}

[x-transition]:enter {
    opacity: 0;
    transform: translateY(20px);
}

[x-transition]:enter-end {
    opacity: 1;
    transform: translateY(0);
}

[x-transition]:leave {
    opacity: 1;
    transform: translateY(0);
}

[x-transition]:leave-end {
    opacity: 0;
    transform: translateY(-20px);
}
