﻿/* ===== Publication View - Professional Law Firm ===== */

html, body { overflow-x: hidden; max-width: 100%; }

/* Publication Hero */
.publication-hero {
    background: linear-gradient(135deg, #0c1f3f 0%, #162d54 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.publication-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(184,150,78,0.08) 0%, transparent 50%);
}

.publication-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.publication-hero .breadcrumb-item a:hover { color: var(--gold, #b8964e); }
.publication-hero .breadcrumb-item.active { color: rgba(255,255,255,0.5); }

.publication-hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius, 8px);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.publication-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.publication-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.publication-hero-meta span { display: flex; align-items: center; gap: 0.5rem; }
.publication-hero-meta i { color: var(--gold, #b8964e); }

/* Publication Content Layout */
.publication-body { background: var(--bg-warm, #f8f7f4); padding: 4rem 0; }

.publication-cover {
    position: relative;
    margin-top: -60px;
    z-index: 2;
}

.publication-cover img {
    width: 100%;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.18));
    max-height: 480px;
    object-fit: cover;
}

/* Main Content */
.publication-main {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 3rem;
    box-shadow: var(--shadow, 0 4px 20px rgba(12,31,63,0.08));
    border: 1px solid var(--border, #e2e4e9);
}

.publication-main h1, .publication-main h2, .publication-main h3,
.publication-main h4, .publication-main h5, .publication-main h6 {
    color: var(--primary, #0c1f3f);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.publication-main p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text, #3a3f4b);
    margin-bottom: 1.5rem;
}

.publication-main ul, .publication-main ol {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.publication-main li { line-height: 2; color: var(--text, #3a3f4b); margin-bottom: 0.5rem; }

.publication-main blockquote {
    border-right: 4px solid var(--gold, #b8964e);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-warm, #f8f7f4);
    border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
    font-style: italic;
    color: var(--primary, #0c1f3f);
}

/* Sidebar Info Card */
.publication-info-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 20px rgba(12,31,63,0.08));
    border: 1px solid var(--border, #e2e4e9);
}

.publication-info-card .card-header {
    background: var(--primary, #0c1f3f);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.publication-info-card .card-header h5 { margin: 0; font-weight: 700; }

.publication-info-card .card-body { padding: 2rem; }

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border, #e2e4e9);
}

.info-item:last-child { border-bottom: none; }

.info-item .label {
    color: var(--text-muted, #9ca3af);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item .value {
    color: var(--primary, #0c1f3f);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Download Button */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    background: var(--gold, #b8964e);
    color: white;
    border: none;
    border-radius: var(--radius, 8px);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-download:hover {
    background: var(--gold-dark, #9a7a3c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184,150,78,0.35);
}

.download-count {
    text-align: center;
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

/* Share Section */
.pub-share {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    margin-top: 2rem;
    border: 1px solid var(--border, #e2e4e9);
    text-align: center;
}

.pub-share h6 {
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 1rem;
}

.pub-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--radius, 8px);
    background: var(--bg-warm, #f8f7f4);
    color: var(--text, #3a3f4b);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border, #e2e4e9);
    font-size: 1rem;
    margin: 0 0.25rem;
}

.pub-share .share-btn:hover { transform: translateY(-3px); }
.pub-share .share-btn.twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.pub-share .share-btn.facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.pub-share .share-btn.linkedin:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.pub-share .share-btn.whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }

/* Related Publications */
.related-publications {
    padding: 4rem 0;
    background: var(--bg-warm, #f8f7f4);
}

.related-publications h3 {
    font-weight: 800;
    color: var(--primary, #0c1f3f);
    margin-bottom: 2rem;
    text-align: center;
}

.related-pub-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--border, #e2e4e9);
}

.related-pub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.16));
    border-color: transparent;
}

.related-pub-card img {
    width: 100%; height: 180px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-pub-card:hover img { transform: scale(1.07); }
.related-pub-card .card-body { padding: 1.2rem; }
.related-pub-card h6 { font-weight: 700; color: var(--primary, #0c1f3f); margin-bottom: 0.3rem; line-height: 1.4; }
.related-pub-card h6 a { color: inherit; text-decoration: none; }
.related-pub-card h6 a:hover { color: var(--gold, #b8964e); }
.related-pub-card small { color: var(--text-muted, #9ca3af); }

/* Responsive */
@media (max-width: 991px) {
    .publication-hero-title { font-size: 2rem; }
    .publication-main { padding: 2rem; }
    .publication-cover img { max-height: 350px; }
}

@media (max-width: 768px) {
    .publication-hero { padding: 110px 0 60px; }
    .publication-hero-title { font-size: 1.6rem; }
    .publication-hero-meta { flex-direction: column; gap: 0.6rem; }
    .publication-body { padding: 2.5rem 0; }
    .publication-main { padding: 1.5rem; }
    .publication-cover { margin-top: -40px; }
    .publication-cover img { max-height: 280px; }
}

@media (max-width: 576px) {
    .publication-hero { padding: 90px 0 40px; }
    .publication-hero-title { font-size: 1.4rem; }
    .publication-main { padding: 1.2rem; }
    .publication-cover img { max-height: 220px; }
}
