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

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

/* ========================================== */
/* 히어로 헤더 영역 */
/* ========================================== */
.tpg-hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.tpg-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%;
}
.tpg-hero-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.75rem;
}
.tpg-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.tpg-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;
}
.tpg-hero-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}
.tpg-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);
}

/* ========================================== */
/* 섹션 카드 공통 */
/* ========================================== */
.tpg-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;
}
.tpg-section:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

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

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

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

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

/* ========================================== */
/* 테이블 */
/* ========================================== */
.tpg-table { width: 100%; border-collapse: collapse; }
.tpg-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;
}
.tpg-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.82rem;
    color: #334155;
    vertical-align: middle;
}
.tpg-table tr:last-child td { border-bottom: none; }
.tpg-table-compact th, .tpg-table-compact td { padding: 0.45rem 0.5rem; }

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

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

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

/* ========================================== */
/* MRT 노선 아이템 */
/* ========================================== */
.tpg-mrt-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.tpg-mrt-item:last-child { border-bottom: none; }
.tpg-mrt-badge {
    min-width: 48px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    color: #fff;
}
.tpg-mrt-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}
.tpg-mrt-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

/* ========================================== */
/* 앱 카드 */
/* ========================================== */
.tpg-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.tpg-app-item:last-child { border-bottom: none; }
.tpg-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.tpg-app-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}
.tpg-app-desc {
    font-size: 0.78rem;
    color: #64748b;
}

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

/* ========================================== */
/* 하단 출처 안내 */
/* ========================================== */
.tpg-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) {
    .tpg-hero { padding: 2rem 1.25rem; border-radius: 20px; }
    .tpg-hero h1 { font-size: 1.3rem; }
    .tpg-hero-icon { font-size: 2rem; }
    .tpg-section-header { padding: 1rem 1.25rem 0; }
    .tpg-section-body { padding: 0.75rem 1.25rem 1.25rem; }
}
