/* ============================================
   Updates List News Template Styles
   (Extracted from Beanie Blossom Prototype)
   ============================================ */

/* Page Header */
.page-header {
    padding: 2rem 0;
}

.page-header h1 {
    font-weight: 700;
    color: #2c2c2c;
}

.page-header .lead {
    color: #5a5a5a;
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Accent Line */
.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #9b59b6, #e91e63);
    border-radius: 3px;
    margin: 1rem 0;
}

/* Featured Post (Hero Card) */
.featured-post {
    animation: fadeIn 0.8s ease-out;
}

.featured-post .content-card {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.featured-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    transition: transform 0.6s ease;
}

.featured-post .content-card:hover .featured-post-image {
    transform: scale(1.1);
}

.featured-post h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.3;
}

/* Category Badges */
.badge-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category.updates {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.badge-category.open-calls {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Badge on Image Overlay */
.badge-category-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.badge-category-overlay.updates {
    background: rgba(155, 89, 182, 0.9);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.badge-category-overlay.open-calls {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Post Meta Info */
.post-meta {
    color: #888;
    font-size: 0.9rem;
}

.post-date {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-date i {
    color: #9b59b6;
}

/* Update Cards */
.update-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.update-card:nth-child(1) {
    animation-delay: 0.1s;
}

.update-card:nth-child(2) {
    animation-delay: 0.2s;
}

.update-card:nth-child(3) {
    animation-delay: 0.3s;
}

.update-card:nth-child(4) {
    animation-delay: 0.4s;
}

.update-card:nth-child(5) {
    animation-delay: 0.5s;
}

.update-card:nth-child(6) {
    animation-delay: 0.6s;
}

.update-card img {
    height: 250px;
    object-fit: cover;
}

.update-card .card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    min-height: 2.8em;
    color: #2c2c2c;
    font-weight: 700;
}

.update-card .text-muted {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-card .btn-outline-primary {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
}

/* Updates Grid Spacing */
.updates-grid {
    margin-top: 3rem;
}

/* Content Cards (from main styles) */
.content-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.12),
        0 2px 8px rgba(233, 30, 99, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b59b6, #e91e63, #4caf50);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(155, 89, 182, 0.2),
        0 5px 15px rgba(233, 30, 99, 0.15);
    border-color: rgba(155, 89, 182, 0.3);
}

.content-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.content-card:hover img {
    transform: scale(1.05);
}

.content-card .card-body {
    padding: 1.75rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.content-card .card-title {
    color: #9b59b6;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-post-image {
        min-height: 250px;
    }

    .featured-post h2 {
        font-size: 1.5rem;
    }

    .update-card img {
        height: 200px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .featured-post-image {
        min-height: 200px;
    }

    .featured-post h2 {
        font-size: 1.25rem;
    }

    .update-card .card-title {
        font-size: 1rem;
        min-height: auto;
    }

    .content-card .card-body {
        padding: 1.25rem;
    }
}