/* FAQ 페이지 전용 스타일 */

/* 기본 설정 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 컨테이너 */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

/* 헤더 */
.faq-header {
    padding: 30px 0;
    border-bottom: 3px solid #db1e62;
    margin-bottom: 30px;
}

.faq-title {
    font-size: 32px;
    font-weight: bold;
    color: #252525;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #db1e62;
    text-decoration: underline;
}

/* 파크 탭 */
.park-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.park-tab {
    flex: 1;
    height: 60px;
    background: linear-gradient(135deg, #919191, #7a7a7a);
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.park-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.park-tab:hover::before {
    left: 100%;
}

.park-tab.active {
    background: linear-gradient(135deg, #db1e62, #b91a4f);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.park-tab:hover:not(.active) {
    background: linear-gradient(135deg, #db1e62, #b91a4f);
}

/* 카테고리 네비게이션 */
.category-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-link {
    color: #495057;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
    border: 2px solid transparent;
}

.category-link:hover {
    color: #db1e62;
    background: #fff;
    border-color: #db1e62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 30, 98, 0.2);
}

.category-link.active {
    color: #fff;
    background: linear-gradient(135deg, #db1e62, #b91a4f);
    border-color: #db1e62;
    box-shadow: 0 4px 12px rgba(219, 30, 98, 0.3);
}

.divider {
    color: #dee2e6;
    font-weight: bold;
}

/* 검색 영역 스타일 (FAQ와 동일) */
.search-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    gap: 8px;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.search-select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 160px;
    background: white;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e5e7eb!important;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #db1e62;
    box-shadow: 0 0 0 3px rgba(219, 30, 98, 0.1)
}

.search-btn {
    background: linear-gradient(135deg, #db1e62, #b91a4f);
    color: white;
    border: none;
    padding: 0.25rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn::before {
    content: '🔍';
    font-size: 18px;
    color: white;
    z-index: 1;
    position: relative;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 30, 98, 0.3)
}

/* FAQ 목록 */
.faq-list-container {
    min-height: 400px;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.faq-question::before {
    content: '❓';
    font-size: 24px;
    flex-shrink: 0;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 30px;
    font-size: 24px;
    font-weight: bold;
    color: #db1e62;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-question:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #db1e62;
}

.faq-question:focus {
    outline: 3px solid #db1e62;
    outline-offset: 2px;
}

/* FAQ 답변 */
.faq-answer {
    display: none;
    background: linear-gradient(135deg, #f7f7f7, #eeeeee);
    padding: 30px;
    border-top: 3px solid #db1e62;
    position: relative;
}

.faq-answer.active {
    display: block;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.answer-icon {
    float: left;
    margin-right: 20px;
    margin-top: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.answer-content {
    line-height: 1.8;
    font-size: 15px;
    color: #555;
    margin-left: 60px;
}

.answer-content br {
    margin-bottom: 8px;
}

/* 결과 없음 메시지 */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    font-size: 18px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
    position: relative;
}

.no-results::before {
    content: '🔍';
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 검색 결과 헤더 */
.search-results-header {
    background: linear-gradient(135deg, #db1e62, #b91a4f);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(219, 30, 98, 0.3);
    position: relative;
    overflow: hidden;
}

.search-results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: headerShine 2s ease-in-out infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .faq-container {
        padding: 15px;
        margin: 0 10px;
    }
    
    .faq-title {
        font-size: 24px;
    }
    
    .park-tabs {
        flex-direction: column;
        gap: 1px;
    }
    
    .park-tab {
        height: 50px;
        font-size: 14px;
    }
    
    .category-nav {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .category-link {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .search-input {
        width: 280px;
        height: 40px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .faq-question {
        padding: 20px 20px;
        font-size: 15px;
    }
    
    .faq-question::after {
        right: 20px;
        font-size: 20px;
    }
    
    .faq-answer {
        padding: 20px;
    }
    
    .answer-content {
        margin-left: 50px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        margin: 0 5px;
        padding: 10px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-radius: 20px;
    }
    
    .search-input {
        width: 250px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-question::before {
        font-size: 20px;
    }
    
    .answer-content {
        margin-left: 0;
        font-size: 13px;
    }
    
    .answer-icon {
        float: none;
        display: block;
        margin: 0 0 15px 0;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .faq-question,
    .park-tab,
    .category-link,
    .search-btn {
        transition: none;
    }
    
    .faq-answer {
        animation: none;
    }
    
    .answer-icon {
        animation: none;
    }
    
    .search-container::before,
    .search-results-header::before {
        animation: none;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .faq-container {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .faq-item {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .faq-question {
        background: linear-gradient(135deg, #2a2a2a, #333333);
        color: #e0e0e0;
    }
    
    .faq-answer {
        background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
        color: #cccccc;
    }
    
    .answer-content {
        color: #b0b0b0;
    }
    
    .no-results {
        background: linear-gradient(135deg, #2a2a2a, #333333);
        color: #888;
        border-color: #444;
    }
    
    .category-nav {
        background: linear-gradient(135deg, #2a2a2a, #333333);
    }
    
    .category-link {
        background: #333;
        color: #ccc;
    }
}

/* 인쇄 스타일 */
@media print {
    .search-container,
    .park-tabs,
    .category-nav {
        display: none;
    }
    
    .faq-answer {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .faq-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
} 