/*
* 파일명: style.css
* 경로: /home/urlkr/public_html/p/thumbnail-maker/assets/css/
* 기능: 썸네일 메이커 전용 스타일 (2단 레이아웃)
* 작성일: 2025-01-15
* 수정일: 2025-01-15
*/

/* ===================================
   CSS 변수 정의
=================================== */
:root {
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #DEE2E6;
    --text-dark: #212529;
    --text-muted: #6C757D;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===================================
   전역 스타일
=================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ===================================
   컨테이너
=================================== */
.thumbnail-maker-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===================================
   용도 선택 화면
=================================== */
.purpose-section {
    padding: 40px 20px;
    text-align: center;
}

.purpose-header {
    margin-bottom: 40px;
}

.purpose-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.purpose-header p {
    font-size: 16px;
    color: var(--text-muted);
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.purpose-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.purpose-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.purpose-card.purpose-custom {
    border-style: dashed;
}

.purpose-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.purpose-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.purpose-ratio {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.purpose-size {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===================================
   편집 화면 - 상단 네비게이션
=================================== */
.editor-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.editor-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.nav-back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-back-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-info {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 20px;
}

.nav-reset-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-reset-btn:hover {
    background: #C82333;
}

/* ===================================
   2단 레이아웃 (좌우 분할)
=================================== */
.editor-layout {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
    align-items: start;
}


/* 좌측: 미리보기 (고정) */
.preview-section {
    position: sticky;
    top: 90px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 20px;
}

/* 광고 공간 */
.ad-container {
    margin-top: 20px;
}

.ad-placeholder {
    min-height: 250px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E0E0E0;
}

.ad-label {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 광고가 들어갔을 때 */
.ad-container.has-ad .ad-label {
    display: none;
}

.ad-container.has-ad .ad-placeholder {
    min-height: 250px;
    background: #FAFAFA;
    display: block;
}

/* 애드센스 광고 스타일 */
.ad-container.has-ad .adsbygoogle {
    display: block;
    min-height: 250px;
}

/* 캔버스 비율 유지 */
#thumbnailCanvas {
    max-width: 100%;
    max-height: 70vh;
    width: auto !important;
    height: auto !important;
    box-shadow: var(--shadow-lg);
    cursor: default;
    border-radius: 4px;
    display: block;
}


/* 우측: 옵션 패널 */
.options-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

/* ===================================
   편집 탭
=================================== */
.editor-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 20px 0 20px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-icon {
    font-size: 20px;
}

/* ===================================
   편집 옵션 패널
=================================== */
.editor-options {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.option-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.option-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    margin-top: 8px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.option-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.option-divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

/* ===================================
   가로 배치 (텍스트 입력, 구성 선택)
=================================== */
.input-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.composition-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.composition-radio {
    display: none;
}

.composition-label {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
}

.composition-radio:checked + .composition-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.composition-label:hover {
    border-color: var(--primary-color);
}

/* ===================================
   텍스트 위치 (방향키)
=================================== */
.position-control {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.position-btn {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.position-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.position-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.position-btn:nth-child(2) { grid-column: 2; grid-row: 1; } /* 위 */
.position-btn:nth-child(1) { grid-column: 1; grid-row: 2; } /* 왼쪽 */
.position-btn:nth-child(3) { grid-column: 2; grid-row: 2; } /* 중앙 */
.position-btn:nth-child(4) { grid-column: 3; grid-row: 2; } /* 오른쪽 */
.position-btn:nth-child(5) { grid-column: 2; grid-row: 3; } /* 아래 */

/* ===================================
   배경 타입 버튼
=================================== */
.bg-type-buttons {
    display: flex;
    gap: 12px;
}

.bg-type-btn {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.bg-type-btn:hover {
    border-color: var(--primary-color);
}

.bg-type-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.bg-options {
    margin-top: 20px;
}

/* ===================================
   색상 입력
=================================== */
.color-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 4px;
}

.color-text-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.color-text-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===================================
   버튼 스타일
=================================== */
.random-btn,
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.random-btn {
    background: var(--warning-color);
    color: var(--text-dark);
}

.random-btn:hover {
    background: #E0A800;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5A6268;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #C82333;
}

.full-width {
    width: 100%;
}

.mt-2 {
    margin-top: 8px;
}

/* ===================================
   입력 요소
=================================== */
.text-input,
.select-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.text-input:focus,
.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.range-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* ===================================
   체크박스
=================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===================================
   파일 업로드 영역
=================================== */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}


.file-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: #E3F2FD;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}


.upload-placeholder p {
    margin: 8px 0;
    color: var(--text-dark);
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===================================
   URL 입력 그룹
=================================== */
.url-input-group {
    display: flex;
    gap: 12px;
}

.url-input-group .text-input {
    flex: 1;
}

/* ===================================
   필터 버튼
=================================== */
.filter-buttons,
.format-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.filter-btn,
.format-btn {
    padding: 10px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.filter-btn:hover,
.format-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active,
.format-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===================================
   캔버스 크기 정보
=================================== */
.canvas-size-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.size-label {
    font-size: 14px;
    color: var(--text-muted);
}

.size-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===================================
   모달
=================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.modal-hint a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-hint a:hover {
    text-decoration: underline;
}

/* ===================================
   커스텀 비율 입력
=================================== */
.custom-ratio-inputs {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-divider {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 10px;
}

/* ===================================
   웹폰트 코드 입력
=================================== */
.font-code-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: var(--transition);
}

.font-code-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===================================
   반응형 디자인 - 태블릿
=================================== */
@media (max-width: 1200px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
    
    .preview-section {
        position: relative;
        top: 0;
    }
}

/* ===================================
   반응형 디자인 - 모바일
=================================== */
@media (max-width: 768px) {
    .thumbnail-maker-container {
        padding: 12px;
    }
    
    .purpose-header h2 {
        font-size: 24px;
    }
    
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .purpose-card {
        padding: 24px 16px;
    }
    
    .editor-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav-info {
        width: 100%;
        text-align: center;
    }
    
    .editor-options {
        padding: 20px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .composition-row {
        flex-direction: column;
    }
    
    .composition-label {
        min-width: 100%;
    }
    
    .editor-tabs {
        gap: 6px;
        padding: 16px 16px 0 16px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .tab-text {
        display: none;
    }
    
    .tab-icon {
        font-size: 24px;
    }
    
    .option-title {
        font-size: 18px;
    }
    
    .bg-type-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .color-input-group {
        flex-wrap: wrap;
    }
    
    input[type="color"] {
        width: 50px;
        height: 36px;
    }
    
    .custom-ratio-inputs {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-divider {
        display: none;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* ===================================
   텍스트 효과 가로 배치
=================================== */
.effects-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.effects-row .checkbox-label {
    flex: none;
    min-width: auto;
    justify-content: center;
}

/* 반응형 - 모바일에서는 2열로 */
@media (max-width: 768px) {
    .effects-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* ===================================
   텍스트 목록 및 선택
=================================== */
.text-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.btn-add-text {
    padding: 8px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-add-text:hover {
    background: #218838;
}

.btn-add-text:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.text-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.text-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.text-item:hover {
    border-color: var(--primary-color);
    background: #E3F2FD;
}

.text-item.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.text-item-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.text-item.selected .text-item-content {
    color: white;
}

.text-item-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-weight: 600;
}

.text-item.selected .text-item-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   캔버스 드래그 커서
=================================== */
#thumbnailCanvas {
    max-width: 100%;
    max-height: 70vh;
    width: auto !important;
    height: auto !important;
    box-shadow: var(--shadow-lg);
    cursor: default;
    border-radius: 4px;
    display: block;
}

#thumbnailCanvas.draggable {
    cursor: move;
}

#thumbnailCanvas.dragging {
    cursor: grabbing;
}

/* ===================================
   텍스트 선택 표시 (캔버스 위)
=================================== */
.text-selection-indicator {
    position: absolute;
    border: 2px dashed var(--primary-color);
    pointer-events: none;
    z-index: 10;
    animation: dashAnimation 1s linear infinite;
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -20;
    }
}

/* ===================================
   반응형 - 텍스트 목록
=================================== */
@media (max-width: 768px) {
    .text-list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .btn-add-text {
        width: 100%;
    }
    
    .text-list {
        max-height: 200px;
    }
}




/* ===================================
   SEO 콘텐츠 섹션
=================================== */
.seo-content-section {
    background: var(--bg-white);
    padding: 60px 20px;
    margin-top: 60px;
}

.seo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 60px;
}

.content-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.content-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 주요 기능 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* 사용 방법 스텝 */
.steps-container {
    margin-top: 30px;
}

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.step-item:hover {
    background: #E3F2FD;
    transform: translateX(8px);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* FAQ 섹션 */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.faq-item:hover {
    background: #E3F2FD;
    box-shadow: var(--shadow-sm);
}

.faq-question,
.faq-answer {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.faq-question {
    margin-bottom: 12px;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding-top: 4px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    padding-top: 4px;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* 활용 팁 리스트 */
.tips-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.tips-list li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

.tips-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 관련 키워드 */
.keywords-block {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.keyword-tag:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 40px 16px;
        margin-top: 40px;
    }
    
    .content-title {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-item:hover {
        transform: translateX(0);
    }
    
    .step-number {
        margin: 0 auto;
    }
}