/* ============================================
   CHURCHJET - STORIES PAGE
============================================ */


/* HERO CARD */

.cp-stories-hero-card {
    max-width: 370px;
    margin-left: auto;
    padding: 2rem;

    border-radius: 1.5rem;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);

    backdrop-filter: blur(8px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
}

.cp-stories-hero-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.18);

    color: #ffffff;

    font-size: 1.9rem;
}


/* FEATURED STORY */

.cp-story-featured {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;

    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.cp-featured-story-image {
    width: 100%;
    height: 100%;
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
            135deg,
            #4f46e5,
            #2563eb
    );

    color: #ffffff;

    font-size: 6rem;
}

.cp-featured-story-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cp-featured-story-content {
    height: 100%;

    padding: 3rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.cp-featured-story-content h2 {
    line-height: 1.3;
}

.cp-story-category {
    display: inline-flex;

    padding: 0.35rem 0.85rem;

    border-radius: 999px;

    background: #eef2ff;
    color: #4338ca;

    font-size: 0.8rem;
    font-weight: 600;
}

.cp-story-meta {
    color: #6b7280;
    font-size: 0.9rem;
}


/* STORY TOOLBAR */

.cp-story-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 1.5rem;
    flex-wrap: wrap;
}

.cp-story-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 0.6rem;
}

.cp-story-filter {
    padding: 0.55rem 1rem;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: #ffffff;
    color: #4b5563;

    font-size: 0.88rem;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
}

.cp-story-filter:hover {
    border-color: #6366f1;
    color: #4f46e5;
}

.cp-story-filter.active {
    background: linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
    );

    border-color: transparent;

    color: #ffffff;

    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.20);
}


/* SEARCH */

.cp-story-search {
    position: relative;

    width: 100%;
    max-width: 320px;
}

.cp-story-search > i {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #9ca3af;

    z-index: 2;
}

.cp-story-search .cp-input {
    width: 100%;

    padding: 0.75rem 1rem 0.75rem 2.7rem;

    border-radius: 0.85rem;

    background: #ffffff;
    border: 1px solid #e5e7eb;

    font-size: 0.9rem;
}

.cp-story-search .cp-input:focus {
    border-color: #6366f1;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}


/* STORY CARDS */

.cp-story-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;

    overflow: hidden;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);

    transition: all 0.25s ease;
}

.cp-story-card:hover {
    transform: translateY(-5px);

    border-color: #c7d2fe;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}


/* CARD IMAGE */

.cp-story-card-image {
    position: relative;

    height: 220px;

    overflow: hidden;

    background: linear-gradient(
            135deg,
            #6366f1,
            #2563eb
    );
}

.cp-story-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.cp-story-card:hover .cp-story-card-image img {
    transform: scale(1.05);
}

.cp-story-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.9);

    font-size: 4rem;
}

.cp-story-image-category {
    position: absolute;

    top: 15px;
    left: 15px;

    padding: 0.35rem 0.8rem;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.95);

    color: #4338ca;

    font-size: 0.75rem;
    font-weight: 600;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* CARD BODY */

.cp-story-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 1.5rem;
}

.cp-story-date {
    margin-bottom: 0.85rem;

    color: #9ca3af;

    font-size: 0.82rem;
}

.cp-story-title {
    margin-bottom: 0.75rem;

    color: #111827;

    font-size: 1.2rem;
    font-weight: 700;

    line-height: 1.4;
}

.cp-story-description {
    color: #6b7280;

    font-size: 0.92rem;
    line-height: 1.7;

    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* CARD FOOTER */

.cp-story-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: auto;
    padding-top: 1rem;

    border-top: 1px solid #f3f4f6;
}

.cp-story-read-link {
    color: #4f46e5;

    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.cp-story-read-link:hover {
    color: #3730a3;
}

.cp-story-video-indicator {
    color: #6366f1;

    font-size: 1.2rem;
}


/* EMPTY STATE */

.cp-stories-empty {
    padding: 4rem 1.5rem;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
}

.cp-stories-empty-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 1.5rem;

    border-radius: 50%;

    background: #eef2ff;

    color: #4f46e5;

    font-size: 1.8rem;
}


/* LOADING STATE */

.cp-stories-loading {
    padding: 4rem 1rem;
    text-align: center;
}


/* SHARE STORY */

.cp-story-share-card {
    padding: 2rem;

    border-radius: 1.5rem;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.20);

    backdrop-filter: blur(8px);
}

.cp-story-share-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    font-size: 1.8rem;
}


/* RESPONSIVE */

@media (max-width: 991.98px) {

    .cp-featured-story-image {
        min-height: 300px;
    }

    .cp-featured-story-content {
        padding: 2rem;
    }

    .cp-story-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-story-search {
        max-width: 100%;
    }

}

@media (max-width: 767.98px) {

    .cp-featured-story-image {
        min-height: 250px;
        font-size: 4rem;
    }

    .cp-featured-story-content {
        padding: 1.5rem;
    }

    .cp-story-card-image {
        height: 200px;
    }

    .cp-story-filter {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
    }

    .cp-story-card-body {
        padding: 1.25rem;
    }

}