@charset "UTF-8";

/* 라이믹스 게시판 폰트 가독성 및 컨테이너 리셋 */
.sermon-board-list, .sermon-board-read, .sermon-board-write {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* --- [1] 목록 그리드 뷰 스타일링 --- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 12px;
}
.category-tabs li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-radius: 20px;
    background: #f5f5f5;
    transition: all 0.2s ease;
}
.category-tabs li.active a, .category-tabs li a:hover {
    background: #1a73e8;
    color: #fff;
}

.board-toolbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.total-count { font-size: 0.95rem; color: #555; }

/* 반응형 모던 그리드 시스템 기술 */
.sermon-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 576px) { .sermon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { 
    .sermon-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } 
    .sermon-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } 
}

/* 카드 세련된 배열 및 트랜지션 액션 */
.sermon-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sermon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
    border-color: #1a73e8;
}
.card-link { text-decoration: none; color: inherit; display: block; }

/* 썸네일 이미지 정비례 스케일링 가속 */
.thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 규격 유지 */
    background: #f8f9fa;
    overflow: hidden;
}
.thumb-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.sermon-card:hover .thumb-img { transform: scale(1.05); }

.no-thumb {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: #bbb; background: #f1f3f5; font-size: 0.9rem; gap: 8px;
}
.no-thumb i { font-size: 2rem; }
.badge-new {
    position: absolute; top: 12px; left: 12px; background: #ff4757; color: #fff;
    padding: 3px 8px; font-size: 0.75rem; font-weight: bold; border-radius: 4px;
}

.info-wrapper { padding: 18px; }
.category-title { font-size: 0.8rem; color: #1a73e8; font-weight: bold; margin-bottom: 6px; }
.sermon-title {
    font-size: 1.08rem; font-weight: 600; line-height: 1.4; margin: 0 0 10px 0; color: #111;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.0em;
}
.comment-count { color: #ff4757; font-size: 0.95rem; }
.sermon-sub-verse { margin-bottom: 12px; font-size: 0.88rem; color: #666; background: #f8f9fa; padding: 4px 8px; border-radius: 4px; }
.sermon-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #888; border-top: 1px solid #f1f3f5; padding-top: 10px; }

/* --- [2] 본문 읽기 뷰 스타일링 --- */
.read-title { font-size: 1.8rem; font-weight: 700; color: #111; margin-bottom: 20px; line-height: 1.3; }
.sermon-spec-bar {
    display: flex; flex-wrap: wrap; gap: 12px; background: #f4f7fa; padding: 16px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid #1a73e8;
}
.spec-item { display: flex; gap: 8px; font-size: 0.95rem; width: calc(50% - 12px); }
@media (max-width: 576px) { .spec-item { width: 100%; } }
.spec-full { width: 100%; border-top: 1px dashed #dcdfe6; padding-top: 10px; margin-top: 4px; }
.sermon-spec-bar .label { color: #777; font-weight: bold; min-width: 60px; }
.sermon-spec-bar .value { color: #333; }
.sermon-spec-bar .valueHighlight { color: #1a73e8; font-weight: 600; }
.read-meta { font-size: 0.88rem; color: #888; margin-bottom: 25px; display: flex; gap: 15px; }

/* 반응형 16:9 꽉찬 플레이어 박스 연산 */
.read-video-container {
    position: relative; width: 100%; padding-bottom: 56.25%; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.read-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.invalid-video-alert { background: #fff5f5; color: #e93b3b; border: 1px solid #fed7d7; padding: 15px; border-radius: 8px; margin-bottom: 30px; font-weight: 500; }

.read-content { font-size: 1.1rem; color: #2c3e50; line-height: 1.8; margin-bottom: 40px; min-height: 150px; }
.read-attachments { background: #f8f9fa; border: 1px solid #e9ecef; padding: 15px; border-radius: 6px; margin-bottom: 30px; }
.read-attachments h3 { font-size: 0.95rem; margin: 0 0 10px 0; }
.read-attachments ul { list-style: none; padding: 0; margin: 0; }
.read-attachments li a { color: #4a5568; font-size: 0.9rem; text-decoration: none; }
.file-size { color: #a0aec0; }

/* --- [3] 공통 버튼 및 컴포넌트 셋트 --- */
.btn-sermon {
    display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-size: 0.92rem; font-weight: 600; border-radius: 6px; text-decoration: none; cursor: pointer; border: none; gap: 6px; transition: background 0.2s;
}
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #155cb8; }
.btn-default { background: #f1f3f5; color: #495057; }
.btn-default:hover { background: #e2e6ea; }
.btn-modify { background: #ff9f43; color: #fff; }
.btn-delete { background: #ee5253; color: #fff; }
.read-buttons { display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 20px; margin-bottom: 40px; }
.right-buttons { display: flex; gap: 8px; }

/* --- [4] 글쓰기 / 폼 레이아웃 제어 --- */
.write-header h2 { font-size: 1.5rem; border-bottom: 2px solid #222; padding-bottom: 12px; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-label { font-weight: bold; font-size: 0.95rem; color: #2d3748; }
.form-control { width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 0.95rem; box-sizing: border-box; }
.title-input { font-size: 1.1rem; font-weight: 500; }
.form-extra-section { background: #f8fafc; border: 1px solid #e2e8f0; padding: 20px; border-radius: 10px; margin-bottom: 25px; }
.section-sub-title { font-size: 1.1rem; margin: 0 0 6px 0; color: #1a73e8; }
.section-desc { font-size: 0.85rem; color: #718096; margin: 0 0 20px 0; }
.extra-field-loop { display: flex; flex-direction: column; gap: 14px; }
.extra-group { margin-bottom: 5px; }
.required-star { color: #e53e3e; }
.form-options-group { display: flex; gap: 20px; margin: 20px 0; background: #fff; padding: 10px; border-radius: 6px; }
.write-buttons { display: flex; justify-content: center; gap: 12px; border-top: 1px solid #e2e8f0; padding-top: 25px; }

/* --- [5] 댓글 컴포넌트 셋트 --- */
.sermon-comments { border-top: 2px solid #edf2f7; padding-top: 30px; }
.comment-header h3 { font-size: 1.2rem; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px 0; }
.comment-item { padding: 15px 0; border-bottom: 1px solid #edf2f7; }
.comment-item.indent-1 { padding-left: 30px; background: #fafafa; }
.comment-meta { display: flex; gap: 12px; font-size: 0.88rem; margin-bottom: 6px; }
.comment-meta .author { color: #4a5568; }
.comment-meta .date { color: #a0aec0; }
.comment-content { font-size: 0.98rem; color: #2d3748; }
.comment-actions { display: flex; gap: 10px; font-size: 0.82rem; margin-top: 6px; }
.comment-actions a { color: #718096; text-decoration: none; }
.comment-form { background: #f7fafc; padding: 20px; border-radius: 8px; border: 1px solid #e2e8f0; }
.form-anon { display: flex; gap: 10px; margin-bottom: 10px; }
.form-anon input { padding: 8px; border: 1px solid #cbd5e0; border-radius: 4px; font-size: 0.88rem; }
.form-textarea-group { display: flex; gap: 10px; }
.form-textarea-group textarea { flex: 1; padding: 10px; border: 1px solid #cbd5e0; border-radius: 6px; resize: none; }
.btn-submit-comment { background: #4a5568; color: #fff; border: none; padding: 0 20px; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* --- [6] 페이징 및 기타 공통 검색부 --- */
.no-documents { text-align: center; padding: 60px 0; color: #718096; }
.no-documents i { font-size: 3rem; margin-bottom: 10px; display: block; }
.board-footer { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 25px; }
.pagination { display: flex; align-items: center; gap: 4px; }
.page-num, .page-edge { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #e2e8f0; text-decoration: none; color: #4a5568; font-size: 0.9rem; border-radius: 6px; background: #fff; }
.page-num.active { background: #1a73e8; color: #fff; border-color: #1a73e8; font-weight: bold; }
.search-form { display: flex; gap: 6px; max-width: 500px; width: 100%; justify-content: center; }
.search-form select { padding: 8px 12px; border: 1px solid #cbd5e0; border-radius: 6px; background: #fff; }
.search-input-group { display: flex; flex: 1; border: 1px solid #cbd5e0; border-radius: 6px; overflow: hidden; background: #fff; }
.search-input-group input { flex: 1; border: none; padding: 8px 14px; outline: none; }
.btn-search { background: none; border: none; padding: 0 14px; cursor: pointer; color: #718096; font-size: 1.1rem; }