/* ========================================
   간병사 리스트 페이지 스타일 (메인페이지 디자인 적용)
   ======================================== */

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 컨테이너 */
.helper_list_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 검색 섹션 */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.search-group select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.search-group select:focus {
    outline: none;
    border-color: #ff7f2a;
}

.search-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.search-btn,
.reset-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn {
    background: #ff7f2a;
    color: white;
}

.search-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 결과 헤더 */
.result-header {
    margin-bottom: 30px;
}

.result-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.highlight {
    color: #ff7f2a;
}

/* 간병사 카드 그리드 */
.helper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* 간병사 카드 - 메인페이지 스타일 적용 */
.helper-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.helper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff7f2a;
}

/* 헤더 */
.helper-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.helper-header .index {
    font-size: 30px;
    font-weight: 800;
    line-height: 0.7;
    color: #ff7f2a;
}

.helper-header .right span {
    background: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 성별 기호 CSS */
.gender-male {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.gender-male::before {
    content: "♂";
    font-size: 16px;
    color: #007bff;
    font-weight: bold;
}

.gender-female {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.gender-female::before {
    content: "♀";
    font-size: 16px;
    color: #e91e63;
    font-weight: bold;
}

/* 제목 */
.helper-title {
    color: #333;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 3px;
	text-align:center;
}

.helper-card:hover .helper-title {
    color: #ff7f2a;
}

/* 위치 */
.helper-location {
    color: #666;
    font-weight: 300;
    margin-bottom: 15px;
    text-align: center;
}

.helper-card:hover .helper-location {
    color: #999;
}

/* 카드 이미지 */
.helper-image {
    position: relative;
    overflow: visible;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e1e5e9;
    width: 50%;
    margin: 0 auto 20px auto;
    border-radius: 100%;
    padding: 15px;
    aspect-ratio: 1/1;
    transition: border-color 0.3s ease;
}

.helper-card:hover .helper-image {
    border-color: #ff7f2a;
}

.helper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.default-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 48px;
    border-radius: 50%;
}

/* 텍스트 영역 */
.helper-txt {
    padding: 0;
}

/* 평점 */
.helper-price {
    color: #666;
    margin: 15px 0;
    font-weight: 400;
    text-align: center;
    display: block;
}

.helper-card:hover .helper-price {
    color: #999;
}

.helper-price .number {
    font-weight: 600;
    color: #ff7f2a;
}

/* 정보 */
.helper-infos {
    border: none;
    padding-top: 0;
    margin-top: 15px;
    display: flex;
	flex-wrap:wrap;
	justify-content:center;
	
    gap: 15px;
}

.helper-info {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.helper-card:hover .helper-info {
    color: #999;
}

.helper-info .icon {
    font-size: 15px;
    color: #ff7f2a;
}

.helper-info .text {
    font-size: clamp(13px, 1.3vw, 15px)
}

/* 데이터 없음 */
.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-data p {
    font-size: 16px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #ff7f2a;
    color: #ff7f2a;
}

.page-link.active {
    background: #ff7f2a;
    color: white;
    border-color: #ff7f2a;
}

/* ========================================
   간병사 상세보기 페이지 스타일 (VIEW)
   ======================================== */

.helper_view_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 프로필 헤더 */
.profile-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 30px;
}

.profile-image-section {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: center;
}

.profile-image-section .helper-image {
    position: relative;
    overflow: visible;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e1e5e9;
    width: 200px;
    height: 200px;
    border-radius: 100%;
    padding: 15px;
    aspect-ratio: 1/1;
    transition: border-color 0.3s ease;
}

.profile-image-section .helper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-image-section .default-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 48px;
    border-radius: 50%;
}

.rating-section {
    text-align: center;
}

.rating-section .rating {
    justify-content: center;
}

.profile-info-section {
    flex: 1;
}

.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.helper-name-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.helper-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.status-badge {
    background: #ff7f2a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.request-btn {
    background: #ff7f2a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.request-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.request-btn.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
	
}

.request-btn.disabled:hover {
    background: #ccc;
    transform: none;
}


.hourly-rate {
    font-size: 18px;
    font-weight: 600;
    color: #ff7f2a;
    margin-bottom: 25px;
}

/* 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.info-item .value {
    color: #333;
    font-size: 14px;
    text-align: right;
}

/* 콘텐츠 섹션 */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-icon {
    color: #ff7f2a;
    font-size: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.section-content {
    color: #666;
    line-height: 1.6;
}

/* 리뷰 카드 */
.review-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.review-text {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   반응형 디자인
   ======================================== */

@media (max-width: 768px) {
    .helper_list_container,
    .helper_view_container {
        padding: 15px;
    }
	
	/* 간병사 리스트 */
	.helper-location,
	.helper-header {
		margin-bottom:5px;
	}
	
	.helper-infos{
		gap:10px;
	}
	.helper-price,.helper-location{
		margin:5px 0;
	}
	
	.helper-image{
		margin:0 auto 10px auto;
	}
    .search-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .search-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-buttons {
        flex-direction: column;
    }

    .search-btn,
    .reset-btn {
        width: 100%;
    }

    .result-header h2 {
        font-size: 20px;
    }

    .helper-grid {
        grid-template-columns: repeat(auto-fill, minmax(45%, 2fr));
        gap: 15px;
    }

    .helper-card {
        padding: 15px;
    }

    .helper-title {
        font-size: 18px;
    }

    .helper-image {
        width: 60%;
    }

    /* 상세보기 모바일 */
    .profile-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .profile-image-section {
        width: 100%;
        align-items: center;
    }

    .profile-image-section .helper-image {
        width: 50%;
    }

    .profile-header-top {
        flex-direction: column;
        gap: 15px;
    }

    .request-btn {
        width: 100%;
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .helper_list_container,
    .helper_view_container {
        padding: 10px;
    }

    .search-section {
        padding: 15px;
    }

    .helper-grid {
        gap: 10px;
    }

    .helper-card {
        padding: 12px;
    }

    .helper-title {
        font-size: 16px;
    }

    .helper-image {
        width: 70%;
    }

    .helper-info .text {
        font-size: 12px;
    }

    /* 상세보기 모바일 */
    .profile-header {
        padding: 15px;
    }

    .profile-image-section .helper-image {
        width: 120px;
        height: 120px;
    }

    .helper-name {
        font-size: 24px;
    }

    .hourly-rate {
        font-size: 16px;
    }

    .info-item .label,
    .info-item .value {
        font-size: 13px;
    }

    .content-section {
        padding: 15px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .review-card {
        padding: 15px;
    }
}

/* 터치 최적화 */
@media (max-width: 768px) {
    .helper-card,
    .request-btn {
        -webkit-tap-highlight-color: transparent;
    }

    .helper-card:active {
        transform: scale(0.98);
    }

    .request-btn:active {
        transform: scale(0.95);
    }
}





/* ========================================
   서비스 후기 섹션 스타일
   ======================================== */

/* 리뷰 카드 스타일 */
.review-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.review-card:last-child {
    margin-bottom: 0;
}

/* 리뷰 헤더 */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* 별점 스타일 */
.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 16px;
    color: #ddd;
    transition: color 0.2s ease;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-rating .star.empty {
    color: #e9ecef;
}

/* 리뷰 제목 */
.review-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #e9ecef;
}

/* 리뷰 텍스트 */
.review-text {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 12px;
    word-break: keep-all;
}

/* 리뷰 날짜 */
.review-date {
    font-size: 12px;
    color: #999;
    text-align: right;
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
}

/* 리뷰 없음 메시지 */
.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.no-reviews p {
    font-size: 16px;
    font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .review-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .reviewer-name {
        font-size: 15px;
    }
    
    .review-rating {
        align-self: flex-end;
    }
    
    .review-rating .star {
        font-size: 14px;
    }
    
    .review-title {
        font-size: 13px;
        padding: 4px 8px;
        margin-bottom: 8px;
    }
    
    .review-text {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .review-date {
        font-size: 11px;
        padding-top: 6px;
    }
    
    .no-reviews {
        padding: 30px 15px;
    }
    
    .no-reviews p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .review-header {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .reviewer-name {
        font-size: 14px;
    }
    
    .review-rating .star {
        font-size: 13px;
    }
    
    .review-title {
        font-size: 12px;
        padding: 3px 6px;
        margin-bottom: 6px;
    }
    
    .review-text {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .review-date {
        font-size: 10px;
        padding-top: 5px;
    }
    
    .no-reviews {
        padding: 25px 10px;
    }
    
    .no-reviews p {
        font-size: 13px;
    }
}