/* ============================================
   BLOG STYLES (Listing & Post Details)
   CocBase.Net
   ============================================ */

:root {
    --blog-card-bg: rgba(255, 255, 255, 0.03);
    --blog-border: rgba(255, 255, 255, 0.08);
}

/* ============================================
   1. BLOG LISTING (blog.php)
   ============================================ */

/* Blog Header Card (Deck style matching Home Page & Categories) */
.blog-header-section {
    padding: 1.25rem 0 0.5rem;
}

.blog-header-card {
    background: var(--card-bg, #161c28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.blog-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.blog-title-group {
    display: flex;
    flex-direction: column;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(78, 137, 232, 0.12);
    border: 1px solid rgba(78, 137, 232, 0.25);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    width: fit-content;
}

.blog-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.blog-hero-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 650px;
    line-height: 1.45;
}

.blog-header-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(78, 137, 232, 0.25) 50%, rgba(255, 255, 255, 0.08) 100%);
    margin: 18px 0;
}

.blog-categories-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.blog-categories-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    font-family: 'Outfit', sans-serif;
}

.blog-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.blog-cat-pill:hover {
    background: rgba(78, 137, 232, 0.15);
    border-color: rgba(78, 137, 232, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

.blog-cat-pill.active {
    background: #4E89E8;
    border-color: #4E89E8;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(78, 137, 232, 0.35);
}

@media (max-width: 767px) {
    .blog-header-card {
        padding: 18px 16px;
    }
    .blog-hero-title {
        font-size: 1.55rem;
    }
    .blog-categories-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Featured Post */
.featured-main-card {
    background: linear-gradient(135deg, #1a1a1b 0%, #000 100%);
    border: 1px solid var(--blog-border) !important;
    min-height: 450px;
}

.featured-img-container {
    position: relative;
    height: 100%;
    min-height: 450px;
    width: 100%;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

@media (max-width: 991px) {
    .featured-main-card {
        min-height: auto;
    }
    .featured-img-container {
        min-height: 250px;
        height: 250px;
    }
    .featured-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    }
}

/* Premium Blog Card */
.premium-blog-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(13, 110, 253, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
}

.blog-zoom-img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-blog-card:hover .blog-zoom-img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Pagination */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--blog-border);
    color: #fff;
    border-radius: 12px;
    margin: 0 5px;
    padding: 12px 20px;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ============================================
   2. BLOG POST DETAILS (blog_post.php)
   ============================================ */

.premium-post-title {
    letter-spacing: -2px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .premium-post-title {
        font-size: 2rem !important;
        letter-spacing: -1px;
        line-height: 1.2;
    }
}

.category-meta-tag {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.premium-hero-wrapper {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.premium-hero-img {
    max-height: 550px;
    object-fit: cover;
}

.premium-typography {
    line-height: 2;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.premium-typography p,
.premium-typography span,
.premium-typography div,
.premium-typography li {
    color: inherit !important;
}

.premium-typography p {
    margin-bottom: 2.5rem;
}

.premium-typography img {
    max-width: 100%;
    height: auto !important;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.premium-typography h2,
.premium-typography h3 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

/* Sidebar Premium */
.premium-sidebar-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-layout-widget {
    background: linear-gradient(135deg, #0a3b80 0%, #000 100%);
}

.cta-icon-box {
    font-size: 3rem;
    filter: drop-shadow(0 5px 15px rgba(255, 193, 7, 0.3));
}

.shadow-warning {
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.25);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.share-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-btn.fb:hover {
    background: #1877f2;
}

.share-btn.x:hover {
    background: #000;
}

.share-btn.wa:hover {
    background: #25d366;
}

.premium-breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
}

.premium-breadcrumb .breadcrumb-item a:hover {
    opacity: 1;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.hover-translate:hover {
    transform: translateX(5px);
}

.group-hover-zoom {
    transition: transform 0.4s ease;
}

.group:hover .group-hover-zoom {
    transform: scale(1.1);
}

/* ============================================
   3. SHARED TYPOGRAPHY & UTILITIES
   ============================================ */

.x-small {
    font-size: 0.75rem;
}

.tracking-widest {
    letter-spacing: 2px;
}

.tracking-wider {
    letter-spacing: 1px;
}

.small-caps {
    font-variant: small-caps;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transition-300 {
    transition: all 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.shadow-primary {
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}
