/* 블로그 지수 판별 페이지 전용 스타일 */

/* 블로그 분석 컨테이너 */
.ba-analysis-container {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

/* 상단 입력 영역 */
.ba-input-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 블로그 아이디 입력과 개수 선택을 감싸는 컨테이너 */
.ba-input-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

/* 블로그 아이디 입력 그룹 */
.ba-blog-input-group {
    position: relative;
    flex: 1;
}

.ba-blog-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
    z-index: 2;
}

.ba-blog-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-800);
    background: var(--surface-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-blog-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.ba-blog-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.ba-blog-input-group:focus-within .ba-blog-icon {
    color: var(--primary-color);
}

/* 게시글 개수 선택 그룹 */
.ba-count-group {
    position: relative;
    min-width: 100px;
}

.ba-count-select {
    appearance: none;
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    background: var(--surface-color);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-count-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.ba-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.875rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.ba-count-group:hover .ba-select-arrow {
    color: var(--primary-color);
}

/* 조회하기 버튼 */
.ba-analysis-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    justify-content: center;
}

.ba-analysis-btn:hover {
    background: var(--gradient-accent);
}

.ba-analysis-btn:active {
    transform: translateY(0);
}

.ba-analysis-btn i {
    font-size: 0.875rem;
}

/* Empty State 섹션 */
.ba-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.ba-empty-state-icon {
    margin-bottom: 1.5rem;
}

.ba-empty-state-icon i {
    font-size: 4rem;
    color: var(--gray-300);
}

.ba-empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.ba-empty-state-description {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* 블로그 기본 정보 섹션 스타일 */
.ba-basic-info-section {
    display: none;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.ba-basic-info-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.ba-basic-info-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.ba-basic-info-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    min-width: 0;
    overflow: hidden;
}

.ba-info-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--gray-100);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.ba-info-item::-webkit-scrollbar {
    display: none;
}

.ba-info-item {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ba-info-item:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.ba-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ba-info-icon {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.ba-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.2;
    white-space: nowrap;
    min-width: 0;
}

.ba-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    min-width: 0;
}

/* PC 화면 크기별 컴팩트 디자인 */
@media (max-width: 1450px) {
    .ba-basic-info-grid {
        gap: 1.25rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .ba-info-item {
        padding: 1.125rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .ba-info-header {
        gap: 0.375rem;
        margin-bottom: 0.625rem;
    }
    
    .ba-info-icon {
        font-size: 0.8125rem;
    }
    
    .ba-info-label {
        font-size: 0.8125rem;
        white-space: nowrap;
        min-width: 0;
    }
    
    .ba-info-value {
        font-size: 0.9375rem;
        white-space: nowrap;
        min-width: 0;
    }
}

@media (max-width: 1200px) {
    .ba-basic-info-grid {
        gap: 1rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .ba-info-item {
        padding: 1rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .ba-info-header {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .ba-info-icon {
        font-size: 0.75rem;
    }
    
    .ba-info-label {
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: 0;
    }
    
    .ba-info-value {
        font-size: 0.875rem;
        white-space: nowrap;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .ba-basic-info-section {
        padding: 1.5rem;
    }
    
    .ba-basic-info-title {
        font-size: 1.375rem;
        gap: 0.625rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .ba-basic-info-title i {
        font-size: 1.125rem;
    }
    
    .ba-basic-info-grid {
        gap: 0.875rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .ba-info-item {
        padding: 0.875rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .ba-info-header {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .ba-info-icon {
        font-size: 0.6875rem;
    }
    
    .ba-info-label {
        font-size: 0.6875rem;
        white-space: nowrap;
        line-height: 1.1;
        min-width: 0;
    }
    
    .ba-info-value {
        font-size: 0.8125rem;
        white-space: nowrap;
        line-height: 1.2;
        min-width: 0;
    }
}

/* 모바일 반응형 - 768px 이하에서만 적용 */
@media (max-width: 768px) {
    .ba-analysis-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .ba-input-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .ba-input-row {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .ba-blog-input-group {
        flex: 1;
    }
    
    .ba-count-group {
        flex: none;
        min-width: 120px;
    }
    
    .ba-blog-input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .ba-blog-icon {
        left: 0.875rem;
        font-size: 0.875rem;
    }
    
    .ba-count-select {
        padding: 0.75rem 2.25rem 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .ba-select-arrow {
        right: 0.875rem;
        font-size: 0.75rem;
    }
    
    .ba-analysis-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    .ba-empty-state {
        padding: 2rem 1rem;
        margin: 0;
    }
    
    .ba-empty-state-icon {
        margin-bottom: 1rem;
    }
    
    .ba-empty-state-icon i {
        font-size: 2.5rem;
    }
    
    .ba-empty-state-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .ba-empty-state-description {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

/* 소형 모바일 반응형 */
@media (max-width: 480px) {
    .ba-analysis-container {
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }
    
    .ba-input-section {
        gap: 0.5rem;
    }
    
    .ba-input-row {
        gap: 0.5rem;
    }
    
    .ba-count-group {
        min-width: 100px;
    }
    
    .ba-blog-input {
        padding: 0.625rem 0.875rem 0.625rem 2.25rem;
        font-size: 0.875rem;
    }
    
    .ba-blog-icon {
        left: 0.75rem;
        font-size: 0.875rem;
    }
    
    .ba-count-select {
        padding: 0.625rem 2rem 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .ba-select-arrow {
        right: 0.75rem;
        font-size: 0.75rem;
    }
    
    .ba-analysis-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .ba-empty-state {
        padding: 1.5rem 0.75rem;
    }
    
    .ba-empty-state-icon {
        margin-bottom: 0.75rem;
    }
    
    .ba-empty-state-icon i {
        font-size: 2rem;
    }
    
    .ba-empty-state-title {
        font-size: 1rem;
        margin-bottom: 0.375rem;
        line-height: 1.3;
    }
    
    .ba-empty-state-description {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
}

/* 블로그 평가 지표 섹션 */
.ba-evaluation-section {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.ba-evaluation-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    margin-top: 0;
}

.ba-evaluation-title i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* 지표 그리드 */
.ba-indicators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ba-indicator-item {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.ba-indicator-item:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.ba-indicator-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ba-indicator-icon {
    font-size: 1.125rem;
    color: var(--primary-color);
}

.ba-indicator-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: 0.025em;
}

/* 진행 바 컨테이너 */
.ba-progress-container {
    position: relative;
}

.ba-progress-bar {
    width: 100%;
    height: 2rem;
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ba-progress-fill {
    height: 100%;
    width: 0%;
    position: relative;
    border-radius: var(--radius-md);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: var(--radius-md);
}

/* 블로그 등급 - 부드러운 빨간색 */
.ba-grade-fill {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 70%, #dc2626 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ba-grade-value {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 3;
    letter-spacing: 0.05em;
}

/* 신뢰도 - 부드러운 노란색 */
.ba-reliability-fill {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 70%, #f59e0b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 일치율 - 부드러운 초록색 */
.ba-match-fill {
    background: linear-gradient(135deg, #34d399 0%, #10b981 70%, #10b981 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 반영도 - 부드러운 청록색 */
.ba-reflection-fill {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 70%, #06b6d4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ba-progress-value {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 3;
    letter-spacing: 0.025em;
}

/* 모바일 반응형 - 768px 이하에서만 적용 */
@media (max-width: 768px) {
    .ba-analysis-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .ba-input-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .ba-input-row {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .ba-blog-input-group {
        flex: 1;
    }
    
    .ba-count-group {
        flex: none;
        min-width: 120px;
    }
    
    .ba-blog-input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .ba-blog-icon {
        left: 0.875rem;
        font-size: 0.875rem;
    }
    
    .ba-count-select {
        padding: 0.75rem 2.25rem 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .ba-select-arrow {
        right: 0.875rem;
        font-size: 0.75rem;
    }
    
    .ba-analysis-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    .ba-empty-state {
        padding: 2rem 1rem;
        margin: 0;
    }
    
    .ba-empty-state-icon {
        margin-bottom: 1rem;
    }
    
    .ba-empty-state-icon i {
        font-size: 2.5rem;
    }
    
    .ba-empty-state-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .ba-empty-state-description {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .ba-evaluation-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .ba-evaluation-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .ba-indicators-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ba-indicator-item {
        padding: 1rem;
    }
    
    .ba-indicator-header {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .ba-indicator-icon {
        font-size: 1rem;
    }
    
    .ba-indicator-label {
        font-size: 0.85rem;
    }
    
    .ba-progress-bar {
        height: 1.75rem;
    }
    
    .ba-progress-value {
        font-size: 0.8rem;
        left: 1rem;
    }
    
    .ba-grade-value {
        font-size: 0.85rem;
        left: 1rem;
    }
    
    .ba-basic-info-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .ba-basic-info-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .ba-basic-info-title i {
        font-size: 1.125rem;
    }
    
    .ba-basic-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .ba-info-item {
        padding: 1rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .ba-info-header {
        margin-bottom: 0.5rem;
    }
    
    .ba-info-icon {
        font-size: 0.75rem;
    }
    
    .ba-info-label {
        font-size: 0.8125rem;
        min-width: 0;
    }
    
    .ba-info-value {
        font-size: 0.9375rem;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .ba-analysis-container {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .ba-input-section {
        gap: 0.5rem;
    }
    
    .ba-input-row {
        gap: 0.5rem;
    }
    
    .ba-count-group {
        min-width: 100px;
    }
    
    .ba-blog-input {
        padding: 0.625rem 0.875rem 0.625rem 2.25rem;
        font-size: 0.875rem;
    }
    
    .ba-blog-icon {
        left: 0.75rem;
        font-size: 0.875rem;
    }
    
    .ba-count-select {
        padding: 0.625rem 2rem 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .ba-select-arrow {
        right: 0.75rem;
        font-size: 0.75rem;
    }
    
    .ba-analysis-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .ba-empty-state {
        padding: 1.5rem 0.75rem;
    }
    
    .ba-empty-state-icon {
        margin-bottom: 0.75rem;
    }
    
    .ba-empty-state-icon i {
        font-size: 2rem;
    }
    
    .ba-empty-state-title {
        font-size: 1rem;
        margin-bottom: 0.375rem;
        line-height: 1.3;
    }
    
    .ba-empty-state-description {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
    
    .ba-evaluation-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .ba-evaluation-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .ba-evaluation-title i {
        font-size: 1rem;
    }
    
    .ba-indicators-grid {
        gap: 0.75rem;
    }
    
    .ba-indicator-item {
        padding: 0.875rem;
    }
    
    .ba-indicator-header {
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }
    
    .ba-indicator-icon {
        font-size: 0.95rem;
    }
    
    .ba-indicator-label {
        font-size: 0.8rem;
    }
    
    .ba-progress-bar {
        height: 1.5rem;
    }
    
    .ba-progress-value {
        font-size: 0.75rem;
        left: 0.875rem;
    }
    
    .ba-grade-value {
        font-size: 0.8rem;
        left: 0.875rem;
    }
    
    .ba-basic-info-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .ba-basic-info-title {
        font-size: 1.125rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .ba-basic-info-title i {
        font-size: 1rem;
    }
    
    .ba-basic-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .ba-info-item {
        padding: 0.875rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .ba-info-header {
        gap: 0.375rem;
        margin-bottom: 0.5rem;
    }
    
    .ba-info-icon {
        font-size: 0.75rem;
    }
    
    .ba-info-label {
        font-size: 0.75rem;
        line-height: 1.1;
        min-width: 0;
    }
    
    .ba-info-value {
        font-size: 0.875rem;
        line-height: 1.3;
        min-width: 0;
    }
}

/* 지난주 조회수 Top 10 섹션 스타일 */
.ba-top-posts-section {
    display: none;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
    overflow-x: hidden;
}

.ba-top-posts-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.ba-top-posts-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.ba-top-posts-container {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.ba-top-posts-container::-webkit-scrollbar {
    width: 6px;
}

.ba-top-posts-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.ba-top-posts-container::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.ba-top-posts-container::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.ba-top-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow-x: hidden;
}

.ba-top-post-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

.ba-top-post-item:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.ba-post-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ba-post-content {
    flex: 1;
    min-width: 0;
}

.ba-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ba-post-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ba-post-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.ba-post-stat i {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.ba-post-link {
    flex-shrink: 0;
}

.ba-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-link-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.ba-link-btn i {
    font-size: 0.875rem;
}

/* 1450px 이하 반응형 */
@media (max-width: 1450px) {
    .ba-top-posts-section {
        padding: 1.75rem;
    }
    
    .ba-top-posts-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .ba-top-posts-title i {
        font-size: 1.25rem;
    }
    
    .ba-top-post-item {
        padding: 1rem;
    }
    
    .ba-post-title {
        font-size: 0.9rem;
    }
    
    .ba-post-stat {
        font-size: 0.75rem;
    }
}

/* 1200px 이하 반응형 */
@media (max-width: 1200px) {
    .ba-top-posts-section {
        padding: 1.5rem;
    }
    
    .ba-top-posts-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .ba-top-posts-title i {
        font-size: 1.25rem;
    }
    
    .ba-top-post-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .ba-post-rank {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }
    
    .ba-post-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .ba-post-stats {
        gap: 0.75rem;
    }
    
    .ba-post-stat {
        font-size: 0.7rem;
    }
}

/* 900px 이하 반응형 */
@media (max-width: 900px) {
    .ba-top-posts-section {
        padding: 1.25rem;
    }
    
    .ba-top-posts-title {
        font-size: 1.375rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .ba-top-posts-title i {
        font-size: 1.125rem;
    }
    
    .ba-top-posts-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .ba-top-post-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .ba-post-rank {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .ba-post-content {
        flex: 1;
        min-width: 0;
    }
    
    .ba-post-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }
    
    .ba-post-stats {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .ba-post-stat {
        font-size: 0.75rem;
    }
    
    .ba-post-link {
        flex-shrink: 0;
        align-self: flex-start;
    }
}

/* 768px 이하 반응형 */
@media (max-width: 768px) {
    .ba-top-posts-section {
        padding: 1rem;
        margin-bottom: 1rem; /* 16px */
    }
    
    .ba-top-posts-title {
        font-size: 1.25rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .ba-top-posts-title i {
        font-size: 1.125rem;
    }
    
    .ba-top-posts-container {
        max-height: 250px;
    }
    
    .ba-top-post-item {
        padding: 0.875rem;
    }
    
    .ba-post-title {
        font-size: 0.85rem;
    }
    
    .ba-post-stat {
        font-size: 0.7rem;
    }
    
    .ba-link-btn {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .ba-link-btn i {
        font-size: 0.7rem;
    }
}

/* 480px 이하 반응형 */
@media (max-width: 480px) {
    .ba-top-posts-section {
        padding: 0.875rem;
        margin-bottom: 0.75rem; /* 12px */
    }
    
    .ba-top-posts-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .ba-top-posts-title i {
        font-size: 1rem;
    }
    
    .ba-top-posts-container {
        max-height: 220px;
    }
    
    .ba-top-post-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .ba-post-rank {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .ba-post-title {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .ba-post-stats {
        gap: 0.375rem;
        flex-wrap: wrap;
    }
    
    .ba-post-stat {
        font-size: 0.65rem;
    }
    
    .ba-link-btn {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .ba-link-btn i {
        font-size: 0.65rem;
    }
}

/* 포스트 목록 테이블 스타일 (플레이스 조회 페이지와 동일하게 직접 외부 배치) */

/* 테이블 컨테이너 */
.ba-table-container {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin-bottom: 2rem;
    background: var(--surface-color);
    display: block;
}

/* 테이블 */
.ba-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    background: var(--surface-color);
}

.ba-results-table th {
    background: #e2e8f0;
    padding: 0.625rem 0.875rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.875rem;
}

.ba-results-table th:last-child {
    border-right: none;
}

.ba-results-table th:first-child {
    border-left: 1px solid var(--gray-300);
}

.ba-results-table td {
    padding: 0.25rem 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    color: var(--gray-800);
    white-space: nowrap;
    vertical-align: middle;
    font-size: 0.875rem;
    line-height: 1.2;
    text-align: center;
}

.ba-results-table td:last-child {
    border-right: none;
}

.ba-results-table tbody tr {
    transition: all 0.15s ease;
}

.ba-results-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.03);
}

.ba-results-table tr:last-child td {
    border-bottom: none;
}

/* 진단 아이콘 */
.ba-diagnosis-icon {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ba-diagnosis-icon:hover {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
}

/* No. 열 스타일 */
.ba-results-table td:nth-child(1) {
    font-weight: 700;
    color: var(--primary-color);
}

/* 제목 열 스타일 */
.ba-results-table td:nth-child(3) {
    font-weight: 600;
    color: var(--gray-900);
    max-width: 300px;
    text-align: left;
    padding: 0.25rem 0.875rem;
}

/* 제목 열 내용 컨테이너 */
.ba-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

/* 제목 텍스트 */
.ba-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* 바로가기 아이콘 */
.ba-link-icon {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    flex-shrink: 0;
}

.ba-link-icon:hover {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

/* 발행일 열 스타일 */
.ba-results-table td:nth-child(2) {
    color: var(--gray-600);
}

/* 글 등급 열 스타일 */
.ba-results-table td:nth-child(4) {
    font-weight: 600;
    color: var(--white);
    background: var(--primary-color);
    min-width: 100px;
    width: 100px;
    font-size: 0.9375rem;
}

/* 점수 관련 열들 (신뢰도, 일치율, 반영도) */
.ba-results-table td:nth-child(5),
.ba-results-table td:nth-child(6),
.ba-results-table td:nth-child(7) {
    font-weight: 500;
    color: var(--gray-700);
}

/* 글자 수 열 스타일 */
.ba-results-table td:nth-child(8) {
    color: var(--gray-600);
}

/* 댓글, 공감 열 스타일 */
.ba-results-table td:nth-child(9),
.ba-results-table td:nth-child(10) {
    color: var(--gray-600);
}

/* 미디어 관련 열들 (링크, 이미지, 히든, 동영상, GIF) */
.ba-results-table td:nth-child(11),
.ba-results-table td:nth-child(12),
.ba-results-table td:nth-child(13),
.ba-results-table td:nth-child(14),
.ba-results-table td:nth-child(15) {
    color: var(--gray-600);
}

/* 페이지네이션 컨테이너 */
.ba-pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

/* 페이지네이션 */
.ba-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 페이지 버튼 공통 스타일 */
.ba-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--gray-200);
    background: var(--surface-color);
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
}

.ba-page-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* 활성 페이지 */
.ba-page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.ba-page-btn.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* 말줄임표 */
.ba-page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--gray-400);
    font-size: 1rem;
    font-weight: 500;
}

/* 돋보기 아이콘 */
.ba-search-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--primary-color);
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}

.ba-search-page-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

/* 테이블 컨테이너 스크롤바 스타일링 - PC에서만 표시 */
@media (min-width: 1025px) {
    .ba-table-container::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .ba-table-container::-webkit-scrollbar-track {
        background: var(--gray-100);
        border-radius: 3px;
    }

    .ba-table-container::-webkit-scrollbar-thumb {
        background: var(--gray-300);
        border-radius: 3px;
    }

    .ba-table-container::-webkit-scrollbar-thumb:hover {
        background: var(--gray-400);
    }

    .ba-table-container::-webkit-scrollbar-corner {
        background: var(--gray-100);
    }
}

/* 태블릿에서 스크롤바 숨기기 */
@media (max-width: 1024px) {
    .ba-table-container::-webkit-scrollbar {
        display: none;
    }
    
    .ba-table-container {
        scrollbar-width: none;
    }
}

/* 모바일에서 스크롤바 숨기기 */
@media (max-width: 768px) {
    .ba-table-container::-webkit-scrollbar {
        display: none;
    }
    
    .ba-table-container {
        scrollbar-width: none;
        margin-bottom: 16px;
    }
    
    .ba-results-table {
        font-size: 0.8125rem;
    }
    
    .ba-results-table th {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .ba-results-table td {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .ba-results-table td:nth-child(3) {
        max-width: 280px;
    }
    
    .ba-results-table td:nth-child(4) {
        min-width: 90px;
        width: 90px;
        font-size: 0.875rem;
    }
    
    .ba-link-icon {
        font-size: 0.8125rem;
        padding: 0.1875rem;
    }
    
    .ba-diagnosis-icon {
        font-size: 1rem;
        padding: 0.25rem;
    }
    
    .ba-pagination-container {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    .ba-pagination {
        gap: 0.375rem;
    }
    
    .ba-page-btn,
    .ba-page-ellipsis,
    .ba-search-page-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9375rem;
    }
    
    .ba-search-page-btn {
        margin-left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .ba-table-container {
        margin-bottom: 12px;
    }
    
    .ba-results-table {
        font-size: 0.75rem;
    }
    
    .ba-results-table th {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .ba-results-table td {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .ba-results-table td:nth-child(3) {
        max-width: 280px;
    }
    
    .ba-results-table td:nth-child(4) {
        min-width: 80px;
        width: 80px;
        font-size: 0.8125rem;
    }
    
    .ba-link-icon {
        font-size: 0.75rem;
        padding: 0.125rem;
    }
    
    .ba-diagnosis-icon {
        font-size: 0.875rem;
        padding: 0.1875rem;
    }
    
    .ba-pagination-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 0.75rem 0;
        gap: 0.375rem;
    }
    
    .ba-page-btn,
    .ba-page-ellipsis,
    .ba-search-page-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
    
    .ba-pagination {
        gap: 0.25rem;
    }
    
    .ba-search-page-btn {
        margin-left: 0.375rem;
    }
}

