/**
 * 여행 가이드북 페이지 스타일
 *
 * pages/help/travel-guide-book/{cc}.php 에서 사용하는 CSS 스타일입니다.
 * country-info 페이지와 동일한 디자인 언어를 사용합니다.
 * CSS 접두사: tgb- (travel guide book)
 */

/* 페이지 전체 배경 */
.tgb-page { background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 40%); }

/* ========================================== */
/* 히어로 헤더 영역 */
/* ========================================== */
.tgb-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.tgb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.tgb-hero-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.75rem;
}
.tgb-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.tgb-hero-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.tgb-hero-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}
.tgb-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ========================================== */
/* 섹션 카드 공통 */
/* ========================================== */
.tgb-section {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.tgb-section:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

/* 섹션 헤더 */
.tgb-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.5rem 0;
}
.tgb-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.tgb-section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}
.tgb-section-header h2 small {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 4px;
}
.tgb-section-body { padding: 1rem 1.5rem 1.5rem; }

/* 서브 타이틀 */
.tgb-sub-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tgb-sub-title i { font-size: 0.85rem; color: #64748b; }

/* ========================================== */
/* 심플 리스트 */
/* ========================================== */
.tgb-list-simple-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}
.tgb-list-simple-item:last-child { border-bottom: none; }
.tgb-list-simple-item strong { color: #1e293b; }
.tgb-list-simple-item a { color: #3b82f6; text-decoration: none; }
.tgb-list-simple-item a:hover { color: #1d4ed8; }

/* ========================================== */
/* 체크리스트 */
/* ========================================== */
.tgb-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}
.tgb-checklist-item i {
    color: #22c55e;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* ========================================== */
/* 테이블 */
/* ========================================== */
.tgb-table { width: 100%; border-collapse: collapse; }
.tgb-table th {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
}
.tgb-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.82rem;
    color: #334155;
    vertical-align: middle;
}
.tgb-table tr:last-child td { border-bottom: none; }
.tgb-table-compact th, .tgb-table-compact td { padding: 0.45rem 0.5rem; }

/* ========================================== */
/* 하이라이트 카드 */
/* ========================================== */
.tgb-highlight-card {
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid;
}
.tgb-highlight-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tgb-highlight-card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========================================== */
/* 미니 카드 */
/* ========================================== */
.tgb-card-mini {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
}
.tgb-card-mini-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tgb-card-mini-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 4px 0 2px;
}
.tgb-card-mini-sub {
    font-size: 0.78rem;
    color: #64748b;
}

/* ========================================== */
/* 관광명소 카드 */
/* ========================================== */
.tgb-attraction-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.tgb-attraction-item:last-child { border-bottom: none; }
.tgb-attraction-rank {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tgb-attraction-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}
.tgb-attraction-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}
.tgb-attraction-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.tgb-attraction-meta span {
    font-size: 0.72rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tgb-attraction-meta i { font-size: 0.7rem; }

/* ========================================== */
/* 교통 아이템 */
/* ========================================== */
.tgb-transit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.tgb-transit-item:last-child { border-bottom: none; }
.tgb-transit-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tgb-transit-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}
.tgb-transit-desc {
    font-size: 0.78rem;
    color: #64748b;
}

/* ========================================== */
/* 일정 카드 (추천 일정) */
/* ========================================== */
.tgb-itinerary-day {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}
.tgb-itinerary-day:last-child { margin-bottom: 0; }
.tgb-itinerary-day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}
.tgb-itinerary-day-badge {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}
.tgb-itinerary-day-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}
.tgb-itinerary-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0.3rem 0;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.4;
}
.tgb-itinerary-step i {
    color: #94a3b8;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.7rem;
}

/* ========================================== */
/* 알림 박스 */
/* ========================================== */
.tgb-notice {
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: none;
}
.tgb-notice i { margin-top: 2px; flex-shrink: 0; }
.tgb-notice-warning { background: #fffbeb; color: #92400e; }
.tgb-notice-danger { background: #fef2f2; color: #991b1b; }
.tgb-notice-success { background: #f0fdf4; color: #166534; }
.tgb-notice-info { background: #eff6ff; color: #1e40af; }

/* ========================================== */
/* 하단 출처 안내 */
/* ========================================== */
.tgb-footer-notice {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
}

/* ========================================== */
/* 반응형 */
/* ========================================== */
@media (max-width: 768px) {
    .tgb-hero { padding: 2rem 1.25rem; border-radius: 20px; }
    .tgb-hero h1 { font-size: 1.3rem; }
    .tgb-hero-icon { font-size: 2rem; }
    .tgb-section-header { padding: 1rem 1.25rem 0; }
    .tgb-section-body { padding: 0.75rem 1.25rem 1.25rem; }
}
