/* PUB-ADD: 어떻게 이용하나요? (초간단 3단계) - FAQ 스타일 프리미엄 다크 */

/* 섹션 전체 - 프리미엄 다크 배경 */
.pub-how-to-use-section {
    position: relative !important;
    width: 100vw !important;
    left: 50% !important;
    margin-left: -50vw !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 100px 0 !important;
    background: radial-gradient(900px 420px at 30% 20%, rgba(102, 126, 234, 0.18), transparent 60%),
                radial-gradient(700px 360px at 70% 80%, rgba(118, 75, 162, 0.15), transparent 60%),
                linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 그리드 패턴 */
.pub-how-to-use-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

/* 콘텐츠 래퍼 */
.pub-how-to-use-content-wrapper {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1200px !important;
    width: 100% !important;
    padding: 0 20px !important;
}

/* 타이틀 영역 */
.pub-how-to-use-title-area {
    text-align: center !important;
    margin-bottom: 60px !important;
}

.pub-how-to-use-main-title {
    margin: 0 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
    line-height: 1.2 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.pub-how-to-use-subtitle {
    font-size: 0.6em !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 3단계 카드 그리드 */
.pub-how-to-use-steps-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
}

/* 단계 카드 - 어두운 글라스 효과 */
.pub-how-to-use-step-card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 36px 32px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: visible !important;
}

/* 좌측 그라데이션 라인 */
.pub-how-to-use-step-card::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    opacity: 0.9 !important;
    background: none !important;
}

.pub-how-to-use-step-card:nth-child(1)::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
}

.pub-how-to-use-step-card:nth-child(2)::before {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%) !important;
}

.pub-how-to-use-step-card:nth-child(3)::before {
    background: linear-gradient(180deg, #ec4899 0%, #db2777 50%, #be185d 100%) !important;
}

.pub-how-to-use-step-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

/* 단계 번호 */
.pub-step-number {
    position: absolute !important;
    top: -20px !important;
    left: 28px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4) !important;
    border: 4px solid #0f172a !important;
}

/* 단계 헤더 */
.pub-step-header {
    margin-bottom: 20px !important;
    padding-top: 12px !important;
}

.pub-step-title {
    margin: 0 !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
}

/* 단계 콘텐츠 */
.pub-step-content {
    /* 기본 스타일 유지 */
}

.pub-step-list {
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    list-style: none !important;
}

.pub-step-list li {
    margin-bottom: 14px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7 !important;
    position: relative !important;
}

.pub-step-list li::before {
    content: '▸' !important;
    position: absolute !important;
    left: -20px !important;
    color: #667eea !important;
    font-weight: 900 !important;
}

/* 예시 라벨 */
.pub-step-example-label {
    display: inline-block !important;
    padding: 4px 10px !important;
    background: rgba(102, 126, 234, 0.2) !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #a5b4fc !important;
    margin-bottom: 10px !important;
}

/* 코드 블록 */
.pub-step-code-block {
    margin-top: 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.pub-code-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pub-code-label {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
}

.pub-code-copy-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.pub-code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

.pub-code-content {
    padding: 16px !important;
}

.pub-code-line {
    display: block !important;
    font-family: 'Courier New', monospace !important;
    font-size: 1rem !important;
    color: #cbd5e1 !important;
    line-height: 1.8 !important;
}

/* X 아이콘 */
.pub-step-x-icon {
    color: #ef4444 !important;
    font-weight: 900 !important;
    margin-left: 8px !important;
}

/* 노트 */
.pub-step-note {
    margin-top: 8px !important;
    font-size: 0.95rem !important;
    color: #86efac !important;
    font-weight: 700 !important;
}

/* 강조 항목 */
.pub-step-highlight {
    margin-top: 12px !important;
}

.pub-step-commission {
    display: inline-block !important;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2)) !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    border-radius: 10px !important;
    color: #fbbf24 !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

/* PC: 3컬럼 그리드 */
@media (min-width: 1024px) {
    .pub-how-to-use-steps-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
    }
}

/* 태블릿: 1컬럼 */
@media (max-width: 1024px) {
    .pub-how-to-use-section {
        padding: 80px 0 !important;
    }
    
    .pub-how-to-use-main-title {
        font-size: 2.6rem !important;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .pub-how-to-use-section {
        padding: 60px 0 !important;
    }
    
    .pub-how-to-use-content-wrapper {
        padding: 0 16px !important;
    }
    
    .pub-how-to-use-main-title {
        font-size: 2.2rem !important;
    }
    
    .pub-how-to-use-title-area {
        margin-bottom: 40px !important;
    }
    
    .pub-how-to-use-step-card {
        padding: 32px 24px !important;
    }
    
    .pub-step-title {
        font-size: 1.4rem !important;
    }
    
    .pub-step-list li {
        font-size: 1rem !important;
    }
}

/* 소형 모바일 */
@media (max-width: 480px) {
    .pub-how-to-use-main-title {
        font-size: 1.9rem !important;
    }
    
    .pub-how-to-use-step-card {
        padding: 28px 20px !important;
    }
    
    .pub-step-number {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.5rem !important;
        top: -18px !important;
    }
}
