/* 프로필 상세 페이지 스타일 - Link in Bio 스타일 (그누보드 버전) */

/* ==================== PC 레이아웃 (1100px 컨테이너) ==================== */

.profile-container {
    background: linear-gradient(180deg, #f5f5f8 0%, #eaeef3 100%);
    min-height: calc(100vh - 60px);
    padding: 0 0 60px 0;
    margin-top: var(--top-height);
}

@media (min-width: 1025px) {
    .profile-container {
        padding: var(--top-height) var(--top-padding) 50px;
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .profile-container {
        max-width: 1100px;
        margin: 0 auto;
        background: #fff;
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
        padding-bottom: 80px;
    }
}

/* 프로필 헤더 - 상단 배경 */
.profile-header {
    background: linear-gradient(135deg, #0d284d 0%, #1a4a7a 100%);
    padding: 40px 20px 80px;
    text-align: center;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, #f5f5f8 100%);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-top: 16px;
    position: relative;
    z-index: 10;
}

.profile-type {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-church {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* 공유하기 버튼 */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 10;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-share:active {
    transform: scale(0.97);
}

.btn-share svg {
    flex-shrink: 0;
}

/* 메인 컨텐츠 영역 */
.profile-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 20;
    margin-top: -20px;
}

@media (min-width: 1024px) {
    .profile-content {
        max-width: 600px;
        padding: 0 24px;
    }
}

/* 소개 카드 */
.intro-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.intro-card .intro-text {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    text-align: center;
    margin: 0;
    white-space: pre-wrap;
}

.intro-card.collapsed .intro-text {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.intro-card.collapsed .intro-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
}

.btn-expand {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: #f5f5f8;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-expand:hover {
    background: #eee;
}

/* 링크 버튼 스타일 */
.link-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.link-btn:hover::before {
    width: 300%;
    height: 300%;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.link-btn:active {
    transform: translateY(0);
}

.link-btn .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* 특정 링크 색상 */
.link-btn.phone {
    background: linear-gradient(135deg, #0d284d 0%, #1a4a7a 100%);
    color: #fff;
}

.link-btn.email {
    background: #fff;
    border: 2px solid #0d284d;
    color: #0d284d;
}

/* 이메일 박스 스타일 */
.link-btn.email-box {
    grid-column: 1 / -1;
    cursor: default;
    justify-content: flex-start;
    gap: 8px;
}

.link-btn.email-box:hover {
    
}

.link-btn.email.contact-popup-trigger{
    grid-column: 1 / 1;
    cursor: pointer;
    height: 60px;
    box-sizing: border-box;
    line-height: 1;
}
.link-btn.email.contact-popup-trigger:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.link-btn.email.bank-account-box{
    transform: none;
        height: 60px;
}

.link-btn.email-box:hover::before {
    width: 0;
    height: 0;
}

.link-btn.email-box .email-address {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.btn-copy-email {
    padding: 8px 14px;
    background: #f0f4f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0d284d;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-email:hover {
    background: #e0e8f0;
    border-color: #0d284d;
}

/* 카톡아이디 박스 스타일 */
.link-btn.kakao {
    background: #fff;
    border: 2px solid #fee500;
    color: #3c1e1e;
}

.link-btn.kakao-box {
    grid-column: 1 / -1;
    cursor: default;
    justify-content: flex-start;
    gap: 8px;
}

.link-btn.kakao-box:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.link-btn.kakao-box:hover::before {
    width: 0;
    height: 0;
}

.link-btn.kakao-box .kakao-id {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.btn-copy-kakao {
    padding: 8px 14px;
    background: #fee500;
    border: 1px solid #e6cf00;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3c1e1e;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-kakao:hover {
    background: #ffd900;
    border-color: #3c1e1e;
}

.link-btn.homepage {
    background: #b2d8ff;
    color: #0d284d;
}

.link-btn.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
}

.link-btn.blog {
    background: linear-gradient(135deg, #03c75a 0%, #02a04a 100%);
    color: #fff;
}

.link-btn.cafe {
    background: linear-gradient(135deg, #ffcd00 0%, #e6b800 100%);
    color: #333;
}

.link-btn.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

/* 섹션 타이틀 */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
    padding: 0 8px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.section-divider span {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 유튜브 영상 섹션 */
.youtube-section {
    margin-bottom: 20px;
}

.youtube-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 갤러리 섹션 */
.gallery-section {
    margin-bottom: 20px;
}

.gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll .gallery-item {
    flex: 0 0 calc(100% - 40px);
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-scroll .gallery-item:last-child {
    margin-right: 40px;
}

.gallery-scroll .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 갤러리 인디케이터 */
.gallery-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.gallery-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: all 0.3s;
}

.gallery-indicator .dot.active {
    width: 18px;
    border-radius: 3px;
    background: #0d284d;
}

/* 목록 버튼 */
.back-button-wrap {
    padding: 20px 0;
}

.btn-back-list {
    display: block;
    width: 100%;
    padding: 16px;
    background: #fff;
    color: #0d284d;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn-back-list:hover {
    border-color: #0d284d;
    background: #f8f9fa;
}

/* 라이트박스 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 에러 컨테이너 */
.error-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    margin: 20px 16px;
}

.error-container h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 12px 0;
}

.error-container p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
}

/* 반응형 - 작은 모바일 */
@media (max-width: 767px) {
    .profile-header {
        padding: 30px 16px 70px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 20px;
    }

    .link-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* ==================== PC 전용 스타일 ==================== */
@media (min-width: 1024px) {
    /* 프로필 헤더 */
    .profile-header {
        padding: 50px 40px 90px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        border-width: 5px;
    }

    .profile-info {
        margin-top: 20px;
    }

    .profile-type {
        padding: 8px 20px;
        font-size: 13px;
    }

    .profile-name {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .profile-church {
        font-size: 17px;
    }

    .btn-share {
        margin-top: 20px;
        padding: 12px 24px;
        font-size: 15px;
    }

    /* 소개 카드 */
    .intro-card {
        padding: 28px;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .intro-card .intro-text {
        font-size: 16px;
        line-height: 1.8;
    }

    /* 링크 버튼 */
    .link-buttons {
        gap: 16px;
        margin-bottom: 24px;
    }

    .link-btn {
        padding: 18px 24px;
        font-size: 16px;
        border-radius: 14px;
    }

    /* 섹션 타이틀 */
    .section-divider {
        margin: 36px 0 20px;
    }

    .section-divider span {
        font-size: 14px;
    }

    /* 유튜브 */
    .youtube-section {
        margin-bottom: 24px;
    }

    .youtube-card {
        border-radius: 20px;
        margin-bottom: 16px;
    }

    /* 갤러리 */
    .gallery-section {
        margin-bottom: 24px;
    }

    .gallery-scroll {
        gap: 16px;
    }

    .gallery-scroll .gallery-item {
        flex: 0 0 calc(50% - 8px);
        border-radius: 20px;
    }

    .gallery-scroll .gallery-item:last-child {
        margin-right: 0;
    }

    /* 목록 버튼 */
    .back-button-wrap {
        padding: 30px 0;
    }

    .btn-back-list {
        padding: 18px;
        font-size: 16px;
        border-radius: 14px;
    }

    /* 에러 컨테이너 */
    .error-container {
        padding: 80px 40px;
        border-radius: 20px;
        margin: 30px 24px;
    }

    .error-container h3 {
        font-size: 20px;
    }

    .error-container p {
        font-size: 15px;
    }
}

/* ==================== 연락처 팝업 트리거 스타일 ==================== */
.contact-popup-trigger {
    cursor: pointer;
}

.contact-popup-trigger .contact-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.contact-popup-trigger .contact-arrow {
    font-size: 20px;
    color: #999;
    font-weight: 300;
}

/* 선교편지 링크 버튼 */
.link-btn.mission-letter {
    background: linear-gradient(135deg, #0d284d 0%, #1a4a7a 100%);
    color: #fff;
}

/* 계좌번호 박스 */
.bank-account-box {
    grid-column: 1 / -1;
}

.bank-account-box .bank-account-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

/* ==================== 연락처 팝업 오버레이 ==================== */
.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.contact-popup-overlay.active {
    display: flex;
}

/* 연락처 팝업 */
.contact-popup {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popupSlideUp 0.25s ease-out;
}

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

.contact-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.contact-popup-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.contact-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.contact-popup-close:hover {
    background: #eee;
    color: #333;
}

.contact-popup-body {
    padding: 16px 20px 20px;
}

.contact-popup-item {
    background: #f8f9fa;
    border: 2px solid #0d284d;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.contact-popup-item:last-child {
    margin-bottom: 0;
}

.contact-popup-item.kakao-item {
    border-color: #fee500;
    background: #fffef5;
}

.contact-popup-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-popup-item.kakao-item .contact-popup-label {
    color: #8b7000;
}

.contact-popup-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-popup-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    word-break: break-all;
}

.btn-copy-contact {
    padding: 8px 16px;
    background: #f0f4f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0d284d;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-contact:hover {
    background: #e0e8f0;
    border-color: #0d284d;
}

.btn-copy-contact.kakao {
    background: #fee500;
    border-color: #e6cf00;
    color: #3c1e1e;
}

.btn-copy-contact.kakao:hover {
    background: #ffd900;
    border-color: #3c1e1e;
}

/* ==================== 열방몰 섹션 스타일 ==================== */
.yeolbangmol-section {
    background: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.yeolbangmol-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.yeolbangmol-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 20px 0;
}

.yeolbangmol-section .link-btn.email-box {
    margin-bottom: 16px;
}

.btn-yeolbangmol {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.btn-yeolbangmol:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.btn-yeolbangmol:active {
    transform: translateY(0);
}

.yeolbangmol-desc{text-align: center;     color: #0d284d;  margin-bottom: 20px; font-weight: 500;}
.yeolbangmol-section .btn-yeolbangmol{color: #fff; background: linear-gradient(135deg, #0d284d 0%, #1a4a7a 100%); }
.yeolbangmol-section .btn-yeolbangmol:hover{transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);}


@media(max-width: 767px){

    .link-btn.email.contact-popup-trigger{height: 52px;}
}