/* ============================================================
   Chris Blog Cards — Base Styles
   Dynamic overrides are injected inline from plugin settings
   ============================================================ */

.cbc-grid {
    display: grid;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.cbc-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cbc-card-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    background-size: cover;
    background-position: center;
}

.cbc-card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.30);
}

.cbc-badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 10px;
    text-decoration: none;
}

.cbc-card-body h3 {
    margin: 0 0 8px;
    line-height: 1.35;
    font-family: 'Outfit', sans-serif;
}

.cbc-card-body p {
    font-family: Arial, sans-serif;
    margin: 0 0 14px;
    line-height: 1.5;
}

.cbc-read-link {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.cbc-read-link:hover { text-decoration: underline; }

/* Category gradient backgrounds */
.cbc-bg-navy  { background: linear-gradient(135deg,#1a2a4a,#2d4a7a); }
.cbc-bg-brown { background: linear-gradient(135deg,#6b4a1a,#a06b2a); }
.cbc-bg-green { background: linear-gradient(135deg,#1a4a2a,#2a6b3a); }
.cbc-bg-dark  { background: linear-gradient(135deg,#2a1a4a,#4a2a7a); }
.cbc-bg-red   { background: linear-gradient(135deg,#4a1a1a,#7a2a2a); }

/* ── SINGLE POST ─────────────────────────────────────────── */

.cbc-single-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.cbc-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.70) 100%);
}

.cbc-single-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 24px 40px;
}

.cbc-single-badge {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    transition: background 0.2s;
}

.cbc-single-hero h1 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-family: 'Outfit', sans-serif;
}

.cbc-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    flex-wrap: wrap;
}

.cbc-single-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.cbc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cbc-back-link:hover { text-decoration: underline; }

.cbc-single-content { font-family: 'Outfit', sans-serif; }

.cbc-single-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
}

.cbc-single-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 32px 0 12px;
}

.cbc-single-content p  { margin: 0 0 20px; }

.cbc-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.cbc-single-content ul,
.cbc-single-content ol { margin: 0 0 20px 24px; }

.cbc-single-content li { margin-bottom: 8px; }

.cbc-single-content blockquote {
    margin: 28px 0;
    padding: 16px 24px;
    background: #f8f8f8;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
    border-left: 4px solid;
}

.cbc-single-content a { text-decoration: underline; }

/* Author box */
.cbc-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 48px 0 40px;
    border: 1px solid #eee;
}

.cbc-author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cbc-author-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.cbc-author-info p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Related posts */
.cbc-related {
    margin-top: 60px;
    border-top: 2px solid #eee;
    padding-top: 40px;
}

.cbc-related h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
    font-family: 'Outfit', sans-serif;
}

.cbc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cbc-related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.cbc-related-card:hover { transform: translateY(-3px); }

.cbc-related-thumb {
    height: 130px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    background-size: cover;
    background-position: center;
}

.cbc-related-body { padding: 14px; }

.cbc-related-body h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}

.cbc-related-body span {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #888;
}

/* No posts */
.cbc-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
    color: #888;
}

@media (max-width: 768px) {
    .cbc-related-grid  { grid-template-columns: 1fr; }
    .cbc-author-box    { flex-direction: column; text-align: center; }
}
