/**
 * Blog Page & SEO Article Architecture Styles
 * File: sections/blog/blog.css
 * Project: Website Deployment (JIYA WEB SOLUTION)
 * Modern Pure Black Cyber Dark Aesthetic
 */

/* ==========================================================================
   1. Standalone Blog Page Base Container
   ========================================================================== */
.blog-standalone-page {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 160px);
    background: #000000 !important;
    padding: 36px 24px 80px 24px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
}

.blog-page-container {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   2. Blog Header Section (Cyber Pitch Black Container with Corner Lighting)
   ========================================================================== */
.blog-header-container {
    position: relative;
    background: #000000 !important;
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 22px;
    padding: 44px 36px 40px 36px;
    margin-bottom: 46px;
    text-align: center;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(0, 240, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Ambient Corner Lighting (Top-Left Cyan & Bottom-Right Emerald) */
.blog-header-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(0, 240, 255, 0.24) 0%, rgba(0, 240, 255, 0.06) 28%, transparent 58%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.24) 0%, rgba(16, 185, 129, 0.06) 28%, transparent 58%);
    pointer-events: none;
    z-index: 1;
}

/* Crisp Cyber Corner Neon Lighting Bars */
.blog-header-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 22px;
    background: 
        /* Upper-Left Corner Light (Cyan Accent) */
        linear-gradient(90deg, #00f0ff 0%, rgba(0, 240, 255, 0.8) 40px, transparent 100px) top left / 100px 3.5px no-repeat,
        linear-gradient(180deg, #00f0ff 0%, rgba(0, 240, 255, 0.8) 40px, transparent 100px) top left / 3.5px 100px no-repeat,
        /* Lower-Right Corner Light (Emerald Accent) */
        linear-gradient(270deg, #10b981 0%, rgba(16, 185, 129, 0.8) 40px, transparent 100px) bottom right / 100px 3.5px no-repeat,
        linear-gradient(0deg, #10b981 0%, rgba(16, 185, 129, 0.8) 40px, transparent 100px) bottom right / 3.5px 100px no-repeat;
    filter: drop-shadow(-3px -3px 12px rgba(0, 240, 255, 0.9)) drop-shadow(3px 3px 12px rgba(16, 185, 129, 0.9));
}

.blog-header-container > * {
    position: relative;
    z-index: 3;
}

/* Small Cyber Badge */
.blog-hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    border-radius: 6px;
    background: #000000 !important;
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #00f0ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), inset 0 0 14px rgba(0, 240, 255, 0.08);
    overflow: hidden;
}

.blog-hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border-top: 2.5px solid #00f0ff;
    border-left: 2.5px solid #00f0ff;
    border-top-left-radius: 5px;
    box-shadow: -2px -2px 10px rgba(0, 240, 255, 0.85);
    pointer-events: none;
}

.blog-hero-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-bottom: 2.5px solid #10b981;
    border-right: 2.5px solid #10b981;
    border-bottom-right-radius: 5px;
    box-shadow: 2px 2px 10px rgba(16, 185, 129, 0.85);
    pointer-events: none;
}

.blog-hero-badge i {
    color: #00f0ff;
    filter: drop-shadow(0 0 8px #00f0ff);
}

/* Page Title (H1) */
.blog-hero-title {
    font-family: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.35;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.blog-hero-title .highlight-cyan {
    background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.55));
}

/* Page Description */
.blog-hero-desc {
    color: #cbd5e1;
    font-size: 0.94rem;
    font-weight: 500;
    max-width: 960px;
    margin: 0 auto;
    line-height: 1.75;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   3. Blog Cards Grid (Responsive 4-Column Layout)
   ========================================================================== */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

@media (max-width: 1240px) {
    .blog-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 880px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   4. Single Blog Card Box (Contains ONLY: Image, Title, Description, Details)
   ========================================================================== */
.blog-card {
    background: #060b18;
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #00f0ff;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(0, 240, 255, 0.25);
}

/* Element 1: Featured Image */
.blog-card-img-wrap {
    position: relative;
    width: 100%;
    height: 195px;
    overflow: hidden;
    background: #020617;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.08);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(6, 11, 24, 0.6) 100%);
    pointer-events: none;
}

/* Slanted Diagonal Cut Separator Line ("টেরা দাগ") between Photo & Text */
.blog-card-slanted-edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 22px;
    pointer-events: none;
    z-index: 4;
}

.blog-card-slanted-edge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.slanted-poly {
    fill: #060b18; /* Seamlessly blends into the card body background */
}

.slanted-line {
    stroke: #00f0ff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 6px #00f0ff);
    transition: stroke 0.35s ease, filter 0.35s ease;
}

.blog-card:hover .slanted-line {
    stroke: #10b981;
    filter: drop-shadow(0 0 10px #10b981);
}

/* Compact Card Body Content (Space-Optimized to Emphasize Photos) */
.blog-card-body {
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #060b18;
}

/* Element 2: Blog Title (Compact 2-line clamp) */
.blog-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.55em;
    max-height: 2.55em;
    transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title {
    color: #00f0ff;
}

/* Element 3: Short Description (Compact 2-line clamp) */
.blog-card-desc {
    color: #94a3b8;
    font-size: 0.80rem;
    line-height: 1.45;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
    max-height: 2.2em;
    flex-grow: 1;
}

/* Element 4: Details Action Button with Animated Color-Cycling Pulse Arrow */
.blog-card-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.32);
    color: #ffffff;
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.25s ease;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.blog-card-details-btn .btn-label {
    color: #e2e8f0;
    transition: color 0.25s ease;
}

.blog-card-details-btn:hover {
    background: rgba(0, 240, 255, 0.16);
    border-color: #00f0ff;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
    transform: translateX(3px);
}

.blog-card-details-btn:hover .btn-label {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.btn-pulse-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.25s ease;
}

.blog-card-details-btn:hover .btn-pulse-arrow {
    transform: translateX(2px);
}

/* Continuous Cycling Color Shift Animation on the Waveform Arrow */
@keyframes pulseWaveformColorCycle {
    0% {
        stroke: #00f0ff;
        filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.95));
    }
    20% {
        stroke: #10b981;
        filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.95));
    }
    40% {
        stroke: #f59e0b;
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.95));
    }
    60% {
        stroke: #ec4899;
        filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.95));
    }
    80% {
        stroke: #a855f7;
        filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.95));
    }
    100% {
        stroke: #00f0ff;
        filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.95));
    }
}

.arrow-waveform-body,
.arrow-waveform-head {
    animation: pulseWaveformColorCycle 3s linear infinite;
    vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   5. Single Article Full Post View (When ?article=<slug> is opened)
   ========================================================================== */
.blog-single-article-view {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
}

.blog-breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.86rem;
    color: #64748b;
    flex-wrap: wrap;
}

.blog-breadcrumb-bar a {
    color: #00f0ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb-bar a:hover {
    color: #ffffff;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.25s ease;
}

.blog-back-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #ffffff;
    transform: translateX(-3px);
}

.blog-article-card {
    background: linear-gradient(145deg, rgba(8, 14, 28, 0.98) 0%, rgba(4, 7, 16, 0.99) 100%);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 20px;
    overflow: hidden;
    padding: 44px 50px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 255, 0.1);
}

@media (max-width: 768px) {
    .blog-article-card {
        padding: 24px 20px;
    }
}

.blog-article-hero-img-wrap {
    width: 100%;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: #020617;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .blog-article-hero-img-wrap {
        height: 240px;
        border-radius: 12px;
        margin-bottom: 24px;
    }
}

.blog-article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article Meta Bar (Category, Reading Time, Verified Badge) */
.blog-article-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid;
    letter-spacing: 0.3px;
}

.meta-pill.category-pill {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.38);
    color: #00f0ff;
}

.meta-pill.reading-time-pill {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}

.meta-pill.verified-pill {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.38);
    color: #10b981;
}

.blog-article-h1 {
    font-family: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 2.7vw, 2.45rem);
    font-weight: 900;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 28px 0;
    letter-spacing: 0.3px;
}

.blog-article-content {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.9;
}

.blog-article-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #00f0ff;
    margin: 40px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

.blog-article-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 30px 0 14px 0;
}

.blog-article-content p {
    margin: 0 0 22px 0;
}

.blog-article-content ul, 
.blog-article-content ol {
    margin: 0 0 24px 24px;
    padding-left: 10px;
}

.blog-article-content li {
    margin-bottom: 12px;
    color: #e2e8f0;
}

.blog-article-content code {
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.blog-callout-box {
    background: rgba(15, 23, 42, 0.7);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 34px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.blog-callout-box h4 {
    color: #34d399;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.blog-callout-box ul {
    margin: 0 0 0 18px;
    padding: 0;
}

.blog-callout-box li {
    color: #cbd5e1;
    margin-bottom: 8px;
}

/* Bottom CTA inside single article */
.blog-article-cta-box {
    margin-top: 48px;
    padding: 36px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    text-align: center;
}

.blog-article-cta-box h3 {
    font-family: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.blog-article-cta-box p {
    color: #94a3b8;
    font-size: 0.94rem;
    max-width: 650px;
    margin: 0 auto 22px auto;
    line-height: 1.6;
}

.blog-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 9px;
    background: linear-gradient(135deg, #00f0ff 0%, #10b981 100%);
    color: #030712 !important;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
    transition: all 0.25s ease;
}

.blog-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
}

.blog-cta-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9px;
    background: #25d366;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.blog-cta-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   6. Suggested Articles & Insights Section
   ========================================================================== */
.blog-suggested-section {
    margin-top: 55px;
    padding-top: 45px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.blog-suggested-header {
    text-align: center;
    margin-bottom: 34px;
}

.blog-suggested-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.blog-suggested-title {
    font-family: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.blog-suggested-subtitle {
    color: #94a3b8;
    font-size: 0.94rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-suggested-grid {
    margin-top: 28px;
}
