/* 큰사랑교회 사용자 정의 스타일 */

/* 기본 설정 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    
    --font-family-kr: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-kr);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* 상단 바 스타일 */
.top-bar {
    font-size: 0.9rem;
}

.search-form input {
    width: 200px;
}

/* 네비게이션 스타일 */
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 500;
    color: #212529 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 히어로 섹션 스타일 */
.hero-section {
    position: relative;
}

.carousel-slide {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.7));
    background-size: cover;
    background-position: center;
}

.carousel-item h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-item p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 버튼 스타일 */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* 테이블 스타일 */
.table {
    font-size: 0.95rem;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #dee2e6;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.table a:hover {
    color: var(--primary-color);
}

/* 배지 스타일 */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
}

/* 카드 스타일 */
.card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

.card-text {
    line-height: 1.6;
}

/* 섹션 제목 스타일 */
section h2 {
    position: relative;
    color: var(--dark-color);
}

section h3 {
    color: var(--dark-color);
    font-weight: 600;
}

/* 테두리 스타일 */
.border-start.border-primary {
    border-left: 4px solid var(--primary-color) !important;
}

/* 그림자 효과 */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 푸터 스타일 */
footer {
    background: linear-gradient(135deg, var(--dark-color), #343a40);
}

footer h5, footer h6 {
    color: white;
}

footer .text-light {
    color: #adb5bd !important;
}

footer a.text-light:hover {
    color: var(--primary-color) !important;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .top-bar {
        text-align: center;
    }
    
    .search-form {
        margin-top: 0.5rem;
    }
    
    .search-form input {
        width: 150px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* 모바일에서 본문 버튼 크기 조정 */
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .table td .btn-sm .me-1 {
        margin-right: 0.2rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .top-bar .col-md-8,
    .top-bar .col-md-4 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .carousel-slide {
        height: 300px !important;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .g-4 {
        gap: 1rem !important;
    }
    
    /* 모바일에서 테이블 가독성 개선 */
    .table-responsive .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.25rem;
        vertical-align: middle;
    }
    
    /* 본문 버튼 아이콘과 텍스트 간격 조정 */
    .btn-sm .fas {
        font-size: 0.7rem;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 스크롤 바 커스터마이징 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* 포커스 스타일 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 추가 유틸리티 클래스 */
.text-primary-light {
    color: rgba(13, 110, 253, 0.8) !important;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.border-primary-light {
    border-color: rgba(13, 110, 253, 0.3) !important;
}

/* 인쇄 스타일 */
@media print {
    .top-bar,
    .navbar,
    footer,
    .btn,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --light-color: #ffffff;
        --dark-color: #000000;
    }
    
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
/* ==============================
   모바일 최적화 스타일
   ============================== */

@media (max-width: 768px) {
    /* 게시판 테이블 모바일 카드 레이아웃 */
    .table-responsive {
        display: none \!important;
    }
    
    .mobile-card-view {
        display: block \!important;
    }
    
    .post-card {
        background: white;
        border-radius: 10px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
    }
    
    .post-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .post-card-meta {
        display: flex;
        justify-content: space-between;
        color: #6c757d;
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
    
    /* 터치 타겟 최소 크기 보장 */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }
    
    .btn-sm {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem \!important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* 로그인 폼 모바일 패딩 */
    .login-form {
        padding: 1.5rem \!important;
        margin: 1rem;
    }
    
    /* 검색 폼 모바일 최적화 */
    .search-form input {
        width: 100% \!important;
        margin-bottom: 0.5rem;
    }
    
    /* 네비게이션 메뉴 개선 */
    .navbar-toggler {
        padding: 0.5rem;
        border: none;
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-collapse {
        margin-top: 0.5rem;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* 모바일 폼 최적화 */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* iOS 줌 방지 */
    }
    
    /* 모바일 카드 그리드 */
    .col-md-4.col-sm-6 {
        margin-bottom: 1rem;
    }
}

/* 데스크탑에서 모바일 카드 숨김 */
@media (min-width: 769px) {
    .mobile-card-view {
        display: none \!important;
    }
}
EOF < /dev/null
