﻿/* Core Styling */
.vibrant-theme-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.fw-black {
    font-weight: 900;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.text-shadow-vibrant {
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* ==========================================
   SERENE HERO SECTION (UPDATED COLORS)
   ========================================== */
.vibrant-hero {
    position: relative;
    padding-bottom: 6rem;
    overflow: hidden;
}

/* Deeper, calmer church-appropriate gradient */
.hero-moving-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #0f172a, #1e3a8a, #1e293b, #334155);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    z-index: 0;
}

.hero-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 1;
}

.latest-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: -10rem;
}

/* Elegant Gold Cover instead of bright Orange/Red */
.cover-image-area {
    background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
    border-radius: 20px 0 0 20px;
}

.watermark-icon {
    font-size: 15rem;
    color: #ffffff;
    opacity: 0.15;
    transform: rotate(-15deg);
    right: -30px;
    bottom: -40px;
}

.rounded-end-custom {
    border-radius: 0 20px 20px 0;
}

.slick-hover-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .slick-hover-btn:hover {
        transform: translateY(-3px) scale(1.02);
    }


/* ==========================================
   ARCHIVE GRID & CONTROL BAR
   ========================================== */
.archive-section {
    padding-top: 12rem !important;
}

/* Default pill shape for desktop */
.control-bar {
    border: 1px solid #e9ecef;
    border-radius: 50px;
}

    .control-bar input:focus {
        outline: none;
    }

.colorful-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: 1px solid #f8f9fa !important;
}

    .colorful-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-color: #e9ecef !important;
    }

.card-top-bar {
    height: 4px;
    width: 100%;
    transition: height 0.3s ease;
}

.colorful-card:hover .card-top-bar {
    height: 8px;
}

/* Subdued Card Accent Colors */
.accent-blue .card-top-bar {
    background: #3b82f6;
}

.accent-blue .type-tag {
    background: #eff6ff;
    color: #1d4ed8;
}

.accent-blue .action-link {
    color: #2563eb;
}

.accent-gold .card-top-bar {
    background: #d4af37;
}

.accent-gold .type-tag {
    background: #fefce8;
    color: #854d0e;
}

.accent-gold .action-link {
    color: #ca8a04;
}

.accent-slate .card-top-bar {
    background: #475569;
}

.accent-slate .type-tag {
    background: #f8fafc;
    color: #334155;
}

.accent-slate .action-link {
    color: #475569;
}

.card-bg-icon {
    font-size: 8rem;
    color: #f8f9fa;
    right: -10px;
    top: -10px;
    z-index: 0;
    transform: rotate(15deg);
    transition: all 0.5s ease;
}

.colorful-card:hover .card-bg-icon {
    transform: rotate(0deg) scale(1.1);
    color: #f1f3f5;
}

.date-bubble {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 1rem;
}

    .date-bubble .month {
        font-weight: 800;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: #495057;
    }

    .date-bubble .year {
        font-weight: 700;
        color: #212529;
        font-size: 1.1rem;
        line-height: 1;
    }

.action-link i {
    transition: transform 0.2s ease;
}

.colorful-card:hover .action-link i {
    transform: translateX(5px);
}

.download-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .download-circle:hover {
        background: #212529;
        color: #ffffff;
        transform: scale(1.1);
    }

/* Pagination */
.pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background: #1e293b;
    color: #ffffff;
}

.pagination .page-link:hover:not(.active):not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-drop-in {
    animation: dropIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* ==========================================
   MOBILE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    .vibrant-hero {
        padding-bottom: 2rem;
    }

    .latest-glass-card {
        margin-bottom: -4rem;
        border-radius: 16px;
    }

    .cover-image-area {
        border-radius: 16px 16px 0 0;
        min-height: 180px;
    }

    .rounded-end-custom {
        border-radius: 0 0 16px 16px;
    }

    .archive-section {
        padding-top: 7rem !important;
    }

    /* Fix for the control bar breaking on mobile */
    .control-bar {
        border-radius: 16px !important; /* Forces it to be a normal rounded box instead of a pill */
        padding: 1rem !important;
    }
}

/* Replaces .text-shadow-vibrant */
.text-shadow-crisp {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), /* Soft drop shadow for depth */
    0 1px 3px rgba(0, 0, 0, 0.9); /* Tight, dark outline for readability */
}