/**
 * 웨딩박람회 파서 스타일
 */

/* 공통 스타일 */
.wedding-fair-container {
    font-family: 'Noto Sans KR', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 지역 네비게이션 */
.wedding-fair-region-nav {
    position: sticky;
    top: 0;
    background-color: #121212;
    padding: 15px 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.wedding-fair-region-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #1e1e1e;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wedding-fair-region-button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.wedding-fair-region-button:active,
.wedding-fair-region-button.active {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(0);
}

/* 지역 제목 스타일 */
.wedding-fair-region-title {
    width: 100%;
    margin: 30px 0 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    grid-column: 1 / -1;
}

.wedding-fair-region-title h2 {
    font-size: 22px;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}

.wedding-fair-region-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, transparent);
    border-radius: 2px;
}

/* 모바일 네비게이션 토글 */
.wedding-fair-nav-toggle {
    display: none;
    width: 100%;
    background-color: #1e1e1e;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.wedding-fair-nav-toggle:after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.wedding-fair-nav-toggle.expanded:after {
    transform: translateY(-50%) rotate(180deg);
}

.wedding-fair-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .wedding-fair-region-nav {
        padding: 15px 10px;
        position: relative;
        z-index: 1000;
    }
    
    .wedding-fair-nav-toggle {
        display: block;
    }
    
    .wedding-fair-nav-buttons {
        display: none;
        max-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 10px;
    }
    
    .wedding-fair-nav-buttons.expanded {
        display: flex;
    }
    
    .wedding-fair-region-button {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 13px;
        width: calc(50% - 5px);
        text-align: center;
        box-sizing: border-box;
    }
    
    .wedding-fair-region-title h2 {
        font-size: 20px;
        color: #00ffff;
    }
    
    /* 네비게이션이 열렸을 때 컨텐츠 위치 조정 */
    .wedding-fair-container.nav-expanded .wedding-fair-grid {
        margin-top: 60px;
    }
}

/* 반응형 그리드 레이아웃 - PC에서 2칸, 모바일에서 1칸 */
.wedding-fair-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .wedding-fair-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 카드 스타일 - 네온 디자인 */
.wedding-fair-card {
    background-color: #121212;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

/* 호버 효과 */
.wedding-fair-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.1);
}

/* 카드 네온 테두리 효과 */
.wedding-fair-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        #ff00e1,
        #00ffff,
        #00ff00,
        #ff00e1
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.wedding-fair-card:hover::before {
    opacity: 1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 130% 0%;
    }
}

.wedding-fair-card-inner {
    padding: 20px;
}

/* 이미지 스타일 */
.wedding-fair-image {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1e1e1e;
}

/* 모바일에서 이미지 높이 조정 */
@media (max-width: 768px) {
    .wedding-fair-image {
        height: 180px;
    }
}

.wedding-fair-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

/* 모바일에서 이미지 표시 최적화 */
@media (max-width: 768px) {
    .wedding-fair-image img {
        object-fit: contain;
        background-color: #1e1e1e;
    }
}

.wedding-fair-card:hover .wedding-fair-image img {
    transform: scale(1.05);
}

/* 내용 스타일 */
.wedding-fair-content {
    padding: 10px;
}

.wedding-fair-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.wedding-fair-date,
.wedding-fair-location {
    font-size: 14px;
    margin: 8px 0;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

/* 버튼 스타일 - 고급 네온 효과 */
.wedding-fair-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background-color: rgba(0, 255, 255, 0.05);
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
}

/* 버튼 호버 효과 - 라이트 슬라이딩 */
.wedding-fair-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        rgba(0, 255, 255, 0.3) 75%, 
        rgba(0, 255, 255, 0.1) 90%, 
        transparent 100%
    );
    transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.wedding-fair-button:hover::before {
    left: 100%;
}

.wedding-fair-button:hover {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.8),
        0 0 30px rgba(0, 255, 255, 0.6),
        0 0 45px rgba(0, 255, 255, 0.4),
        inset 0 0 15px rgba(0, 255, 255, 0.2);
    text-shadow: 
        0 0 5px #00ffff, 
        0 0 10px #00ffff, 
        0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(0, 255, 255, 0.8);
    animation: buttonPulse 2s infinite;
    color: #ffffff;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(0, 255, 255, 0.8),
            0 0 30px rgba(0, 255, 255, 0.6),
            0 0 45px rgba(0, 255, 255, 0.4),
            inset 0 0 15px rgba(0, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.9),
            0 0 35px rgba(0, 255, 255, 0.7),
            0 0 50px rgba(0, 255, 255, 0.5),
            inset 0 0 20px rgba(0, 255, 255, 0.3);
    }
}

.wedding-fair-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.7),
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 10px rgba(0, 255, 255, 0.3);
    transition: all 0.1s ease;
}

/* 모바일 최적화 버튼 */
@media (max-width: 768px) {
    .wedding-fair-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin-top: 10px;
    }
}

/* 공지 메시지 스타일 */
.wedding-fair-notice {
    padding: 20px;
    background-color: #121212;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* 단일 박람회 페이지 스타일 (자동 생성된 포스트용) */
.wedding-fair-single {
    background-color: #121212;
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.wedding-fair-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        #ff00e1,
        #00ffff,
        #00ff00,
        #ff00e1
    );
    background-size: 300% 300%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    animation: borderRotate 4s linear infinite;
}

.wedding-fair-single h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.wedding-fair-single .wedding-fair-image {
    height: 300px;
    margin-bottom: 30px;
}

.wedding-fair-single .wedding-fair-details {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.wedding-fair-single .wedding-fair-details p {
    font-size: 16px;
    margin: 10px 0;
}

.wedding-fair-single .wedding-fair-button {
    margin-top: 25px;
    padding: 12px 25px;
    font-size: 16px;
}