/* Publications Page Styles */

/* Header */
.publications-header {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.publications-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
}

.publications-header-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.publications-header-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Stats Section */
.stats-section-pubs {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-item-pub {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.stat-item-pub:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-item-pub .stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 20px rgba(26, 71, 42, 0.3);
}

.stat-item-pub h3 {
    font-size: 3rem;
    font-weight: 900;
    color: #1a472a;
    margin-bottom: 0.5rem;
}

.stat-item-pub p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Featured Publications */
.publication-featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s;
    position: relative;
}

.publication-featured-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a472a;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
}

.pub-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.publication-featured-card:hover .pub-image img {
    transform: scale(1.1);
}

.pub-content {
    padding: 2rem;
}

.pub-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pub-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-content .subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pub-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 0.9rem;
}

.pub-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Section */
.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 1rem 2rem;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 71, 42, 0.3);
    border-color: #1a472a;
}

/* Publication Cards */
.publication-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.pub-card-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.pub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.publication-card:hover .pub-card-image img {
    transform: scale(1.1);
}

.free-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.pub-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.cat-book {
    background: #28a745;
}

.cat-research {
    background: #6f42c1;
}

.cat-guide {
    background: #fd7e14;
}

.cat-article {
    background: #17a2b8;
}

.cat-report {
    background: #28a745;
}

.pub-card-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.pub-card-content .author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pub-info {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    color: #888;
    font-size: 0.85rem;
}

.pub-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.pub-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA Section */
.cta-section-pubs {
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    color: white;
}

.cta-section-pubs h2 {
    font-weight: 700;
}

.cta-section-pubs .btn-light {
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.cta-section-pubs .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 991px) {
    .publications-header-title {
        font-size: 2.5rem;
    }
    
    .pub-image {
        height: 300px;
    }
    
    .stat-item-pub h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .publications-header {
        padding: 120px 0 60px;
    }
    
    .publications-header-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-direction: column;
    }
    
    .filter-tab {
        width: 100%;
        text-align: center;
    }
    
    .pub-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}
