/* https://stutter.co.kr/therapy/css/therapy.css */
/* =============================================
   Header - 치료법 페이지 전용 헤더
   ============================================= */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 24px 16px;
    margin: -20px -16px 24px -16px;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

header .meta {
    font-size: 0.85rem;
    opacity: 0.9;
}


/* =============================================
   Language Tabs - 언어 전환 탭
   ============================================= */
.language-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 16px;
}

.tab-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tab-btn.active:hover {
    transform: translateY(-2px);
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .language-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}



/* =============================================
   Source Info Box
   ============================================= */
.source-info {
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #555;
}

/* =============================================
   Section - 컨텐츠 섹션
   ============================================= */
.section {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section h2 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.section p {
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: justify;
    word-break: keep-all;
}

.section p:last-child {
    margin-bottom: 0;
}

/* =============================================
   Highlight Box - 강조 박스
   ============================================= */
.highlight-box {
    background-color: #fff9e6;
    border-left: 4px solid #f1c40f;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 0.95rem;
}

.highlight-box-blue {
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 0.95rem;
}

/* =============================================
   Lists - 다양한 스타일의 리스트
   ============================================= */

/* Symptom List - 증상 리스트 (빨간색) */
.symptom-list {
    background-color: #fef5f5;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.symptom-list ul {
    list-style: none;
    padding-left: 0;
}

.symptom-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.symptom-list li::before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Technique List - 기법 리스트 (초록색) */
.technique-list {
    background-color: #f0f9f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.technique-list ul {
    list-style: none;
    padding-left: 0;
}

.technique-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ccc;
}

.technique-list li:last-child {
    border-bottom: none;
}

.technique-list li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Value List - 가치 리스트 */
.value-list {
    background-color: #f0f9f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.value-list ul {
    list-style: none;
    padding-left: 0;
}

.value-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ccc;
}

.value-list li:last-child {
    border-bottom: none;
}

.value-list li::before {
    content: "✔";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Struggle List - 투쟁 리스트 */
.struggle-list {
    background-color: #fef5f5;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.struggle-list ul {
    list-style: none;
    padding-left: 0;
}

.struggle-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.struggle-list li::before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Goal List - 목표 리스트 */
.goal-list {
    background-color: #f5f0ff;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.goal-list ul {
    list-style: none;
    padding-left: 0;
}

.goal-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ccc;
}

.goal-list li:last-child {
    border-bottom: none;
}

.goal-list li::before {
    content: "▶";
    color: #9b59b6;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Outcome List - 결과 리스트 */
.outcome-list {
    background-color: #e8f8f5;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.outcome-list ul {
    list-style: none;
    padding-left: 0;
}

.outcome-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ccc;
}

.outcome-list li:last-child {
    border-bottom: none;
}

.outcome-list li::before {
    content: "☆";
    color: #1abc9c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* =============================================
   Table - 테이블
   ============================================= */
.table-container {
    overflow-x: auto;
    margin: 16px 0;
}

.arts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.arts-table th,
.arts-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.arts-table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.arts-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.arts-table tr:hover {
    background-color: #e8f4f8;
}

/* =============================================
   Quote - 인용구
   ============================================= */
.quote {
    font-style: italic;
    color: #555;
    border-left: 3px solid #bdc3c7;
    padding-left: 16px;
    margin: 16px 0;
}

/* =============================================
   Conclusion - 결론 섹션
   ============================================= */
.conclusion {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 12px;
    padding: 20px 16px;
    margin-top: 24px;
}

.conclusion h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}


/* =============================================
   Scroll Top Button - 맨 위로 버튼 (개선)
   ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scroll-top-btn:active {
    transform: translateY(-1px);
}



/* =============================================
   Table of Contents (TOC) - 목차
   ============================================= */
.toc-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    position: sticky;
    top: 60px; /* 네비게이션 아래 고정 */
    z-index: 100;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    user-select: none;
}

.toc-toggle:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
}

.toc-icon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.toc-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.toc-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.toc-arrow.active {
    transform: rotate(180deg);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc-list.active {
    max-height: 600px;
    padding: 12px 0;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    display: block;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
    padding-left: 28px;
    color: #667eea;
}


/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .container {
        margin-top: 10px !important;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .section p {
        font-size: 0.95rem;
    }
} /* ← 480px 닫기 */

/* 모바일 최적화 (768px 이하) */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    .toc-container {
        position: relative;
        top: 0;
    }
}


