/* 리뷰 페이지 전용 스타일 */

/* 네비게이션 메뉴 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.btn-write-review {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

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

/* 리뷰 컨테이너 */
.review-container {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

/* 리뷰 헤더 */
.review-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.review-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.review-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 평점 요약 */
.rating-summary {
    margin-top: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 450px;
    margin: 2rem auto;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.rating-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.rating-average {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.rating-score {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-stars {
    font-size: 1.75rem;
    color: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.rating-count {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
}

/* 필터 */
.review-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.filter-btn {
    padding: 0.875rem 1.75rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before {
    width: 200px;
    height: 200px;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

/* 리뷰 그리드 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    min-height: 400px;
    animation: fadeInUp 1s ease 0.4s both;
}

/* 리뷰 없을 때 */
.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    border-radius: 24px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.no-reviews::before {
    content: '✨';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.no-reviews::after {
    content: '💬';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite 0.5s;
}

.no-reviews-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(50%);
    animation: bounce 2s ease-in-out infinite;
}

.no-reviews h3 {
    font-size: 1.75rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.no-reviews p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto;
}

.no-reviews .btn-write-review {
    margin-top: 2rem;
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.no-reviews p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.no-reviews .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.no-reviews .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 리뷰 카드 */
.review-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.review-card:hover::before {
    transform: scaleX(1);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.review-header-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-info h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.reviewer-company {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.review-rating {
    color: #FFB800;
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(255, 184, 0, 0.3));
}

.review-content {
    margin-bottom: 1rem;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.review-text {
    color: var(--gray-700);
    line-height: 1.6;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-300);
}

.project-type {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.review-date {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* 더보기 버튼 */
.load-more-container {
    text-align: center;
    margin-top: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-load-more {
    padding: 1.25rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-load-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-load-more:hover::before {
    width: 300px;
    height: 300px;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 리뷰 작성 페이지 */
.write-review-container {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* 인증 모달 */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-content {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.3s ease;
}

.auth-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-content p {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.auth-content input {
    font-size: 1.25rem;
    text-align: center;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.auth-content small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.auth-content .btn {
    width: 100%;
    margin-top: 1rem;
}

/* 인증 정보 표시 */
.auth-info {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(72, 187, 120, 0.1) 100%);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-badge {
    font-weight: 600;
    color: #48BB78;
}

#authCustomerInfo {
    color: var(--gray-700);
}

.write-review-header {
    text-align: center;
    margin-bottom: 3rem;
}

.write-review-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 리뷰 폼 */
.review-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-300);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* 별점 입력 */
.rating-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rating-input .star {
    font-size: 2rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.rating-input.small .star {
    font-size: 1.5rem;
}

.rating-input .star:hover,
.rating-input .star.filled {
    color: #FFB800;
}

/* 견적 CTA 섹션 */
.estimate-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    position: relative;
    overflow: hidden;
}

.estimate-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-text p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
}

.cta-feature svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.cta-feature span {
    font-weight: 600;
    font-size: 1rem;
}

.cta-action {
    text-align: center;
}

.btn-estimate-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-estimate-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-estimate-large:hover::before {
    transform: translateX(0);
}

.btn-estimate-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-estimate-large svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.btn-estimate-large:hover svg {
    transform: translateX(5px);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 968px) {
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-features {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .estimate-cta-section {
        padding: 60px 0;
    }
    
    .cta-text h2 {
        font-size: 1.75rem;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-estimate-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

.rating-text {
    margin-left: 1rem;
    color: var(--gray-600);
}

/* 세부 평가 */
.detail-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-rating-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-rating-item label {
    font-weight: 500;
    color: var(--gray-700);
}

/* 라디오 그룹 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--primary);
}

.radio-label input[type="radio"] {
    margin-right: 0.75rem;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary);
}

/* 폼 액션 */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 푸터 */
.footer {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667EEA 0%, #764BA2 100%);
}

.footer .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3::before {
    content: '';
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 2px;
}

.company-info {
    margin-bottom: 1rem;
}

.company-info p {
    font-size: 0.8rem;
    line-height: 1.8;
    margin: 0.25rem 0;
    color: #6c757d;
    white-space: nowrap;
}

.company-info a {
    color: #667EEA;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.company-info a:hover {
    color: #764BA2;
    text-decoration: underline;
}

.footer-links {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #667EEA;
}

.footer-links span {
    color: #dee2e6;
    font-size: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        justify-content: center;
    }
    
    .company-info p {
        justify-content: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.header .logo span {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 숨겨진 관리자 버튼 */
.admin-secret-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--gray-900);
    color: var(--gray-900);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.5rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.admin-secret-btn:hover {
    opacity: 0.5;
    color: var(--gray-800);
}

/* 반응형 */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-ratings {
        grid-template-columns: 1fr;
    }
    
    .review-filters {
        padding: 0 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}