/* style-place-success.css - 플레이스 성공사례 페이지 전용 스타일 */

/* 페이지 헤더 */
.page-header {
    background-color: var(--primary);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 56px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/theme/drsoft-new/img/place-success-header-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

/* 성과 요약 섹션 */
.summary-section {
    padding: 60px 0;
}

.summary-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.summary-card:hover {
    transform: translateY(-10px);
}

.summary-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(252, 185, 19, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.summary-label {
    color: #666;
    font-size: 1.1rem;
}

/* 카테고리 탭 */
.case-tabs-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.nav-pills .nav-link {
    color: var(--dark);
    background-color: white;
    border-radius: 25px;
    padding: 10px 30px;
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
    border-color: var(--primary);
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    color: white;
}

/* 상세 사례 카드 */
.case-card.detailed {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.case-card.detailed:hover {
    transform: translateY(-5px);
}

.case-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-badge.beauty {
    background-color: #e91e63;
}

.case-badge.food {
    background-color: #ff9800;
}

.case-badge.edu {
    background-color: #4caf50;
}

.case-header {
    margin-bottom: 25px;
}

.case-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.case-location {
    color: #666;
    font-size: 0.95rem;
}

.case-stats {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.case-testimonial {
    background-color: rgba(252, 185, 19, 0.05);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.case-testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.6;
}

.testimonial-author {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

.case-period {
    color: #666;
    font-size: 0.9rem;
}

/* 간단한 사례 카드 */
.case-card.compact {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.case-card.compact:hover {
    transform: translateY(-5px);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card.compact:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card.compact:hover .case-overlay {
    opacity: 1;
}

.result-badge {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.case-content {
    padding: 25px;
}

.case-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.case-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.case-results {
    display: flex;
    gap: 15px;
}

.result-item {
    background-color: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 성공 요인 섹션 */
.success-factors {
    padding: 80px 0;
}

.factor-card {
    text-align: center;
    padding: 40px 20px;
    height: 100%;
    transition: transform 0.3s ease;
}

.factor-card:hover {
    transform: translateY(-5px);
}

.factor-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.factor-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.factor-desc {
    color: #666;
    line-height: 1.6;
}

/* Before & After 섹션 */
.before-after {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.ba-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.ba-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
}

.ba-content {
    padding: 20px 0;
}

.ba-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.ba-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
}

.ba-content.before .ba-item i {
    color: #e74c3c;
}

.ba-content.after .ba-item i {
    color: #2ecc71;
}

/* 고객 후기 섹션 */
.testimonials {
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(252, 185, 19, 0.2);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* CTA 섹션 */
.cta-section {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .stat-row {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .summary-section,
    .case-tabs-section,
    .success-factors,
    .before-after,
    .testimonials {
        padding: 60px 0;
    }

    .summary-number {
        font-size: 2rem;
    }

    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .nav-pills .nav-link {
        white-space: nowrap;
    }

    .case-results {
        flex-direction: column;
        gap: 10px;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-card {
    animation: fadeInUp 0.8s ease-out;
}

/* 이미지 플레이스홀더 */
.case-image:not(:has(img)),
.testimonial-author img:not([src]) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.case-image:not(:has(img))::before {
    content: '\f03e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
}

.testimonial-author img:not([src]) {
    background: #e0e0e0;
}