/* style-blog-smartblock.css - 네이버 블로그 스마트블록 SEO 페이지 스타일 */

/* 페이지 헤더 배경 이미지 */
.page-header {
    background: var(--primary) url('/theme/drsoft-new/img/smartblock-header-bg.jpg') no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
}

/* 스마트블록 소개 섹션 */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card .card-title {
    font-size: 1.25rem;
    color: var(--dark);
}

.service-card img {
    height: 100%;
    object-fit: cover;
}

.service-card .card-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* 스마트블록 종류 섹션 */
#smart-block-types .service-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
}

#smart-block-types .card-body {
    padding: 1.5rem;
}

#smart-block-types .card-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#smart-block-types .card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

/* 최적화 팁 섹션 */
#optimization-tips .rounded-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#optimization-tips .h5 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

#optimization-tips .text-muted {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 사례 연구 섹션 */
.rounded-circle {
    object-fit: cover;
}

.h5.text-success {
    color: var(--primary) !important;
    font-weight: 700;
}

.p-3.bg-light.rounded {
    transition: transform 0.3s ease;
}

.p-3.bg-light.rounded:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* FAQ 섹션 */
.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* 가이드북 다운로드 섹션 */
.rounded.shadow-lg {
    transition: transform 0.3s ease;
}

.rounded.shadow-lg:hover {
    transform: scale(1.02);
}

.list-unstyled li {
    margin-bottom: 0.75rem;
}

.list-unstyled .fas.text-primary {
    color: var(--primary);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(252, 185, 19, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* 통계 숫자 애니메이션 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease forwards;
}

/* 반응형 조정 */
@media (max-width: 991px) {
    .page-header .display-4 {
        font-size: 2.2rem;
    }

    .page-header .lead {
        font-size: 1.2rem;
    }

    .service-card .row {
        flex-direction: column;
    }

    .service-card .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .service-card .col-md-4 img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .service-card .col-md-8 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header .display-4 {
        font-size: 1.8rem;
    }

    #smart-block-types .service-card {
        margin-bottom: 1rem;
    }

    .d-flex.mb-4 {
        flex-direction: column;
    }

    .d-flex.mb-4 .flex-shrink-0 {
        margin-bottom: 1rem;
    }

    .d-flex.mb-4 .ms-3 {
        margin-left: 0 !important;
    }
}

/* 애니메이션 효과 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* 스마트블록 효과 데모 */
.smart-block-demo {
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.smart-block-demo:before {
    content: '스마트블록 예시';
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
}

/* 테이블 스타일 */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.smart-table {
    width: 100%;
    border-collapse: collapse;
}

.smart-table th {
    background-color: var(--primary);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.smart-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.smart-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.smart-table tr:hover {
    background-color: #f1f1f1;
}

/* 타임라인 블록 스타일 */
.timeline-block {
    position: relative;
    margin: 30px 0;
    padding-left: 30px;
}

.timeline-block:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 인용구 블록 스타일 */
.quote-block {
    background-color: #f9f9f9;
    padding: 25px;
    border-left: 5px solid var(--primary);
    margin: 20px 0;
    position: relative;
}

.quote-block:before {
    content: '\201C';
    font-size: 60px;
    position: absolute;
    left: 10px;
    top: -10px;
    color: var(--primary);
    opacity: 0.3;
}

.quote-text {
    font-style: italic;
    margin-bottom: 10px;
}

.quote-author {
    font-weight: 600;
    text-align: right;
}

/* 체크리스트 블록 스타일 */
.checklist-block {
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checklist-icon {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-text {
    flex-grow: 1;
}