@charset "utf-8";
/* CSS Document */
/* css/style.css - 메인 스타일시트 */

/* 전역 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 기본 스타일 */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* 컨테이너 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 스타일 */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #2980b9;
}

/* 햄버거 메뉴 */
.hamburger {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: #3498db;
}

/* 메뉴 패널 */
.menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.menu-panel.active {
    right: 0;
}

.menu-panel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* 검색 섹션 */
.search-section {
    margin-bottom: 20px;
}

.search-section input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-section input:focus {
    outline: none;
    border-color: #3498db;
}

.search-section button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-section button:hover {
    background: #2980b9;
}

/* 글자 크기 조절 */
.font-controls {
    margin-top: 20px;
}

.font-controls button {
    padding: 8px 15px;
    margin: 5px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.font-controls button:hover {
    background: #f0f0f0;
}

/* 구약/신약 탭 */
.testament-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    padding: 15px;
    background: #ecf0f1;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab.active {
    background: #3498db;
    color: white;
}

.tab:hover {
    background: #d5dbdb;
}

.tab.active:hover {
    background: #2980b9;
}

/* 성경책 그리드 */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.book-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.book-item h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.book-item .book-code {
    color: #7f8c8d;
    font-size: 14px;
}

/* 컨트롤 패널 */
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.controls select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.controls button {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background: #2980b9;
}

/* 성경 구절 컨테이너 */
.verse-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    line-height: 1.8;
}

.verse-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.verse-item:last-child {
    border-bottom: none;
}

.verse-number {
    display: inline-block;
    width: 30px;
    font-weight: bold;
    color: #3498db;
    text-align: right;
    margin-right: 10px;
    font-size: 14px;
}

.verse-text {
    display: inline;
    font-size: 16px;
}

/* 검색 결과 */
.search-results {
    margin-top: 20px;
}

.search-result-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-result-item .verse-ref {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
    font-size: 14px;
}

.search-result-item .verse-content {
    line-height: 1.6;
    font-size: 15px;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* 페이지네이션 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.pagination button:hover {
    background: #f0f0f0;
}

.pagination button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #3498db;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 로딩 및 기타 */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* 글자 크기 조절 클래스 */
.font-small .verse-text {
    font-size: 14px;
}

.font-medium .verse-text {
    font-size: 16px;
}

.font-large .verse-text {
    font-size: 18px;
}

.font-small .search-result-item .verse-content {
    font-size: 13px;
}

.font-medium .search-result-item .verse-content {
    font-size: 15px;
}

.font-large .search-result-item .verse-content {
    font-size: 17px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .book-item {
        padding: 15px;
    }
    
    .book-item h3 {
        font-size: 16px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls select,
    .controls button {
        margin-bottom: 10px;
    }
    
    .verse-container {
        padding: 15px;
    }
    
    .menu-panel {
        width: 280px;
    }
    

    .search-result-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .testament-tabs {
        flex-direction: column;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .book-item {
        padding: 12px;
    }
    
    .book-item h3 {
        font-size: 14px;
    }
    
    .verse-container {
        padding: 12px;
    }
    
    .verse-number {
        width: 25px;
        font-size: 12px;
    }
    
    .verse-text {
        font-size: 14px;
    }
    
    .menu-panel {
        width: 250px;
    }
}
