/**
 * ETC Publications Manager - Styles
 * Illinois Branded Academic Publications Display
 */

:root {
    --illinois-blue: #13294B;
    --illinois-orange: #FF5F05;
    --light-blue: #1e3a5f;
    --light-orange: #ff7f33;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-800: #343a40;
}

/* Main Container */
.etc-publications-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Controls Section */
.publications-controls {
    background: var(--gray-100);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--gray-200);
}

/* Search Box */
.pub-search-box {
    position: relative;
    max-width: 500px;
    margin-bottom: 20px;
}

.pub-search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pub-search-box input:focus {
    outline: none;
    border-color: var(--illinois-orange);
    box-shadow: 0 0 0 3px rgba(255, 95, 5, 0.1);
}

.pub-search-box .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
    pointer-events: none;
}

/* Filters */
.pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--illinois-blue);
    background: white;
    color: var(--illinois-blue);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--gray-100);
}

.filter-btn.active {
    background: var(--illinois-blue);
    color: white;
}

/* Year Filter */
.pub-year-filter select {
    padding: 8px 15px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.pub-year-filter select:focus {
    outline: none;
    border-color: var(--illinois-orange);
}

/* Statistics */
.publications-stats {
    padding: 15px;
    background: linear-gradient(135deg, var(--illinois-blue), var(--light-blue));
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    font-size: 14px;
}

.stat-item strong {
    font-size: 18px;
    color: var(--illinois-orange);
}

/* Publications List */
.publications-list {
    position: relative;
}

/* Card Style */
.style-cards .publication-item {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
}

.pub-card {
    background: white;
    border-left: 4px solid var(--illinois-orange);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.pub-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.pub-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pub-year {
    background: var(--illinois-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.pub-type {
    background: var(--gray-200);
    color: var(--gray-800);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Publication Status Badges */
.pub-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-accepted {
    background: #fff3cd;
    color: #856404;
}

.status-in-press {
    background: #cce5ff;
    color: #004085;
}

.status-advance {
    background: #d4edda;
    color: #155724;
    animation: pulse 2s infinite;
}

.status-in-print {
    background: #e2e3e5;
    color: #383d41;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pub-title {
    color: var(--illinois-blue);
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.pub-authors {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 10px;
}

.pub-authors .lab-member {
    color: var(--illinois-orange);
    font-weight: 600;
}

.pub-venue {
    color: var(--gray-600);
    margin-bottom: 15px;
    line-height: 1.5;
}

.pub-venue em {
    font-style: italic;
    color: var(--gray-800);
}

.pub-details {
    margin-left: 5px;
}

/* Links and Buttons */
.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.pub-btn {
    padding: 6px 16px;
    border: 1px solid var(--gray-400);
    background: white;
    color: var(--gray-800);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.doi-btn {
    border-color: var(--illinois-orange);
    color: var(--illinois-orange);
}

.doi-btn:hover {
    background: var(--illinois-orange);
    color: white;
}

.pmid-btn {
    border-color: #4285f4;
    color: #4285f4;
}

.pmid-btn:hover {
    background: #4285f4;
    color: white;
}

.cite-btn {
    border-color: var(--illinois-blue);
    color: var(--illinois-blue);
}

.cite-btn:hover {
    background: var(--illinois-blue);
    color: white;
}

/* Citation Box */
.pub-citation,
.pub-abstract {
    margin-top: 20px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 8px;
    border: 1px solid var(--gray-300);
}

.pub-citation h4,
.pub-abstract h4 {
    color: var(--illinois-blue);
    margin: 0 0 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.citation-text {
    background: white;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    margin-bottom: 15px;
}

.copy-btn {
    background: var(--illinois-blue);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--light-blue);
}

.copy-btn.copied {
    background: #28a745;
}

/* List Style */
.style-list .year-separator {
    color: var(--illinois-blue);
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--illinois-orange);
}

.style-list .publication-item {
    margin-bottom: 20px;
}

.pub-list-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    line-height: 1.7;
}

.pub-list-item:hover {
    background: var(--gray-100);
    padding-left: 10px;
    transition: all 0.3s ease;
}

.pub-number {
    color: var(--illinois-orange);
    font-weight: 700;
    margin-right: 8px;
}

.pub-links-inline {
    margin-left: 10px;
}

.pub-links-inline a {
    color: var(--illinois-orange);
    text-decoration: none;
    font-weight: 600;
}

.pub-links-inline a:hover {
    text-decoration: underline;
}

/* APA Style */
.style-apa .publication-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.pub-apa {
    padding-left: 40px;
    text-indent: -40px;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    color: var(--gray-800);
}

.pub-apa:hover {
    background: var(--gray-100);
    padding: 20px;
    padding-left: 60px;
    margin: 0 -20px;
    transition: all 0.3s ease;
}

/* No Publications Message */
.no-publications {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-100);
    border-radius: 10px;
    color: var(--gray-600);
    font-size: 18px;
}

.no-publications a {
    color: var(--illinois-orange);
    text-decoration: none;
    font-weight: 600;
}

.no-publications a:hover {
    text-decoration: underline;
}

/* Hidden Items */
.publication-item.hidden {
    display: none !important;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .etc-publications-wrapper {
        padding: 10px;
    }
    
    .publications-controls {
        padding: 15px;
    }
    
    .pub-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .pub-card {
        padding: 20px 15px;
    }
    
    .pub-title {
        font-size: 16px;
    }
    
    .publications-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}