﻿/* ===== Publications Styles - Professional Law Firm ===== */

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

/* Publications Header */
.publications-header {
    background: linear-gradient(135deg, #0c1f3f 0%, #162d54 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

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

.publications-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, #f8f7f4, transparent);
}

.publications-header-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.publications-header-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Stats Strip */
.pub-stats {
    background: white;
    padding: 2rem 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(12,31,63,0.12));
    margin-left: 1rem;
    margin-right: 1rem;
}

.pub-stat-item { text-align: center; }

.pub-stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold, #b8964e);
    display: block;
}

.pub-stat-label {
    color: var(--text-light, #6b7280);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter Tabs */
.filter-section {
    padding: 2rem 0;
    background: var(--bg-warm, #f8f7f4);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--border, #e2e4e9);
    border-radius: var(--radius, 8px);
    background: white;
    color: var(--text, #3a3f4b);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-tab:hover {
    border-color: var(--gold, #b8964e);
    color: var(--gold, #b8964e);
}

.filter-tab.active {
    background: var(--primary, #0c1f3f);
    border-color: var(--primary, #0c1f3f);
    color: white;
}

/* Publication Card */
.publications-grid { padding: 3rem 0; background: var(--bg-warm, #f8f7f4); }

.publication-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%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #e2e4e9);
}

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

.publication-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.publication-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.publication-card:hover .publication-card-image img { transform: scale(1.07); }

.publication-type-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 0.35rem 1rem;
    border-radius: var(--radius, 8px);
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
}

.badge-book { background: var(--primary, #0c1f3f); }
.badge-research { background: var(--gold, #b8964e); }
.badge-guide { background: #2563eb; }
.badge-article { background: #059669; }
.badge-report { background: #7c3aed; }

.publication-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.publication-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.publication-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication-card-title a:hover { color: var(--gold, #b8964e); }

.publication-card-author {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.publication-card-excerpt {
    color: var(--text-light, #6b7280);
    line-height: 1.8;
    font-size: 0.92rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.publication-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #e2e4e9);
    gap: 0.5rem;
}

.publication-card-footer small {
    color: var(--text-muted, #9ca3af);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold, #b8964e);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.btn-read-more:hover { color: var(--primary, #0c1f3f); gap: 0.8rem; }

/* CTA Section */
.publications-cta {
    background: var(--primary, #0c1f3f);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.publications-cta::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(184,150,78,0.08) 0%, transparent 50%);
}

.publications-cta h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.publications-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.publications-cta .btn {
    position: relative;
    z-index: 1;
    font-weight: 700;
}

/* Search */
.publications-search {
    padding: 1.5rem 0;
    background: var(--bg-warm, #f8f7f4);
}

.publications-search .form-control {
    border: 2px solid var(--border, #e2e4e9);
    border-radius: var(--radius, 8px);
    padding: 0.8rem 1.5rem;
    background: white;
}

.publications-search .form-control:focus {
    border-color: var(--gold, #b8964e);
    box-shadow: 0 0 0 3px rgba(184,150,78,0.15);
}

/* Empty State */
.no-publications {
    text-align: center;
    padding: 5rem 2rem;
}

.no-publications i {
    font-size: 4rem;
    color: var(--border, #e2e4e9);
    margin-bottom: 1.5rem;
}

.no-publications h4 {
    color: var(--primary, #0c1f3f);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-publications p { color: var(--text-light, #6b7280); }

/* Responsive */
@media (max-width: 991px) {
    .publications-header-title { font-size: 2.2rem; }
    .publications-cta h2 { font-size: 1.8rem; }
    .publication-card-image { height: 180px; }
}

@media (max-width: 768px) {
    .publications-header { padding: 110px 0 60px; }
    .publications-header-title { font-size: 1.8rem; }
    .publications-header-subtitle { font-size: 1rem; }
    .pub-stats { margin-left: 0.5rem; margin-right: 0.5rem; }
    .pub-stat-number { font-size: 1.5rem; }
    .filter-tabs { gap: 0.4rem; }
    .filter-tab { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .publication-card-image { height: 160px; }
    .publications-cta { padding: 3rem 0; }
}

@media (max-width: 576px) {
    .publications-header { padding: 90px 0 40px; }
    .publications-header-title { font-size: 1.5rem; }
    .publication-card-content { padding: 1.2rem; }
    .pub-stats { padding: 1.5rem 0; }
}

/* ===== Additional Publication Component Styles ===== */

/* Featured Publication Card */
.publication-featured-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(12,31,63,0.12));
    position: relative;
    border: 1px solid var(--border, #e2e4e9);
    height: 100%;
    transition: all 0.4s ease;
}

.publication-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.16));
}

.publication-featured-card .featured-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--gold, #b8964e);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius, 8px);
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(184,150,78,0.35);
}

.publication-featured-card .pub-image {
    height: 280px;
    overflow: hidden;
}

.publication-featured-card .pub-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.publication-featured-card:hover .pub-image img { transform: scale(1.07); }

.publication-featured-card .pub-content {
    padding: 1.5rem;
}

.publication-featured-card .pub-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.publication-featured-card .subtitle {
    color: var(--text-light, #6b7280);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.publication-featured-card .pub-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.publication-featured-card .pub-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* Pub Card (used in grid & related) */
.pub-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.publication-card:hover .pub-card-image img { transform: scale(1.07); }

.pub-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pub-card-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.pub-card-content .author {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.pub-card-content .pub-info {
    display: flex;
    gap: 1rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
}

.pub-card-content .pub-info span { display: flex; align-items: center; gap: 0.3rem; }

.pub-card-content .pub-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.pub-card-content .pub-stats span { display: flex; align-items: center; gap: 0.3rem; }

/* Free Badge */
.free-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--gold, #b8964e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius, 8px);
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 2;
}

/* Category Badges */
.pub-category-badge,
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius, 8px);
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.cat-book { background: var(--primary, #0c1f3f); }
.cat-research { background: var(--gold, #b8964e); }
.cat-guide { background: #2563eb; }
.cat-article { background: #059669; }
.cat-report { background: #7c3aed; }

/* Publication View Specific */
.pub-view-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-light, #6b7280);
    margin-bottom: 1.5rem;
}

.pub-view-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-warm, #f8f7f4);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius, 8px);
    color: var(--text, #3a3f4b);
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-badge i { color: var(--gold, #b8964e); }

.pub-view-description,
.pub-view-summary {
    margin-bottom: 2rem;
}

.pub-view-description h3,
.pub-view-summary h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border, #e2e4e9);
    position: relative;
}

.pub-view-description h3::after,
.pub-view-summary h3::after {
    content: '';
    position: absolute;
    bottom: -2px; right: 0;
    width: 50px; height: 2px;
    background: var(--gold, #b8964e);
}

.pub-view-description p,
.pub-view-summary p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text, #3a3f4b);
}

/* Breadcrumb nav */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted, #9ca3af);
}

.breadcrumb-nav a {
    color: var(--gold, #b8964e);
    text-decoration: none;
}

.breadcrumb-nav a:hover { color: var(--primary, #0c1f3f); }

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary, #0c1f3f);
    margin-bottom: 0.5rem;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--gold, #b8964e);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Contact Info Modal */
.contact-info-modal .contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius, 8px);
    background: var(--bg-warm, #f8f7f4);
    margin-bottom: 0.8rem;
}

.contact-info-modal .contact-item i {
    font-size: 1.3rem;
    color: var(--gold, #b8964e);
    width: 24px;
    text-align: center;
}

.contact-info-modal .contact-item strong {
    display: block;
    color: var(--primary, #0c1f3f);
    font-size: 0.85rem;
}

.contact-info-modal .contact-item p {
    margin: 0;
    color: var(--text, #3a3f4b);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--radius-lg, 16px);
    border: none;
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.18));
}

.modal-header {
    border-bottom: 1px solid var(--border, #e2e4e9);
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    color: var(--primary, #0c1f3f);
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    border-top: 1px solid var(--border, #e2e4e9);
    padding: 1rem 1.5rem;
}

.phone-number { direction: ltr; text-align: right; }
