/* Publication Detail Page Styles */
/* Extracted from inline styles - reusable for all publications */

/* Two-column layout */
.publication-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.publication-content {
    max-width: 100%;
}

/* Sidebar */
.publication-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.sidebar-cover {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

/* Metadata items */
.meta-item {
    margin-bottom: 1rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Banner image */
.banner-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
}

/* Content area */
.publication-body {
    line-height: 1.8;
    color: var(--color-text);
}

.publication-body p {
    margin-bottom: 1.5rem;
}

/* Download section */
.download-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 1px solid #bae6fd;
}

.download-section h4 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-section p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.download-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

/* Page header styles */
.publication-date {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.publication-title {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 2.25rem;
    line-height: 1.3;
    max-width: 700px;
}

/* Error state */
.error-message {
    text-align: center;
    padding: 4rem 2rem;
}

.error-message h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--color-muted);
    margin-bottom: 2rem;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .publication-layout {
        grid-template-columns: 1fr;
    }

    .publication-sidebar {
        position: static;
        order: -1;
    }

    .publication-title {
        font-size: 1.75rem;
    }

    .banner-image {
        height: 250px;
    }
}