/* =========================================
   Zeevio — Blog Listing + Single Post
   ========================================= */

/* ── Shared container ───────────────────── */
.zeevio-blog-main,
.zeevio-single-main {
    min-height: 100vh;
    background: var(--zeevio-light, #f8fafc);
    font-family: 'Inter', sans-serif;
}

/* ── Blog Hero ──────────────────────────── */
.zeevio-bl-hero {
    background: var(--zeevio-dark, #0f172a);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zeevio-bl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,130,246,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.zeevio-bl-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.zeevio-bl-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.15;
}

.zeevio-bl-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.7;
}

.zeevio-bl-hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--zeevio-light, #f8fafc);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Blog body ──────────────────────────── */
.zeevio-bl-body {
    padding: 60px 20px 100px;
}

/* ── Post grid ──────────────────────────── */
.zeevio-bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ── Post card ──────────────────────────── */
.zeevio-bl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

.zeevio-bl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.zeevio-bl-card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    text-decoration: none;
}

.zeevio-bl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.zeevio-bl-card:hover .zeevio-bl-card-img {
    transform: scale(1.05);
}

.zeevio-bl-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zeevio-bl-card-img-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: rgba(255,255,255,0.2);
}

.zeevio-bl-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--zeevio-blue, #3b82f6), var(--zeevio-indigo, #6366f1));
    color: #fff;
}

.zeevio-bl-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.zeevio-bl-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--zeevio-gray, #64748b);
    font-weight: 500;
}

.zeevio-bl-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    color: var(--zeevio-dark2, #1e293b);
}

.zeevio-bl-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.zeevio-bl-card-title a:hover {
    color: var(--zeevio-blue, #3b82f6);
}

.zeevio-bl-card-excerpt {
    font-size: 14px;
    color: var(--zeevio-gray, #64748b);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.zeevio-bl-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zeevio-blue, #3b82f6);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s;
}

.zeevio-bl-card-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.zeevio-bl-card-link:hover svg {
    transform: translateX(3px);
}

/* ── Pagination ─────────────────────────── */
.zeevio-bl-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.zeevio-bl-pagination .page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.zeevio-bl-pagination .page-numbers li a,
.zeevio-bl-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--zeevio-dark2, #1e293b);
    background: #fff;
    transition: all 0.2s;
}

.zeevio-bl-pagination .page-numbers li span.current,
.zeevio-bl-pagination .page-numbers li a:hover {
    background: linear-gradient(135deg, var(--zeevio-blue, #3b82f6), var(--zeevio-indigo, #6366f1));
    color: #fff;
    border-color: transparent;
}

/* ── Empty state ────────────────────────── */
.zeevio-bl-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--zeevio-gray, #64748b);
}

.zeevio-bl-empty svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.zeevio-bl-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--zeevio-dark2, #1e293b);
    margin: 0 0 8px;
}

/* ── Single Post Hero ───────────────────── */
.zeevio-sp-hero {
    background: var(--zeevio-dark, #0f172a);
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.zeevio-sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.zeevio-sp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zeevio-sp-hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--zeevio-light, #f8fafc);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.zeevio-sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
}

.zeevio-sp-breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.zeevio-sp-breadcrumb a:hover {
    color: var(--zeevio-blue, #3b82f6);
}

.zeevio-sp-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zeevio-sp-cat {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--zeevio-blue, #3b82f6), var(--zeevio-indigo, #6366f1));
    color: #fff;
    text-decoration: none;
}

.zeevio-sp-date,
.zeevio-sp-read {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.zeevio-sp-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.zeevio-sp-excerpt {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.7;
    max-width: 640px;
}

.zeevio-sp-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.zeevio-sp-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.zeevio-sp-author-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.zeevio-sp-author-role {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* ── Featured image ─────────────────────── */
.zeevio-sp-featured-img {
    padding: 40px 20px 0;
    background: var(--zeevio-light, #f8fafc);
}

.zeevio-sp-thumb {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

/* ── Single body ────────────────────────── */
.zeevio-sp-body {
    padding: 50px 20px 100px;
    background: var(--zeevio-light, #f8fafc);
}

.zeevio-sp-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* ── Article content ────────────────────── */
.zeevio-sp-article {
    min-width: 0;
}

.zeevio-sp-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    line-height: 1.8;
    color: var(--zeevio-gray, #475569);
    font-size: 16px;
}

.zeevio-sp-content h1,
.zeevio-sp-content h2,
.zeevio-sp-content h3,
.zeevio-sp-content h4 {
    color: var(--zeevio-dark2, #1e293b);
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.zeevio-sp-content h2 { font-size: 24px; }
.zeevio-sp-content h3 { font-size: 20px; }
.zeevio-sp-content h4 { font-size: 17px; }

.zeevio-sp-content p  { margin: 0 0 1.2em; }
.zeevio-sp-content ul,
.zeevio-sp-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.zeevio-sp-content li { margin-bottom: 0.4em; }

.zeevio-sp-content a {
    color: var(--zeevio-blue, #3b82f6);
    text-decoration: underline;
}

.zeevio-sp-content blockquote {
    border-left: 4px solid var(--zeevio-blue, #3b82f6);
    margin: 1.5em 0;
    padding: 16px 20px;
    background: rgba(59,130,246,0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--zeevio-dark2, #1e293b);
}

.zeevio-sp-content code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: monospace;
}

.zeevio-sp-content pre {
    background: #1e293b;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.zeevio-sp-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.zeevio-sp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* ── Tags ───────────────────────────────── */
.zeevio-sp-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.zeevio-sp-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--zeevio-gray, #64748b);
}

.zeevio-sp-tag {
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 12px;
    font-weight: 500;
    color: var(--zeevio-dark2, #1e293b);
    text-decoration: none;
    background: #f8fafc;
    transition: all 0.2s;
}

.zeevio-sp-tag:hover {
    border-color: var(--zeevio-blue, #3b82f6);
    color: var(--zeevio-blue, #3b82f6);
    background: rgba(59,130,246,0.06);
}

/* ── Post nav ───────────────────────────── */
.zeevio-sp-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.zeevio-sp-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.zeevio-sp-nav-item:hover {
    border-color: var(--zeevio-blue, #3b82f6);
    box-shadow: 0 4px 16px rgba(59,130,246,0.1);
}

.zeevio-sp-nav-next { text-align: right; }

.zeevio-sp-nav-dir {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--zeevio-blue, #3b82f6);
}

.zeevio-sp-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--zeevio-dark2, #1e293b);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────── */
.zeevio-sp-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zeevio-sp-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.zeevio-sp-sidebar-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--zeevio-dark2, #1e293b);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.zeevio-sp-sidebar-author {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.zeevio-sp-sidebar-avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

.zeevio-sp-sidebar-author h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--zeevio-dark2, #1e293b);
    margin: 0 0 4px;
}

.zeevio-sp-sidebar-author p {
    font-size: 13px;
    color: var(--zeevio-gray, #64748b);
    margin: 0;
    line-height: 1.5;
}

.zeevio-sp-recent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zeevio-sp-recent li a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    align-items: flex-start;
    transition: opacity 0.2s;
}

.zeevio-sp-recent li a:hover { opacity: 0.75; }

.zeevio-sp-recent-img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.zeevio-sp-recent-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--zeevio-dark2, #1e293b);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zeevio-sp-recent-date {
    display: block;
    font-size: 11px;
    color: var(--zeevio-gray, #64748b);
    margin-top: 2px;
}

.zeevio-sp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--zeevio-dark2, #1e293b);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s;
    text-align: center;
}

.zeevio-sp-back-btn:hover {
    border-color: var(--zeevio-blue, #3b82f6);
    color: var(--zeevio-blue, #3b82f6);
}

/* ── Section badge (shared) ─────────────── */
.zeevio-blog-page .zeevio-section-badge,
.zeevio-single-post .zeevio-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.1);
    color: var(--zeevio-blue, #3b82f6);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .zeevio-sp-layout {
        grid-template-columns: 1fr;
    }
    .zeevio-sp-sidebar {
        position: static;
    }
    .zeevio-sp-content {
        padding: 24px;
    }
    .zeevio-sp-nav {
        grid-template-columns: 1fr;
    }
    .zeevio-bl-grid {
        grid-template-columns: 1fr;
    }
}
