/* 공통 스타일 */
* {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* 페이드인 애니메이션 */
@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 1.2s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

/* 일반 페이드인 애니메이션 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 이미지 로딩 효과 */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

img {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* 탭 스타일 */
.tab-button {
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #d4af37;
    color: white;
}

.tab-button:hover:not(.active) {
    background-color: #f5f2ed;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

/* 이미지 갤러리 스타일 */
.gallery-thumbnail {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-thumbnail.active {
    border: 3px solid #d4af37;
}

/* 메인 이미지 전환 효과 */
.main-image {
    transition: opacity 0.5s ease;
}

/* 날짜 입력 필드 스타일링 */
input[type="date"] {
    color: white;
    background: transparent;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

input[type="date"]::-webkit-datetime-edit {
    color: white;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: white;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: white;
}

input[type="date"]::-webkit-datetime-edit-month-field {
    color: white;
}

input[type="date"]::-webkit-datetime-edit-day-field {
    color: white;
}

input[type="date"]::-webkit-datetime-edit-year-field {
    color: white;
}

/* 셀렉트 박스 스타일링 */
select {
    color: white;
    background: transparent;
}

select option {
    color: #333;
    background: white;
}

/* 포커스 시 테두리 제거 */
input[type="date"]:focus,
select:focus {
    outline: none;
    border: none;
}
