/*
======================================================================
                PUBLICATIONS.CSS - 論文發表頁面專用樣式
======================================================================
此檔案包含論文發表頁面特有的樣式：
- 論文表格樣式
- 篩選器樣式
- 作者高亮
- 響應式設計
======================================================================
*/

/* --- 1. Publication Page Container --- */
.publication-page .page-container {
    max-width: 1200px;
}

/* --- 2. Publication Table Specific Styles --- */
.publication-table td[data-label="Authors"],
.publication-table td[data-label="Venue"],
.publication-table td[data-label="Date"],
.publication-table td[data-label="Author Role"],
.publication-table td[data-label="Location"],
.publication-table td[data-label="ISBN"] , 
.publication-table td[data-label="Patent Number"],
.publication-table td[data-label="Patent Term"] {
    font-style: normal;
    color: rgba(201, 209, 217, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- 3. Publication Metadata --- */
.publication-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(201, 209, 217, 0.7);
}

.publication-metadata .metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publication-metadata .metadata-item i {
    color: var(--tech-cyan);
    font-size: 0.85rem;
}

/* --- 4. Publication Stats --- */
.publication-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(201, 209, 217, 0.8);
}

.publication-count {
    font-weight: 600;
    color: var(--tech-cyan);
}

.publication-filter-status {
    font-style: italic;
}

/* --- 5. Publication Type Badges --- */
.publication-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.publication-type-badge.conference {
    background-color: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.publication-type-badge.journal {
    background-color: rgba(63, 185, 80, 0.2);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.publication-type-badge.preprint {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.publication-type-badge.book {
    background-color: rgba(163, 113, 247, 0.2);
    color: #a371f7;
    border: 1px solid rgba(163, 113, 247, 0.3);
}

/* --- 6. Citation Info --- */
.citation-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--tech-cyan);
}

.citation-count {
    font-weight: 600;
    color: var(--tech-cyan);
    margin-bottom: 0.5rem;
}

.citation-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(201, 209, 217, 0.7);
    line-height: 1.4;
}

/* --- 7. Publication Search Enhancement --- */
.publication-search-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* --- 8. Mobile Optimizations --- */
@media (max-width: 768px) {
    .publication-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .publication-metadata {
        gap: 0.5rem;
    }
    
    .publication-metadata .metadata-item {
        font-size: 0.8rem;
    }
    
    .publication-type-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    .citation-info {
        padding: 0.8rem;
    }
    
    .citation-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .publication-page .page-container {
        padding: 3rem 1rem;
    }
    
    .publication-stats {
        font-size: 0.85rem;
        padding: 0.75rem 0;
    }
    
    .publication-metadata {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .publication-metadata .metadata-item {
        font-size: 0.75rem;
    }
    
    .citation-info {
        padding: 0.6rem;
        margin-top: 0.75rem;
    }
    
    .citation-text {
        font-size: 0.75rem;
    }
}

/* --- 9. Print Styles --- */
@media print {
    .publication-page .controls-container,
    .pagination-container,
    .back-to-top-btn {
        display: none !important;
    }
    
    .publication-table tr {
        page-break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
    }
    
    .publication-table td {
        color: #000;
    }
    
    .publication-table td[data-label="Title"] {
        color: #000;
        font-weight: bold;
    }
    
    .publication-type-badge {
        border: 1px solid #000;
        background-color: transparent;
        color: #000;
    }
}