/* 메인 테이블 스타일 */
.spec-table {
    border-collapse: collapse;
    width: 100%;
    margin: 24px 0;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 테이블 캡션 */
.spec-table__caption {
    font-size: 20px;
    font-weight: 700;
    padding: 16px 0;
    color: #2d3748;
    caption-side: top;
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.4;
}

/* 헤더 행 */
.spec-table__header-row {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 헤더 셀 */
.spec-table__header-cell {
    padding: 16px 12px;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
    letter-spacing: -0.025em;
    vertical-align: middle;
}

/* 일반 행 */
.spec-table__row {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.spec-table__row:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.spec-table__row:focus {
    background-color: #f0f8ff;
    outline: 2px solid #3182ce;
    outline-offset: -2px;
}

/* 일반 셀 */
.spec-table__cell {
    padding: 14px 12px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    color: #4a5568;
    text-align: center;
    line-height: 1.7;
    min-height: 48px;
    word-break: break-word;
    hyphens: auto;
}

/* 라벨 셀 (왼쪽 항목명) */
.spec-table__cell--label {
    font-weight: 600;
    background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
    text-align: left;
    color: #2d3748;
    border-right: 2px solid #e2e8f0;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 140px;
}

/* 내용이 많은 셀을 위한 스타일 */
.spec-table__cell--content-rich {
    padding: 18px 14px;
    line-height: 1.8;
}

.spec-table__cell--content-rich ul,
.spec-table__cell--content-rich ol {
    margin: 0;
    padding-left: 16px;
    text-align: left;
}

.spec-table__cell--content-rich li {
    margin-bottom: 4px;
}

/* 컬러 유틸리티 클래스 */
.bg-blue-100 {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
}

.bg-blue-200 {
    background: linear-gradient(135deg, #dbeafe 0%, #e6f3ff 100%);
}

.bg-green-100 {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
}

.bg-yellow-100 {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.bg-red-100 {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

/* 텍스트 색상 */
.text-accent-blue {
    color: #2563eb;
    font-weight: 600;
}

.text-green {
    color: #059669;
    font-weight: 600;
}

.text-orange {
    color: #ea580c;
    font-weight: 600;
}

.text-red {
    color: #dc2626;
    font-weight: 600;
}

.text-gray {
    color: #6b7280;
}

/* 강조 스타일 */
.spec-table__highlight {
    font-weight: 700;
    color: #1e40af;
    background-color: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
}

.spec-table__badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.spec-table__badge--premium {
    background-color: #fbbf24;
    color: #92400e;
}

.spec-table__badge--recommended {
    background-color: #34d399;
    color: #065f46;
}

/* 접근성 개선 */
.spec-table__row[tabindex]:focus {
    box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .spec-table {
        font-size: 14px;
        margin: 16px 0;
        border-radius: 6px;
    }

    .spec-table__caption {
        font-size: 18px;
        padding: 12px 0;
        margin-bottom: 12px;
    }

    .spec-table__header-cell {
        padding: 12px 8px;
        font-size: 13px;
    }

    .spec-table__cell {
        padding: 12px 8px;
        line-height: 1.6;
    }

    .spec-table__cell--content-rich {
        padding: 14px 10px;
    }

    .spec-table__cell--label {
        min-width: 120px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .spec-table {
        font-size: 13px;
    }

    .spec-table__caption {
        font-size: 16px;
    }

    .spec-table__header-cell,
    .spec-table__cell {
        padding: 10px 6px;
    }

    .spec-table__cell--label {
        min-width: 100px;
    }

    /* 모바일에서는 수평 스크롤 허용 */
    .spec-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .spec-table {
        border-color: #4a5568;
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .spec-table__header-row {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }

    .spec-table__cell--label {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        color: #e2e8f0;
    }

    .spec-table__row:hover {
        background-color: #4a5568;
    }
}

/* 프린트 최적화 */
@media print {
    .spec-table {
        border: 1px solid #000;
        box-shadow: none;
    }

    .spec-table__row:hover {
        background-color: transparent;
        transform: none;
        box-shadow: none;
    }
}