/* HC Account - Profile Module CSS */

/* 프로필 모듈 전용 스타일 */
.hc-account1-container {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
}

/* 프로필 헤더 */
.profile-header {
    background: #f8f8f8;
    color: #2c2c2c;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.profile-avatar {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.avatar-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #e8e8e8;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #2c2c2c;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-edit:hover {
    background: #4CAF50;
    transform: scale(1.1);
}

.avatar-edit.uploading {
    background: #FF9800;
    pointer-events: none;
    animation: pulse 1.5s infinite;
}

.avatar-edit.uploading i {
    animation: spin 1s linear infinite;
}

.avatar-edit i {
    font-size: 18px;
}

/* 업로드 중 애니메이션 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 가입 정보 섹션 숨김 */
.profile-section.hide-registration-info {
    display: none !important;
}

/* 하단 링크 스타일 (hc-login-pro와 동일) */
.hc-form-links {
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.hc-link {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0 5px;
}

.hc-link:hover {
    color: #374151;
    background-color: #f3f4f6;
    text-decoration: none;
}

.hc-link i {
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
}

.hc-link-separator {
    color: #d1d5db;
    font-weight: 300;
    margin: 0 10px;
}

/* 링크별 색상 구분 */
.hc-password-link:hover {
    color: #059669;
    background-color: #ecfdf5;
}

.hc-privacy-link:hover {
    color: #7c3aed;
    background-color: #f3f4f6;
}

.hc-qr-link:hover {
    color: #dc2626;
    background-color: #fef2f2;
}

/* QR 코드 모달 스타일 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 로딩 스타일 */
.hc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qr-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.qr-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
}

.qr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.qr-modal-close:hover {
    background-color: #f3f4f6;
    color: #2c2c2c;
}

.qr-modal-body {
    padding: 24px;
}

.qr-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.qr-avatar {
    margin-right: 16px;
}

.qr-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8e8;
}

.qr-user-details h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
}

.qr-user-details p {
    margin: 2px 0;
    font-size: 14px;
    color: #666;
}

.qr-user-id {
    font-family: monospace;
    background-color: #e8e8e8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.qr-options {
    margin-bottom: 24px;
}

.qr-option {
    margin-bottom: 12px;
}

.qr-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2c2c2c;
}

.qr-option-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.qr-code-display {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e8e8e8;
}

.qr-placeholder {
    color: #666;
}

.qr-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #d1d5db;
}

.qr-placeholder p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.qr-modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e8e8e8;
    background-color: #f8f9fa;
}

.qr-modal-footer .btn {
    min-width: 120px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .qr-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .qr-modal-header,
    .qr-modal-body,
    .qr-modal-footer {
        padding: 16px;
    }
    
    .qr-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-avatar {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .qr-modal-footer {
        flex-direction: column;
    }
    
    .qr-modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
}

/* 간단한 QR 코드 스타일 */
.simple-qr-code {
    text-align: center;
    padding: 20px;
}

.qr-pattern {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.qr-square {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #000000;
}

.qr-top-left {
    top: 20px;
    left: 20px;
}

.qr-top-right {
    top: 20px;
    right: 20px;
}

.qr-bottom-left {
    bottom: 20px;
    left: 20px;
}

.qr-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-image: 
        radial-gradient(circle, #000000 1px, transparent 1px),
        radial-gradient(circle, #000000 1px, transparent 1px);
    background-size: 8px 8px, 16px 16px;
    background-position: 0 0, 4px 4px;
}

.qr-text {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.qr-text h4 {
    margin: 0 0 15px 0;
    color: #2c2c2c;
    font-size: 16px;
    text-align: center;
}

.qr-text p {
    margin: 5px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #2c2c2c;
    border-left: 3px solid #007cba;
}

.profile-name {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 8px 0;
    color: #2c2c2c;
    letter-spacing: -0.01em;
}

.profile-username {
    display: none; /* 아이디 및 @ 표시 부분 숨김 */
}

.profile-email {
    font-size: 16px;
    margin: 0;
    color: #666;
    font-weight: 400;
}

/* 프로필 콘텐츠 */
.profile-content {
    padding: 30px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 300;
    color: #2c2c2c;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    letter-spacing: -0.01em;
}

/* 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* 전체 너비 입력란 (주소용) */
.info-item-full {
    grid-column: 1 / -1; /* 전체 그리드 너비 사용 */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input-full {
    width: 100%;
    max-width: none;
}

/* 자기소개 입력란 스타일 */
.form-input-bio {
    width: 100%;
    max-width: 600px;
    resize: vertical;
    min-height: 120px;
    margin-left: 0;
}

/* 자기소개 섹션 정렬 */
.profile-section .info-grid .info-item-full {
    margin-left: 0;
    padding-left: 0;
}

/* 성별 체크박스 스타일 */
.gender-checkboxes {
    display: flex;
    gap: 20px;
    align-items: center;
}

.gender-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.gender-checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2c2c2c;
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 500;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
}

.info-value {
    font-size: 16px;
    color: #2c2c2c;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 0;
    min-height: 20px;
    display: flex;
    align-items: center;
}

/* 폼 입력 필드 */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2c2c2c;
}

.form-input::placeholder {
    color: #999;
}

/* select 요소 특별 스타일 */
.form-input[type="select"],
.form-input select,
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding: 16px 48px 16px 16px;
    cursor: pointer;
    line-height: 1.4;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    color: #2c2c2c;
}

/* select 옵션 스타일 */
.form-input option {
    padding: 16px;
    line-height: 1.4;
    background: #ffffff;
    color: #2c2c2c;
    font-size: 16px;
    height: auto;
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* 교회 검색 관련 스타일 */
.church-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.church-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #666;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
}

.church-search-btn:hover {
    color: #2c2c2c;
}

/* 교회 검색 모달 스타일 */
.hc-church-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.hc-church-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-church-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: none;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hc-church-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.hc-church-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c2c2c;
}

.hc-church-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-church-modal-close:hover {
    color: #2c2c2c;
}

.hc-church-modal-body {
    padding: 20px;
}

.hc-form-group {
    margin-bottom: 20px;
}

.hc-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c2c2c;
    font-size: 14px;
}

.hc-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.hc-form-input:focus {
    outline: none;
    border-color: #2c2c2c;
}

.hc-search-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.hc-search-loading {
    text-align: center;
    padding: 40px 20px;
}

.hc-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hc-loading {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c2c2c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hc-church-search-results {
    margin-top: 20px;
}

.hc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.hc-results-header h4 {
    margin: 0;
    font-size: 16px;
    color: #2c2c2c;
}

.hc-results-count {
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    padding: 4px 8px;
    border-radius: 12px;
}

.hc-results-list {
    max-height: 300px;
    overflow-y: auto;
}

.hc-church-result-item {
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hc-church-result-item:hover {
    border-color: #2c2c2c;
    background: #f8f8f8;
}

.hc-church-result-item h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2c2c2c;
}

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

.hc-no-results-section {
    text-align: center;
    padding: 40px 20px;
}

.hc-no-results-message {
    color: #666;
}

.hc-no-results-message .dashicons {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.hc-text-small {
    font-size: 12px;
    color: #999;
}

.hc-new-church-option {
    text-align: center;
    padding: 20px;
}

.hc-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.hc-btn-primary {
    background: #2c2c2c;
    color: #ffffff;
}

.hc-btn-primary:hover {
    background: #4CAF50;
}

.hc-btn-secondary {
    background: #f8f8f8;
    color: #2c2c2c;
    border: 1px solid #e8e8e8;
}

.hc-btn-secondary:hover {
    background: #e8e8e8;
    border-color: #2c2c2c;
}

.hc-btn-outline {
    background: transparent;
    color: #2c2c2c;
    border: 1px solid #2c2c2c;
}

.hc-btn-outline:hover {
    background: #2c2c2c;
    color: #ffffff;
}

.hc-btn-full {
    width: 100%;
}

.hc-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.hc-form-actions .hc-btn {
    flex: 1;
}

.required {
    color: #e74c3c;
}

/* 버튼 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #2c2c2c;
    color: #ffffff;
}

.btn-primary:hover {
    background: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: #f8f8f8;
    color: #2c2c2c;
    border: 1px solid #e8e8e8;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #2c2c2c;
}

.btn-cancel {
    background: transparent;
    color: #666;
    border: 1px solid #e8e8e8;
}

.btn-cancel:hover {
    border-color: #2c2c2c;
    color: #2c2c2c;
}

/* 프로필 액션 */
.profile-actions {
    margin-top: 30px;
    text-align: center;
}

/* 추가 기능 섹션 (사용하지 않음 - 하단 링크로 대체) */

/* 모바일 반응형 */
@media (max-width: 768px) {
    .profile-header {
        padding: 30px 20px;
    }
    
    .avatar-image {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        border: 3px solid #e8e8e8;
    }
    
    .avatar-edit {
        width: 35px;
        height: 35px;
        bottom: 8px;
        right: 8px;
    }
    
    .avatar-edit i {
        font-size: 16px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px;
        height: auto;
        min-height: 52px;
    }
    
    .form-input[type="select"],
    .form-input select,
    select.form-input {
        padding: 14px 48px 14px 16px;
        height: 52px;
        font-size: 16px;
        line-height: 1.4;
    }
    
    .form-input option {
        padding: 14px 16px;
        font-size: 16px;
        line-height: 1.4;
        min-height: 44px;
    }
    
    /* action-buttons-grid 관련 스타일 제거 (하단 링크로 대체됨) */
    
    .profile-actions-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    /* 모바일에서 하단 링크 스타일 조정 */
    .hc-form-links {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .hc-link {
        display: block;
        margin: 10px 0;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .hc-link-separator {
        display: none;
    }
}
