/* ============================================
   컴포넌트 스타일
   ============================================ */

/* 버튼 기본 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn svg { width: 16px; height: 16px; }

/* 액션 버튼 */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.action-btn svg { width: 14px; height: 14px; }
.action-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.action-btn.copy:hover { border-color: var(--success); color: var(--success); }
.action-btn.analyze:hover { border-color: var(--naver); color: var(--naver); }
.action-btn.copied { background: var(--success); color: white; border-color: var(--success); }

/* 소셜 공유 버튼 */
.social-share { display: flex; gap: 6px; }

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.kakao:hover { background: var(--kakao); color: var(--kakao-text); border-color: var(--kakao); }
.share-btn.x:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.threads:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn.native:hover { background: var(--diamond); color: #fff; border-color: var(--diamond); }
.share-btn.bookmark:hover { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }

/* 뱃지 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.badge svg { width: 12px; height: 12px; }
.badge-naver { background: var(--naver); }
.badge-coupang { background: var(--coupang); }
.badge-related { background: var(--text-muted); }

/* 등급 */
.grade { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.grade svg { width: 16px; height: 16px; }
.grade-diamond { color: var(--diamond-light); }
.grade-gold { color: var(--gold); }
.grade-silver { color: var(--text-secondary); }
.grade-bad { color: var(--text-muted); font-weight: 500; }

/* 경쟁강도 */
.efficiency { display: inline-flex; align-items: center; gap: 6px; }
.efficiency svg { width: 14px; height: 14px; }
.eff-good { color: var(--blue-ocean); font-weight: 700; }
.eff-bad { color: var(--danger); }

/* 토스트 */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; }

/* 통계 카드 */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.purple { background: rgba(168,85,247,0.15); color: var(--diamond-light); }
.stat-icon.gold { background: rgba(251,191,36,0.15); color: var(--gold); }
.stat-icon.cyan { background: rgba(34,211,238,0.15); color: var(--blue-ocean); }
.stat-icon.green { background: rgba(52,211,153,0.15); color: var(--success); }

.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* 광고 공간 */
.ad-space {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 28px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label { color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

/* 키워드 총평 섹션 */
.review-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin: 28px 0;
}

.review-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.review-section h3 svg {
    width: 20px;
    height: 20px;
    color: var(--diamond-light);
}

.review-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.9;
    white-space: pre-line;
}

.review-content strong {
    color: var(--text-primary);
}
