/* =================================
   PUBLICATIONS.CSS - Publications Page Styles
   Minimalistic design with elegant interactions
   ================================= */


/* ==================
   PAGE HEADER
   ================== */

.page-header {
    padding: var(--space-16) 0 var(--space-8) 0;
    background-color: var(--bg-white);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
}

.page-subtitle {
    font-size: var(--text-base);
    color: var(--text-light);
    line-height: var(--leading-relaxed);
    max-width: 900px;
}


/* ==================
   PUBLICATIONS SECTION
   ================== */

.publications-section {
    padding: var(--space-16) 0;
}


/* ==================
   PUBLICATION CATEGORY
   ================== */

.publication-category {
    margin-bottom: var(--space-20);
}

.publication-category:last-child {
    margin-bottom: 0;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--border-color);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: var(--text-lg);
}

.published-icon {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.review-icon {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.year-badge {
    margin-left: auto;
    padding: var(--space-2) var(--space-4);
    background-color: var(--bg-subtle);
    border-radius: var(--radius-base);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-light);
}


/* ==================
   PUBLICATIONS LIST
   ================== */

.publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}


/* ==================
   PUBLICATION ITEM
   ================== */

.publication-item {
    padding: var(--space-8);
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.publication-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.publication-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}


/* ==================
   AUTHORS
   ================== */

.authors {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-color);
}

.author-highlight {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}


/* ==================
   PUBLICATION TITLE
   ================== */

.publication-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary-color);
    line-height: var(--leading-tight);
    margin: 0;
}


/* ==================
   PUBLICATION META
   ================== */

.publication-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: var(--text-sm);
}

.journal-name {
    font-style: italic;
    color: var(--text-color);
    font-weight: 500;
}

.meta-separator {
    color: var(--text-light);
}

.publication-year {
    color: var(--text-light);
}

.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.under-review {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}


/* ==================
   PUBLICATION ACTIONS - BUTTONS
   ================== */

.publication-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}


/* Base button styling - Card-based design */

.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 100px;
    max-width: 120px;
    height: 40px;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Button icons - consistent sizing */

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}


/* Button text states */

.btn-text {
    position: relative;
    transition: all 0.4s ease;
    display: inline-block;
}

.btn-text-copied {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
}


/* Cite button animation (copy functionality) */

.cite-btn.copied {
    background-color: #0e418f;
    border-color: #0e418f;
}

.cite-btn.copied .btn-text {
    transform: translateY(-150%);
    opacity: 0;
}

.cite-btn.copied .btn-text-copied {
    transform: translate(-50%, -50%);
    opacity: 1;
    color: white;
}

.cite-btn.copied .btn-icon {
    color: white;
}


/* PDF button specific styling */

.pdf-btn {
    background-color: #fff5f5;
    color: #c53030;
    border-color: #feb2b2;
}

.pdf-btn:hover {
    background-color: #fed7d7;
    border-color: #fc8181;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.15);
}

.pdf-btn .btn-icon {
    color: #c53030;
}

.pdf-btn:active {
    transform: translateY(-1px);
}


/* DOI button (link) specific styling */

.doi-btn {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.doi-btn:hover {
    background-color: #dcfce7;
    border-color: #86efac;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.15);
}

.doi-btn .btn-icon {
    color: #166534;
}


/* Cite button specific styling */

.cite-btn {
    background-color: #f2f7fa;
    color: #0e418f;
    border-color: #d1e3f0;
}

.cite-btn:hover {
    background-color: #e3f0f9;
    border-color: #0e418f;
    box-shadow: 0 4px 12px rgba(14, 65, 143, 0.15);
}

.cite-btn .btn-icon {
    color: #0e418f;
}


/* Active/pressed state for all buttons */

.action-btn:active {
    transform: translateY(-1px) scale(0.98);
}


/* Card-based floating animation on hover */

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.action-btn:hover .btn-icon {
    animation: float 0.6s ease-in-out infinite;
}


/* ==================
   RESPONSIVE DESIGN
   ================== */


/* Tablet */

@media (max-width: 1023px) {
    .publication-item {
        padding: var(--space-6);
    }
    .publication-title {
        font-size: var(--text-lg);
    }
    .category-heading {
        font-size: var(--text-xl);
    }
}


/* Mobile */

@media (max-width: 767px) {
    .page-header {
        padding: var(--space-12) 0 var(--space-6) 0;
    }
    .page-title {
        font-size: var(--text-2xl);
    }
    .page-subtitle {
        font-size: var(--text-sm);
    }
    .publications-section {
        padding: var(--space-12) 0;
    }
    .publication-category {
        margin-bottom: var(--space-12);
    }
    .category-heading {
        font-size: var(--text-xl);
        flex-wrap: wrap;
    }
    .year-badge {
        margin-left: 0;
        font-size: var(--text-sm);
    }
    .publications-list {
        gap: var(--space-8);
    }
    .publication-item {
        padding: var(--space-4);
    }
    .publication-title {
        font-size: var(--text-base);
    }
    .authors {
        font-size: var(--text-xs);
    }
    .publication-meta {
        font-size: var(--text-xs);
    }
    .publication-actions {
        gap: var(--space-3);
    }
    .action-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
        min-width: 85px;
        max-width: 110px;
        height: 36px;
    }
    .btn-icon {
        width: 14px;
        height: 14px;
    }
}


/* Small mobile */

@media (max-width: 479px) {
    .page-title {
        font-size: var(--text-xl);
    }
    .category-heading {
        font-size: var(--text-lg);
    }
    .publication-title {
        font-size: var(--text-sm);
    }
    .publication-actions {
        justify-content: flex-start;
        gap: var(--space-2);
    }
    .action-btn {
        padding: var(--space-2) var(--space-3);
        min-width: 75px;
        max-width: 100px;
        height: 34px;
        font-size: 0.7rem;
    }
}


/* ==================
   PRINT STYLES
   ================== */

@media print {
    .publication-item {
        page-break-inside: avoid;
        border: 1px solid var(--border-color);
        box-shadow: none;
        margin-bottom: var(--space-6);
    }
    .action-btn {
        display: none;
    }
    .author-highlight {
        font-weight: 700;
        text-decoration: none;
    }
    .publication-title {
        font-size: var(--text-base);
    }
}


/* ==================
   SCROLL ANIMATIONS
   ================== */

.publication-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.publication-item:nth-child(1) {
    animation-delay: 0.1s;
}

.publication-item:nth-child(2) {
    animation-delay: 0.2s;
}

.publication-item:nth-child(3) {
    animation-delay: 0.3s;
}

.publication-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Button stagger animation */

.action-btn {
    opacity: 0;
    animation: buttonSlideIn 0.4s ease-out forwards;
}

.action-btn:nth-child(1) {
    animation-delay: 0.5s;
}

.action-btn:nth-child(2) {
    animation-delay: 0.6s;
}

.action-btn:nth-child(3) {
    animation-delay: 0.7s;
}

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


/* ==================
   ACCESSIBILITY
   ================== */

.action-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


/* High contrast mode support */

@media (prefers-contrast: high) {
    .author-highlight {
        text-decoration-thickness: 3px;
    }
    .action-btn {
        border-width: 2px;
    }
}


/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    .publication-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .action-btn {
        transition: none;
    }
    .publication-item:hover {
        transform: none;
    }
}