@charset "utf-8";

/* 문화사역 스킨 스타일 */

/* 페이지 헤더 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    border-radius: 15px;
    margin-bottom: 2rem;
}

/* 상세보기 페이지 스타일 */
.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.detail-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.info-card, .contact-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8f9fa url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="200" height="200" fill="%23f8f9fa"/><text x="100" y="100" font-family="Arial" font-size="16" fill="%236c757d" text-anchor="middle" dy=".3em">이미지 없음</text></svg>') center/contain no-repeat;
}

/* 탭 스타일 */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: #495057;
}

.nav-tabs .nav-link.active {
    background: #667eea;
    color: white;
    border: none;
}

.tab-content {
    padding: 2rem;
    background: white;
    border-radius: 0 0 15px 15px;
    border: 1px solid #dee2e6;
    border-top: none;
}

/* 글쓰기 폼 스타일 */
.write-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.write-form-container .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

.write-form-container .list-group-item:hover {
    background-color: #f8f9fa;
}

.write-form-container .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 14px;
    transition: all 0.3s ease;
}

.write-form-container .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.write-form-container .form-control.required {
    border-color: #e74c3c;
}

.write-form-container .form-control.required:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.custom-file {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-file:hover {
    border-color: #667eea;
}

.custom-file-input {
    padding: 0.75rem 1rem;
}

.custom-file-label {
    padding: 0.75rem 1rem;
    font-size: 14px;
    color: #6c757d;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* 필터 섹션 */
.filter-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 문화사역 그리드 */
.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 문화사역 카드 */
.ministry-card {
    transition: all 0.3s ease;
}

.ministry-card:hover {
    transform: translateY(-5px);
}

.ministry-card .card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.ministry-card .card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.ministry-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.ministry-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.ministry-card .card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ministry-card .card-title a:hover {
    color: #667eea;
}

.ministry-card .card-body {
    padding: 1.5rem;
}

.ministry-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f8f9fa url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f9fa"/><text x="50" y="50" font-family="Arial" font-size="12" fill="%236c757d" text-anchor="middle" dy=".3em">이미지 없음</text></svg>') center/contain no-repeat;
}

.ministry-card:hover .ministry-image img {
    transform: scale(1.05);
}

/* 이미지가 없을 때 스타일 */
.ministry-image.no-image,
.main-image.no-image {
    background: #f8f9fa url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f9fa"/><text x="50" y="50" font-family="Arial" font-size="12" fill="%236c757d" text-anchor="middle" dy=".3em">이미지 없음</text></svg>') center/contain no-repeat;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.ministry-info {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 600;
    min-width: 70px;
    margin-right: 0.5rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.info-value.text-danger {
    font-weight: 600;
}

/* 페이징 정보 */
.paging-info {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}

/* 페이징 스타일 */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* 통계 정보 */
.ministry-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 배지 스타일 */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.badge-primary {
    background-color: #667eea;
}

.badge-success {
    background-color: #28a745;
}

/* 게시판 기본 버튼 */
.board-buttons {
    text-align: right;
}

.btn_bo_user ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn_bo_user li {
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .ministry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .board-buttons {
        text-align: center;
    }
    
    .btn_bo_user ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .ministry-stats {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .ministry-card .card-header,
    .ministry-card .card-body {
        padding: 1rem;
    }
    
    .ministry-image {
        height: 150px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ministry-card {
    animation: fadeInUp 0.6s ease-out;
}

.ministry-card:nth-child(1) { animation-delay: 0.1s; }
.ministry-card:nth-child(2) { animation-delay: 0.2s; }
.ministry-card:nth-child(3) { animation-delay: 0.3s; }
.ministry-card:nth-child(4) { animation-delay: 0.4s; }
.ministry-card:nth-child(5) { animation-delay: 0.5s; }
.ministry-card:nth-child(6) { animation-delay: 0.6s; }

/* 카테고리별 색상 */
.ministry-card[data-category="음악사역"] .badge-primary {
    background-color: #e74c3c;
}

.ministry-card[data-category="컴퓨터사역"] .badge-primary {
    background-color: #3498db;
}

.ministry-card[data-category="AI사역"] .badge-primary {
    background-color: #9b59b6;
}

.ministry-card[data-category="미술사역"] .badge-primary {
    background-color: #f39c12;
}

.ministry-card[data-category="언어사역"] .badge-primary {
    background-color: #27ae60;
}

.ministry-card[data-category="요리사역"] .badge-primary {
    background-color: #e67e22;
}
