/* assets/css/guide.css - HotelFlow 서포트 포탈 전용 프리미엄 다크 스타일시트 */

:root {
    --bg-dark: #090d16;
    --bg-card: #131b2e;
    --bg-card-hover: #1c2742;
    --primary: #0d9488;
    --primary-light: #2dd4bf;
    --primary-glow: rgba(13, 148, 136, 0.4);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --purple: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.16);
}

body.guide-page {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 네온 Radial Glow 광원 */
body.guide-page::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(9, 13, 22, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
    pointer-events: none;
    filter: blur(90px);
}

/* 1. GNB 헤더 */
.guide-header {
    background-color: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.guide-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.brand-logo span {
    background: linear-gradient(135deg, #2dd4bf, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-badge {
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #2dd4bf;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

.guide-nav-menu {
    display: flex;
    gap: 16px;
    align-items: center;
}

.guide-nav-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.guide-nav-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-admin-login {
    background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-admin-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

/* 2. Hero 검색 섹션 */
.guide-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 20px 50px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.guide-hero-tag {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.guide-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.guide-hero h1 span {
    background: linear-gradient(135deg, #2dd4bf, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-hero p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 35px 0;
    line-height: 1.5;
}

/* 돋보기 검색바 */
.guide-search-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.guide-search-input {
    width: 100%;
    height: 60px;
    background: rgba(19, 27, 46, 0.85);
    border: 1px solid var(--border-bright);
    border-radius: 30px;
    padding: 0 60px 0 55px;
    font-size: 1.05rem;
    color: #ffffff;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.guide-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 25px var(--primary-glow);
}

.guide-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 1.25rem;
    pointer-events: none;
}

.guide-search-clear {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
}

.guide-search-clear:hover {
    color: #ffffff;
}

/* 추천 검색 키워드 태그 */
.popular-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tag-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: rgba(13, 148, 136, 0.2);
    border-color: var(--primary-light);
    color: #2dd4bf;
}

/* 3. 8대 카테고리 Grid */
.category-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.category-card.cat-onboarding .category-icon { background: rgba(13, 148, 136, 0.15); color: #2dd4bf; }
.category-card.cat-dashboard .category-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.category-card.cat-settlement .category-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.category-card.cat-shuttle .category-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.category-card.cat-housekeeping .category-icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.category-card.cat-guest .category-icon { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.category-card.cat-attendance .category-icon { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.category-card.cat-settings .category-icon { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.category-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.category-count {
    font-size: 0.72rem;
    color: var(--primary-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* 4. 상세 매뉴얼 아티클 영역 */
.guide-content-section {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.guide-article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.article-badge {
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

/* 단계별 숫자리스트 */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 20px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--primary-glow);
    font-family: 'Outfit', sans-serif;
}

.step-body {
    flex: 1;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.step-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

/* UI 캡처 이미지 마크업 프레임 */
.guide-img-frame {
    background-color: #0b1120;
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 10px;
    margin: 14px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.guide-img-caption {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.guide-img-frame img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* 💡 현장 팁 & Alert 박스 */
.tip-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tip-box.info {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(45, 212, 191, 0.3);
}

.tip-icon {
    font-size: 1.2rem;
    color: var(--gold);
}

.tip-box.info .tip-icon {
    color: var(--primary-light);
}

.tip-content {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.tip-content strong {
    color: #ffffff;
}

/* 5. FAQ 아코디언 */
.faq-section {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--border-bright);
}

.faq-question {
    padding: 18px 22px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question i {
    color: var(--primary-light);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 20px 22px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
}

/* 검색 하이라이팅 */
.search-highlight {
    background-color: rgba(245, 158, 11, 0.3);
    color: #ffffff;
    padding: 0 2px;
    border-radius: 2px;
}

/* 반응형 모바일 최적화 */
@media (max-width: 768px) {
    .guide-hero h1 { font-size: 1.8rem; }
    .guide-search-input { height: 52px; font-size: 0.95rem; }
    .category-grid { grid-template-columns: 1fr; }
    .guide-article-card { padding: 20px; }
    .article-title { font-size: 1.15rem; }
}
