/* 전역 스타일 */
body {
    font-family: "Pretendard", sans-serif;
}

/* 프로필 컨테이너 스타일 */
.profile-container-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.profile-container {
    width: 100%;
    max-width: 650px;
    background-color: #fff;
    position: relative;
    margin: 20px 0;
    border-radius: 12px;
}

/* 프로필 헤더 스타일 */
.profile-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.profile-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-back-btn img {
    width: 24px;
    height: 24px;
}

.profile-logo {
    display: flex;
    align-items: center;
}

.profile-logo img {
    height: 44px;
    display: block;
}

.profile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-btn img {
    width: 24px;
    height: 24px;
}

/* 프로필 컨텐츠 스타일 */
.profile-content {
    padding: 20px;
    background-color: #FFFFFF;
}

/* 프로필 배지 스타일 */
.profile-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-badge {
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 8px 16px;
    width: fit-content;
}

.profile-badge.verified {
    background-color: #DCFCE7;
}

.profile-badge.insurance {
    background-color: #FEF3C7;
}

.profile-badge.insurance span {
    color: #92400E;
}

.icon-check {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    display: block;
    object-fit: contain;
}

.profile-badge span {
    font-size: 18px;
    color: #15803D;
    font-weight: 500;
}

/* 프로필 메인 카드 스타일 */
.profile-main-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 24px;
    margin: 0 40px 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
}

.profile-title {
    color: #0166FF;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0px;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

/* 프로필 정보 카드 스타일 */
.profile-info-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 0 40px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.profile-info-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info-label {
    font-size: 18px;
    font-weight: 500;
    color: #666666;
    flex: 1;
}

.profile-info-value {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.profile-info-buttons {
    display: flex;
    gap: 8px;
}

.profile-info-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 18px;
    font-weight: 500;
    color: #666;
}

.profile-info-btn.active {
    background-color: #0166FF;
    color: #fff;
}

.profile-rating {
    display: flex;
    align-items: center;
}

.profile-stars {
    display: flex;
    color: #FFC000;
    margin-right: 6px;
}

.profile-star {
    font-size: 18px;
}

.profile-rating-value {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 프로필 소개 카드 스타일 */
.profile-description-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 0 40px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0166FF;
}

.profile-description-text {
    font-size: 18px;
    line-height: 1.5;
    color: #4B5563;
    margin-top: 12px;
}

/* 프로필 포트폴리오 카드 스타일 */
.profile-portfolio-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 0 40px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-portfolio-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-top: 12px;
}

.profile-portfolio-image {
    flex: 0 0 auto;
    width: 180px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

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

/* 프로필 리뷰 카드 스타일 */
.profile-reviews-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 0 40px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-reviews-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-review-count {
    background-color: #0166FF;
    color: #fff;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 600;
}

.profile-highlight {
    font-weight: 700;
}

.profile-review-item {
    padding: 32px 0px;
    border-top: 1px solid #f0f0f0;
}

.profile-review-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.profile-review-date {
    font-size: 14px;
    color: #9CA3AF;
}

.profile-review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0 0 20px;
}

.profile-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: 1px solid #AEAEAE;
    border-radius: 8px;
    background-color: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-more-btn:hover {
    background-color: #F9FAFB;
}

.profile-more-btn svg {
    margin-left: 6px;
}

/* 모든 기본 스타일들이 여기에 위치 */

/* 반응형 스타일 - 항상 파일 맨 아래에 위치 */


/* 전문가 프로필 페이지 스타일 - 피그마 디자인 완전 구현 */

/* 예약 정보 카드 */
.profile-reservation-card {
    background-color: #E8F2FF;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.profile-reservation-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #121212;
    margin: 0 0 16px;
}

.profile-reservation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

.profile-reservation-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.profile-reservation-label {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #666666;
    min-width: 80px;
}

.profile-reservation-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #121212;
}

.profile-reservation-value.price {
    color: #0166FF;
    font-size: 18px;
    font-weight: 700;
}

/* 확정 버튼 */
.profile-confirm-btn {
    background-color: #0166FF;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 18px;
}

.profile-confirm-btn:hover {
    background-color: #0052CC;
}

/* 전문가 정보 카드 */
.profile-expert-card {
    background-color: transparent;
    border-radius: 0;
    padding: 24px 0 0 0;
    border: none;
}

.profile-expert-header {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0 0 12px 0;
}

.profile-expert-image-container {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
}

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

.profile-expert-info {
    flex: 1;
}

.profile-expert-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.profile-expert-badges::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.profile-expert-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-expert-badge.verified {
    background-color: #DCFCE7;
    color: #15803D;
}

.profile-expert-badge.premium {
    background-color: #E3EFFF;
    color: #0166FF;
}

.profile-expert-badge img {
    width: 14px;
    height: 14px;
}

.profile-expert-name {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #121212;
    margin: 0 0 8px;
}

.profile-expert-services {
    display: flex;
    gap: 6px;
}

.profile-service-tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #999999;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #777777;
}

/* 전문가 통계 */
.profile-expert-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
    padding: 24px 0 36px;
}

.profile-info-divider {
    width: 100%;
    max-width: 650px;
    height: 8px;
    background-color: #F8F9FA;
    margin: 0;
}

.profile-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-stat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.profile-stat-label {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #777777;
    width: 100px;
    margin-right: 26px;
}

.profile-stat-value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #121212;
    text-align: left;
}

/* 탭 네비게이션 */
.profile-tabs {
    display: flex;
    margin: 8px 0 40px;
    gap: 0;
    border-bottom: 1px solid #E3E5EA;
}

.profile-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px 2px;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #999999;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    margin-right: 36px;
}

.profile-tab.active {
    color: #121212;
    border-bottom-color: #121212;
    font-weight: 600;
}

@media (max-width: 480px) {
    .profile-tabs {
        margin: 4px 0 24px;
    }

    .profile-tab {
        font-size: 16px;
        margin-right: 20px;
    }
}

/* 고객 후기 섹션 */
.profile-reviews-section {
    margin-bottom: 0;
    padding-bottom: 40px;
}

@media (max-width: 480px) {
    .profile-reviews-section {
        padding-bottom: 24px;
    }
}

.profile-section-divider {
    width: 100%;
    max-width: 650px;
    height: 8px;
    background-color: #F8F9FA;
    margin: 0;
}

.profile-reviews-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-reviews-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #121212;
}

.profile-reviews-count {
    background-color: #0166FF;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.profile-rating-summary {
    text-align: center;
    margin-bottom: 20px;
}

.profile-rating-large {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #121212;
    margin-bottom: 8px;
}

.profile-rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.profile-rating-star {
    width: Auto;
    height: 24px;
}

.profile-rating-note {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #999999;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .profile-rating-stars {
        margin-bottom: 12px;
    }
    
    .profile-rating-star {
        width: Auto;
        height: 18px;
    }
    
    .profile-rating-note {
        font-size: 10px;
        margin-bottom: 24px;
    }
}

/* 개별 후기 */
.profile-review-item {
    border-bottom: 1px solid #F5F5F5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

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

.profile-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.profile-review-location {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #121212;
}

.profile-review-date {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #999999;
}

.profile-review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.profile-review-star {
    width: Auto;
    height: 16px;
    margin-bottom: 6px;
}

.profile-review-images {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.profile-review-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #F0F0F0;
}

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

.profile-review-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 20px;
}

@media (max-width: 480px) {
    .profile-review-text {
        margin-bottom: 10px;
    }
}

.profile-review-more {
    background: none;
    border: 1px solid #0166FF;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #0166FF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    width: 100%;
}

.profile-review-more img {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {

    .profile-review-header {
        margin-bottom: 6px;
    }

    .profile-review-location {
        font-size: 14px;
        font-weight: 500;
    }
    
    .profile-review-date {
        font-size: 12px;
        font-weight: 400;
        line-height: 1.4;
        color: #999999;
    }
    
    .profile-review-rating {
        display: flex;
        gap: 2px;
        margin-bottom: 14px;
    }
    
    .profile-review-star {
        width: Auto;
        height: 14px;
        margin-bottom: 4px;
    }
    
    .profile-review-image {
        width: 100px;
        height: 100px;
    }
}


/* 전문가 정보 섹션 */
.profile-info-section {
    margin-bottom: 0;
    padding: 32px 0;
    margin-top: 0;
}

@media (max-width: 480px) {
    .profile-info-section {
        padding: 24px 0;
    }
}

.profile-info-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #121212;
    margin: 0 0 20px;
}

.profile-info-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-info-image {
    aspect-ratio: 1.2;
    border-radius: 8px;
    overflow: hidden;
}

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

.profile-info-content {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #121212;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .profile-info-content {
        font-size: 14px;
    }
}

.profile-more-info {
    background: none;
    border: none;
    border-top: 1px solid #E3E5EA;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #121212;
    margin-top: 24px;
    outline: none;
}

.profile-more-info-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-more-info img {
    width: 20px;
    height: 20px;
}

/* 반응형 스타일 - 항상 파일 맨 아래에 위치 */
@media (max-width: 480px) {
    /* 컨테이너 & 레이아웃 */
    .profile-container {
        max-width: 100%;
        padding: 0;
        border-radius: 0;
        margin: 0;
    }

    .profile-header-content {
        padding: 12px 16px;
    }

    .profile-content {
        padding: 20px;
    }

    /* 카드 스타일 통일 */
    .profile-main-card,
    .profile-info-card,
    .profile-description-card,
    .profile-portfolio-card,
    .profile-reviews-card {
        margin: 0 20px 16px;
        padding: 24px;
    }

    /* 예약 카드 */
    .profile-reservation-card {
        padding: 20px;
    }

    .profile-reservation-title {
        font-size: 18px;
    }

    .profile-reservation-label,
    .profile-reservation-value {
        font-size: 14px;
    }

    .profile-reservation-value.price {
        font-size: 16px;
    }

    .profile-confirm-btn {
        padding: 12px 0;
        font-size: 16px;
        margin-top: 8px;
    }

    /* 전문가 카드 */
    .profile-expert-card {
        padding: 16px 0 0 0;
    }

    .profile-expert-header {
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 0 0 12px 0;
    }

    .profile-expert-image-container {
        width: 110px;
        height: 110px;
    }

    .profile-expert-name {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .profile-expert-badge {
        gap: 4px;
        padding: 3px 10px;
        font-size: 12px;
    }

    .profile-expert-badge img {
        width: 12px;
        height: 12px;
    }

    .profile-service-tag {
        padding: 3px 8px;
        font-size: 14px;
    }

    /* 통계 섹션 */
    .profile-expert-stats {
        gap: 12px;
        padding: 20px 0 24px;
    }

    .profile-stat-value {
        font-size: 15px;
    }

    .profile-stat-label {
        font-size: 14px;
        width: 80px;
        margin-right: 12px;
    }

    .profile-stat-icon {
        width: 16px;
        height: 16px;
    }

    /* 배지 스타일 */
    .profile-badges {
        margin: 0 20px;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .profile-badges::-webkit-scrollbar {
        display: none;
    }
    
    .profile-badge {
        padding: 6px 12px;
        flex-shrink: 0;
    }
    
    .profile-badge span {
        font-size: 14px;
    }
    
    .icon-check {
        width: 14px;
        height: 14px;
    }

    /* 리뷰 섹션 */
    .profile-rating-large {
        font-size: 28px;
    }

    .profile-reviews-title,
    .profile-info-title,
    .profile-section-title {
        font-size: 20px;
    }

    /* 기타 텍스트 요소 */
    .profile-title {
        font-size: 16px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-info-row {
        padding: 10px 0;
    }
    
    .profile-info-label,
    .profile-info-value,
    .profile-review-text {
        font-size: 14px;
    }

    .profile-info-btn {
        font-size: 14px;
        padding: 4px 10px;
    }

    .profile-info-icon {
        width: 20px;
        height: 20px;
    }
    
    .profile-portfolio-image {
        height: 120px;
    }

    .profile-review-item {
        padding: 24px 0px;
        margin-bottom: 0px;
    }
    
    .profile-more-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .profile-section-divider {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: none;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .profile-container {
        max-width: 100%;
        margin: 0 20px;
        border-radius: 12px;
    }
}

@media (min-width: 769px) {
    .profile-container {
        margin: 20px 0;
        border-radius: 12px;
    }
}