/* =====================================================
 * RocketPress Category Pages - Shared Styles
 * Used by news.php / products.php / news_show.php / products_show.php
 * Load BEFORE theme-specific CSS so themes can override.
 * ===================================================== */

/* Page hero header */
.list-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    color: #fff;
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.list-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.18) 0%, transparent 40%);
    pointer-events: none;
}
.list-hero .container {
    position: relative;
    z-index: 1;
}
.list-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
    color: #fff;
}
.list-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 640px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Breadcrumb inside article pages */
.breadcrumb {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.88rem;
    margin-bottom: 28px;
}
.breadcrumb-item a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-item a:hover {
    color: #2563eb;
}
.breadcrumb-item.active {
    color: #64748b;
}

/* Sub-category cloud */
.subcat-cloud {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.subcat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}
.subcat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.subcat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.subcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.subcat-chip:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}
.subcat-chip:hover .subcat-arrow svg {
    fill: #fff;
    transform: translateX(3px);
}
.subcat-arrow svg {
    transition: transform 0.25s, fill 0.25s;
    fill: #64748b;
}

/* News card */
.news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.news-img {
    height: 210px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover .news-img img {
    transform: scale(1.06);
}
.news-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-body time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 10px;
}
.news-body time svg {
    width: 14px;
    height: 14px;
    fill: #94a3b8;
}
.news-body h5,
.news-body h6 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-body h5 a,
.news-body h6 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.news-body h5 a:hover,
.news-body h6 a:hover {
    color: #2563eb;
}
.news-body p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Product card */
.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img img {
    transform: scale(1.06);
}
.product-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-body h5,
.product-body h6 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}
.product-body h5 a,
.product-body h6 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.product-body h5 a:hover,
.product-body h6 a:hover {
    color: #2563eb;
}
.product-body p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}
.product-body .btn {
    align-self: flex-start;
}

/* Article content extra polish */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.article-content ul,
.article-content ol {
    padding-left: 1.4em;
    margin-bottom: 1.2rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content blockquote {
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    padding: 1.2rem 1.5rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

/* Prev / next navigation */
.news-show-nav a,
.products-show-nav a {
    display: block;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s;
}
.news-show-nav a:hover,
.products-show-nav a:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

/* Pagination alignment */
.pagination {
    margin-top: 40px;
    margin-bottom: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.empty-state svg,
.empty-icon svg {
    opacity: 0.3;
}

/* Utility helpers for templates */
.cover-plain {
    padding: 0 !important;
}
.hero-shadow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 767.98px) {
    .list-hero {
        padding: 52px 0 40px;
    }
    .list-hero h1 {
        font-size: 1.9rem;
    }
    .list-hero p {
        font-size: 0.95rem;
    }
    .news-img,
    .product-img {
        height: 180px;
    }
}
