/* 글로벌 스탠다드 테크놀로지 특허 관리 시스템 커스텀 스타일 */

/* 기본 스타일 재설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 한글 폰트 최적화 */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

/* 커스텀 색상 변수 - 특허 분석 전문 테마 */
:root {
    --gst-blue: #1e40af;
    --gst-light-blue: #3b82f6;
    --gst-gray: #6b7280;
    --gst-dark: #1f2937;
    --gst-light-gray: #f9fafb;
    --gst-success: #10b981;
    --gst-warning: #f59e0b;
    --gst-danger: #ef4444;
    --gst-purple: #7c3aed;
    --gst-indigo: #4f46e5;
    --gst-teal: #14b8a6;
    
    /* 그라데이션 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* 그림자 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 네비게이션 바 개선 - 글래스모피즘 효과 */
nav {
    background: linear-gradient(135deg, var(--gst-blue) 0%, var(--gst-light-blue) 100%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #93c5fd, transparent);
    border-radius: 2px;
    animation: navUnderline 0.3s ease-out;
}

@keyframes navUnderline {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        width: 60%;
        opacity: 1;
    }
}

/* 특허 목록 스타일링 */
.patent-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.patent-item:hover {
    background-color: #f8fafc !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.patent-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* 특허 유형별 색상 정의 */
.patent-category.gas-carrier {
    background-color: #fef2f2;
    color: #dc2626;
}

.patent-category.temperature-gauge {
    background-color: #f3f4f6;
    color: #374151;
}

.patent-category.special-gas {
    background-color: #faf5ff;
    color: #7c3aed;
}

/* 특허 항목 보더 색상 */
.patent-item.gas-carrier {
    border-left-color: #dc2626 !important;
}

.patent-item.temperature-gauge {
    border-left-color: #6b7280 !important;
}

.patent-item.special-gas {
    border-left-color: #7c3aed !important;
}

/* 연도 구분 헤더 */
.year-section-header {
    background: linear-gradient(135deg, var(--gst-dark) 0%, #374151 100%);
    color: white;
    padding: 1rem 1.5rem;
    position: relative;
}

.year-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gst-blue) 0%, var(--gst-light-blue) 100%);
}

/* 특허 번호 스타일 */
.patent-number {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--gst-gray);
    background-color: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* 시간 표시 스타일 */
.time-indicator {
    font-size: 0.75rem;
    color: var(--gst-gray);
    white-space: nowrap;
}

/* 애니메이션 효과 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.patent-item {
    animation: slideInRight 0.3s ease-out forwards;
}

.patent-item:nth-child(2) {
    animation-delay: 0.1s;
}

.patent-item:nth-child(3) {
    animation-delay: 0.2s;
}

.patent-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* 카드 스타일 개선 */
.stats-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--gst-blue);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* 버튼 스타일 */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--gst-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--gst-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background-color: var(--gst-light-gray);
    color: var(--gst-gray);
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    color: var(--gst-dark);
}

/* 입력 필드 스타일 */
.form-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--gst-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 테이블 스타일 */
.data-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, var(--gst-blue) 0%, var(--gst-light-blue) 100%);
}

.data-table th {
    padding: 16px 24px;
    font-weight: 600;
    text-align: left;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: var(--gst-light-gray);
}

/* 상태 배지 */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* 차트 컨테이너 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gst-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.chart-title i {
    margin-right: 8px;
    color: var(--gst-blue);
}

/* 타임라인 스타일 */
.timeline-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #e5e7eb;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gst-blue);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    background: var(--gst-light-gray);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--gst-blue);
}

.timeline-date {
    color: var(--gst-gray);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gst-dark);
    margin-bottom: 8px;
}

.timeline-description {
    color: var(--gst-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* 검색 및 필터 영역 */
.search-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gst-gray);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: var(--gst-light-gray);
    border-top: 1px solid #e5e7eb;
}

.pagination button {
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #d1d5db;
    background: white;
    color: var(--gst-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: var(--gst-light-gray);
    color: var(--gst-dark);
}

.pagination button.active {
    background: var(--gst-blue);
    color: white;
    border-color: var(--gst-blue);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .stats-card {
        margin-bottom: 16px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 16px;
    }
    
    .chart-container {
        padding: 16px;
    }
    
    .timeline-item {
        padding-left: 32px;
    }
}

@media (max-width: 640px) {
    .data-table thead {
        display: none;
    }
    
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
    }
    
    .data-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 16px;
        background: white;
    }
    
    .data-table td {
        border: none;
        padding: 8px 0;
        position: relative;
        padding-left: 120px;
    }
    
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 100px;
        font-weight: 600;
        color: var(--gst-dark);
    }
}

/* 로딩 스피너 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 알림 메시지 */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-success {
    border-left-color: var(--gst-success);
    background-color: #f0fdf4;
    color: #166534;
}

.alert-warning {
    border-left-color: var(--gst-warning);
    background-color: #fffbeb;
    color: #92400e;
}

.alert-error {
    border-left-color: var(--gst-danger);
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-info {
    border-left-color: var(--gst-blue);
    background-color: #eff6ff;
    color: #1e40af;
}

/* 도구팁 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--gst-dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gst-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gst-dark);
}

/* RAG 문서 섹션 스타일 */
#rag-docs {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 100%;
    overflow: hidden;
    clear: both;
}

#rag-docs .grid > div {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#rag-docs .grid > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

#rag-docs .grid > div:hover::before {
    left: 100%;
}

#rag-docs .grid > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

#rag-docs h3 {
    color: var(--gst-dark);
    font-weight: 600;
}

#rag-docs p {
    color: var(--gst-gray);
    line-height: 1.6;
}

#rag-docs a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

#rag-docs a:hover {
    color: var(--gst-dark);
    text-decoration: none;
}

#rag-docs a i {
    transition: transform 0.3s ease;
}

#rag-docs a:hover i {
    transform: translateX(4px);
}

/* 애니메이션 효과 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 차트 컨테이너 반응형 수정 */
.chart-container canvas {
    max-width: 100% !important;
    height: auto !important;
}

/* 섹션 간 간격 및 겹침 방지 */
section {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
    clear: both;
}

section#analytics {
    margin-top: 2rem;
    padding-top: 2rem;
}

section#timeline {
    margin-top: 2rem;
    padding-top: 2rem;
}

section#rag-docs {
    margin-top: 3rem;
    padding-top: 2rem;
}

/* 컨테이너 정리 */
.container {
    position: relative;
    z-index: 1;
}

/* 특허 목록 섹션 정리 */
#patents {
    margin-bottom: 3rem;
    overflow: hidden;
}

/* 텍스트 줄임 유틸리티 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 버전 정보 표시 (v3.6 개선) */
.version-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, var(--gst-blue) 0%, var(--gst-light-blue) 100%);
    color: white;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 특허 헤더 스타일 (내부/외부 구분) */
.patent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 4px solid var(--gst-blue);
}

.patent-header strong {
    font-size: 1.1rem;
    color: var(--gst-dark);
}

.patent-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gst-blue);
    color: white;
    min-width: 2.5rem;
    text-align: center;
}

/* 출처 섹션 스타일 */
.source-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.source-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gst-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* 출처 칩 스타일 */
.source-chip {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.source-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 내부 DB 칩 (초록색) */
.source-chip.db {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.source-chip.db:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* 외부 특허 칩 (파란색) */
.source-chip.patent {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.source-chip.patent:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* 웹 자료 칩 (회색) */
.source-chip.web {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.source-chip.web:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* 🆕 타임라인 강화 스타일 */
.timeline-view-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-view-btn:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.timeline-view-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.timeline-view-btn i {
    margin-right: 0.5rem;
}

/* 국가별 카드 애니메이션 */
.country-card, .inventor-card {
    transition: all 0.3s ease;
}

.country-card:hover, .inventor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.country-card .stat-box, .inventor-card .stat-box {
    transition: all 0.2s ease;
}

.country-card .stat-box:hover, .inventor-card .stat-box:hover {
    transform: scale(1.05);
}

/* 타임라인 아이템 페이드인 */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.visible {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 특허 카드 호버 효과 */
.patent-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.patent-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 키워드 클라우드 애니메이션 */
#keyword-cloud span {
    display: inline-block;
    animation: fadeInKeyword 0.5s ease forwards;
    opacity: 0;
}

#keyword-cloud span:nth-child(1) { animation-delay: 0.05s; }
#keyword-cloud span:nth-child(2) { animation-delay: 0.1s; }
#keyword-cloud span:nth-child(3) { animation-delay: 0.15s; }
#keyword-cloud span:nth-child(4) { animation-delay: 0.2s; }
#keyword-cloud span:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInKeyword {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 통계 카드 펄스 효과 */
.stat-box {
    animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.1);
    }
}

/* 발명자 아바타 그라데이션 */
.inventor-card .w-12 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 반응형 그리드 개선 */
@media (max-width: 768px) {
    .timeline-view-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .country-card, .inventor-card {
        margin-bottom: 1rem;
    }
}

/* 라인 클램프 유틸리티 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   청구항 구성요소 비교 전용 스타일
   ======================================== */

/* 특허 카드 (기준/대상) */
.patent-card.base-patent {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 4px solid #0284c7;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.patent-card.target-patent {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.patent-card .patent-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.patent-card .patent-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.patent-card .patent-meta {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 구성요소 매핑 테이블 */
.mapping-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mapping-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.mapping-table-container thead {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.mapping-table-container th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.mapping-table-container td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.mapping-table-container tr:hover {
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}

.mapping-table-container tr:last-child td {
    border-bottom: none;
}

/* 매핑 타입 아이콘 스타일 */
.mapping-table-container td:nth-child(3) {
    font-weight: 600;
    white-space: nowrap;
}

/* 회피 설계 아이디어 컨테이너 */
.design-around-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.design-around-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-around-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
}

.design-around-card h3 {
    color: #047857;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.design-around-card p {
    color: #1f2937;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.design-around-card strong {
    color: #065f46;
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* 소스 칩 (출처 링크) */
.source-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.source-section-title {
    width: 100%;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.source-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.source-chip.db {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.source-chip.db:hover {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.source-chip.patent {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.source-chip.patent:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .patent-card {
        padding: 1rem;
    }
    
    .patent-card .patent-number {
        font-size: 1rem;
    }
    
    .patent-card .patent-title {
        font-size: 1rem;
    }
    
    .mapping-table-container {
        font-size: 0.85rem;
    }
    
    .mapping-table-container th,
    .mapping-table-container td {
        padding: 0.75rem 0.5rem;
    }
    
    .design-around-container {
        grid-template-columns: 1fr;
    }
    
    .design-around-card {
        padding: 1rem;
    }
}
