/**
 * 파일명: church-info.css
 * 파일위치: /wp-content/plugins/church-info-generator/assets/church-info.css
 * 설명: Church Info Generator Plugin 스타일시트
 */

/* Church Info Generator Plugin Styles */

/* 검색 컨테이너 */
#church-search-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 검색 박스 */
.church-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

#church-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#church-search-input:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

#church-search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#church-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 검색 결과 */
.church-search-results-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.church-result-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.church-result-item:hover {
    background-color: #f8f9fa;
}

.church-result-item:last-child {
    border-bottom: none;
}

.church-result-item h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.church-result-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.select-church-btn {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.select-church-btn:hover {
    background: #218838;
}

/* 교회 정보 카드 */
.church-info-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 30px;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.church-info-card:hover {
    transform: translateY(-4px);
}

/* 교회 헤더 */
.church-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.church-name {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.church-denomination {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 기본 정보 섹션 */
.church-basic-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    align-items: center;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-right: 20px;
}

.info-value {
    color: #6c757d;
    flex: 1;
}

.info-value a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 교회 소개 및 예배 시간 */
.church-description,
.church-service-times {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.church-description h3,
.church-service-times h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.church-description p,
.church-service-times p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

/* 액션 버튼 */
.church-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* 상태 메시지 */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.no-results,
.error {
    text-align: center;
    padding: 30px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 10px 0;
}

/* 애니메이션 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.church-info-card {
    animation: fadeIn 0.6s ease-out;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #church-search-container {
        padding: 15px;
        margin: 10px;
    }
    
    .church-search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    #church-search-btn {
        width: 100%;
    }
    
    .church-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .select-church-btn {
        width: 100%;
    }
    
    .church-info-card {
        padding: 20px;
        margin: 10px 0;
    }
    
    .church-name {
        font-size: 24px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .church-actions {
        flex-direction: column;
    }
}

/* 인쇄 스타일 */
@media print {
    #church-search-container,
    #church-search-results {
        display: none !important;
    }
    
    .church-info-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .church-actions {
        display: none;
    }
    
    .church-name {
        color: #2c3e50 !important;
        -webkit-text-fill-color: #2c3e50 !important;
    }
}