/* 심플한 열차 시간표 스타일시트 - SEO 최적화 버전 */

:root {
    --primary: #0066cc;
    --text: #333;
    --gray: #666;
    --light-gray: #f5f5f5;
    --border: #ddd;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 헤더 */
header {
    text-align: center;
    padding: 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    margin-bottom: 24px;
}

#main-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.article-meta {
    font-size: 13px;
    color: var(--white);
}

.article-meta time {
    color: var(--white);
    opacity: 1;
}

/* 날짜 정보 - 헤더에 이미 있으므로 숨김 */
.date-info {
    display: none;
}

/* 인트로 */
.intro {
    background: #e8f4fd;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.intro h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.intro p {
    font-size: 16px;  /* 14px에서 16px로 변경 */
    color: var(--text);
    margin: 8px 0;
    line-height: 1.6;
}

/* 업데이트 정보는 숨김 (중복) */
.intro p:has(strong:first-child) {
    display: none;
}

/* H2, H3 스타일 */
h2 {
    font-size: 20px;
    color: var(--primary);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

h3 {
    font-size: 18px;
    color: var(--primary);
    margin: 25px 0 15px 0;
    padding: 10px 0 8px 0;
    border-bottom: 1px solid var(--border);
    background: #f8f9fa;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

/* 시간표 섹션 */
.train-section {
    margin-bottom: 30px;
}

/* 기존 탭 관련 스타일 제거 */
/* .tabs, .tab, .tab-content 등은 제거됨 */

/* 열차 카드 */
.train-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.train-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.train-type {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.train-number {
    font-size: 12px;
    color: var(--gray);
    background: var(--light-gray);
    padding: 4px 8px;
    border-radius: 4px;
}

.train-times {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.time {
    text-align: center;
}

.time-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
}

.time-value {
    font-size: 18px;
    font-weight: 600;
}

.arrow {
    font-size: 18px;
    color: var(--gray);
}

.train-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--light-gray);
    border-radius: 4px;
}

.detail-label {
    color: var(--gray);
}

.detail-value {
    font-weight: 600;
}

/* 버튼 */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-left,
.btn-right {
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    color: var(--white);
}

.btn-left {
    background: #666;
}

.btn-right {
    background: var(--primary);
}

.btn-left:hover,
.btn-right:hover {
    opacity: 0.9;
}

/* 관련 링크 */
.related-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.related-links h2 {
    font-size: 16px;
    margin: 0 0 12px 0;
}

/* 푸터 */
footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--gray);
}

/* 빈 상태 */
.no-trains {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 16px;
    }

    #main-title {
        font-size: 20px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
}