/* Tipsly Blog — tech 2026 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --blog-gold: var(--accent, #d4a03a);
    --blog-purple: #8b5cf6;
    --blog-navy: var(--bg, #0a0e18);
    --blog-card: var(--bg-card, rgba(18, 22, 42, 0.88));
    --blog-border: var(--border, rgba(255, 255, 255, 0.08));
    --blog-text: var(--text, #e8eaf0);
    --blog-muted: var(--text2, #9aa3b8);
    --blog-faint: var(--text3, #6b7289);
    --blog-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --blog-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

/* ── Page shell ──
   With sidebars: fill the whole <main> column (no leftover gap before widgets).
   Without sidebars: comfortable centered reading column. */
.blog-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 20px 64px;
    box-sizing: border-box;
}
.blog-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 20px 72px;
    box-sizing: border-box;
}
.page-layout:not(:has(.widget-sidebar)) .blog-page {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.page-layout:not(:has(.widget-sidebar)) .blog-article {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
/* Sidebar present → stretch content to the widget edge */
.page-layout:has(.widget-sidebar) > main .blog-page,
.page-layout:has(.widget-sidebar) > main .blog-article {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.blog-hero {
    position: relative;
    margin-bottom: 36px;
    padding: 36px 28px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    background:
        radial-gradient(ellipse 80% 120% at 10% -20%, rgba(139, 92, 246, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 80% at 90% 0%, rgba(212, 160, 58, 0.12), transparent 50%),
        linear-gradient(160deg, #12162a 0%, #0a0e18 100%);
}
.blog-hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.08), transparent);
    animation: blogShimmer 8s linear infinite;
}
@keyframes blogShimmer {
    0% { transform: translateX(-30%); opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { transform: translateX(30%); opacity: 0.4; }
}
.blog-hero__eyebrow {
    font-family: var(--blog-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blog-gold);
    margin: 0 0 10px;
    position: relative;
}
.blog-hero__title {
    font-family: var(--blog-sans);
    font-size: clamp(1.4rem, 3vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blog-text);
    margin: 0 0 10px;
    position: relative;
}
.blog-hero__sub {
    font-size: 13.5px;
    color: var(--blog-muted);
    max-width: 560px;
    margin: 0;
    position: relative;
    line-height: 1.5;
}
.blog-lang-note {
    margin: 14px 0 0;
    font-family: var(--blog-mono);
    font-size: 11px;
    color: var(--blog-faint);
    position: relative;
}

.blog-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--blog-muted);
    border: 1px dashed var(--blog-border);
    border-radius: 14px;
}

/* ── Grid cards ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
    position: relative;
    border-radius: 16px;
    background: var(--blog-card);
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.blog-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(212, 160, 58, 0.05), rgba(139, 92, 246, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.25s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.blog-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(212, 160, 58, 0.55), rgba(139, 92, 246, 0.8));
}
.blog-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.blog-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f36, #0c1020);
}
.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__media-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--blog-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(212, 160, 58, 0.55);
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.25), transparent 50%),
        linear-gradient(160deg, #151a2e, #0a0e18);
}
.blog-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--blog-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(10, 14, 24, 0.75);
    border: 1px solid rgba(212, 160, 58, 0.35);
    color: var(--blog-gold);
    backdrop-filter: blur(8px);
}
.blog-card__body { padding: 16px 16px 18px; }
.blog-card__meta {
    font-family: var(--blog-mono);
    font-size: 11px;
    color: var(--blog-faint);
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.blog-card__title {
    font-family: var(--blog-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.3;
    color: var(--blog-text);
}
.blog-card__excerpt {
    font-size: 12px;
    color: var(--blog-muted);
    margin: 0 0 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__cta {
    font-family: var(--blog-mono);
    font-size: 11px;
    color: var(--blog-gold);
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.25s ease;
}
.blog-card:hover .blog-card__cta { background-size: 100% 1px; }

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}
.blog-page-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--blog-border);
    color: var(--blog-text);
    text-decoration: none;
    background: var(--blog-card);
    transition: border-color 0.2s, transform 0.2s;
}
.blog-page-btn:hover {
    border-color: var(--blog-purple);
    transform: translateY(-1px);
}
.blog-page-status {
    font-family: var(--blog-mono);
    font-size: 12px;
    color: var(--blog-faint);
}

/* ── Article ── */
.blog-breadcrumb {
    font-family: var(--blog-mono);
    font-size: 11px;
    color: var(--blog-faint);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.blog-breadcrumb a {
    color: var(--blog-muted);
    text-decoration: none;
}
.blog-breadcrumb a:hover { color: var(--blog-gold); }
.blog-breadcrumb .is-current { color: var(--blog-text); }

.blog-article__header { margin-bottom: 22px; }
.blog-article__cat {
    display: inline-block;
    font-family: var(--blog-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blog-purple);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.blog-article__title {
    font-family: var(--blog-sans);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--blog-text);
}
.blog-article__meta {
    font-family: var(--blog-mono);
    font-size: 12px;
    color: var(--blog-faint);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-article__cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--blog-border);
    aspect-ratio: 21 / 9;
}
.blog-article__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-article__content {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--blog-text);
}
.blog-article__content > *:first-child { margin-top: 0; }
.blog-article__content h1,
.blog-article__content h2,
.blog-article__content h3 {
    font-family: var(--blog-sans);
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 1.6em 0 0.6em;
    line-height: 1.25;
}
.blog-article__content h2 { font-size: 1.22rem; }
.blog-article__content h3 { font-size: 1.08rem; color: #c7cce0; }
.blog-article__content p { margin: 0 0 1.1em; color: #c8cde0; }
.blog-article__content a {
    color: var(--blog-gold);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.2s;
}
.blog-article__content a:hover { background-size: 100% 1px; }
.blog-article__content ul,
.blog-article__content ol { margin: 0 0 1.2em; padding-left: 1.3em; color: #c8cde0; }
.blog-article__content li { margin: 0.35em 0; }
.blog-article__content blockquote {
    margin: 1.4em 0;
    padding: 12px 16px;
    border-left: 3px solid var(--blog-purple);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 0 10px 10px 0;
    color: var(--blog-muted);
}
.blog-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 14px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--blog-border);
}
.blog-article__content th,
.blog-article__content td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--blog-border);
    text-align: left;
}
.blog-article__content th {
    font-family: var(--blog-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.1);
    color: var(--blog-gold);
}
.blog-article__content pre,
.blog-article__content .blog-code {
    margin: 1.3em 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #0c1020 !important;
    border: 1px solid rgba(139, 92, 246, 0.25);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
}
.blog-article__content code {
    font-family: var(--blog-mono);
    font-size: 0.9em;
}
.blog-article__content :not(pre) > code {
    background: rgba(139, 92, 246, 0.12);
    padding: 2px 6px;
    border-radius: 5px;
    color: #e9d5ff;
}
.blog-article__content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 58, 0.4), transparent);
    margin: 2em 0;
}
.blog-article__content strong { color: #fff; font-weight: 700; }

.blog-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 20px;
}
.blog-tag {
    font-family: var(--blog-mono);
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--blog-border);
    color: var(--blog-muted);
}

.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--blog-border);
    border-bottom: 1px solid var(--blog-border);
    margin-bottom: 32px;
}
.blog-share__label {
    font-family: var(--blog-mono);
    font-size: 11px;
    color: var(--blog-faint);
    margin-right: 6px;
}
.blog-share__btn {
    font-family: var(--blog-mono);
    font-size: 11px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--blog-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--blog-text);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}
.blog-share__btn:hover {
    border-color: var(--blog-purple);
    transform: translateY(-1px);
}

.blog-related__title {
    font-family: var(--blog-sans);
    font-size: 1.05rem;
    font-weight: 750;
    margin: 0 0 14px;
}
.blog-related__grid {
    display: grid;
    gap: 10px;
}
.blog-related__card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--blog-border);
    background: var(--blog-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}
.blog-related__card:hover {
    transform: translateX(3px);
    border-color: rgba(139, 92, 246, 0.45);
}
.blog-related__thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #151a2e;
}
.blog-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-related__name {
    display: block;
    font-family: var(--blog-sans);
    font-weight: 700;
    font-size: 13px;
    color: var(--blog-text);
    line-height: 1.3;
}
.blog-related__date {
    font-family: var(--blog-mono);
    font-size: 11px;
    color: var(--blog-faint);
}

/* ── Widget: inline ── */
.blog-widget {
    margin-top: 24px;
    margin-bottom: 8px;
}
.blog-widget__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.blog-widget__eyebrow {
    font-family: var(--blog-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blog-gold);
    display: block;
}
.blog-widget__heading {
    font-family: var(--blog-sans);
    font-size: 1.02rem;
    font-weight: 750;
    margin: 4px 0 0;
    letter-spacing: -0.02em;
    color: var(--blog-text);
}
.blog-widget__all {
    font-family: var(--blog-mono);
    font-size: 11px;
    color: var(--blog-muted);
    text-decoration: none;
    white-space: nowrap;
}
.blog-widget__all:hover { color: var(--blog-gold); }

.blog-widget--inline .blog-widget__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 800px) {
    .blog-widget--inline .blog-widget__grid { grid-template-columns: 1fr; }
}
.blog-widget__card {
    border-radius: 14px;
    border: 1px solid var(--blog-border);
    background: linear-gradient(160deg, rgba(18, 22, 42, 0.95), rgba(10, 14, 24, 0.9));
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
}
.blog-widget__card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.blog-widget__card-link {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
}
.blog-widget__cover {
    width: 88px;
    min-height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #151a2e;
}
.blog-widget__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-widget__cover.is-empty,
.blog-widget__cover-fallback {
    background:
        radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.35), transparent 55%),
        linear-gradient(160deg, #1a1f36, #0a0e18);
}
.blog-widget__cover-fallback { display: block; width: 100%; height: 100%; min-height: 64px; }
.blog-widget__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.blog-widget__cat {
    font-family: var(--blog-mono);
    font-size: 10px;
    color: var(--blog-purple);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.blog-widget__title {
    font-family: var(--blog-sans);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blog-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-widget__excerpt {
    font-size: 12px;
    color: var(--blog-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-widget__more {
    font-family: var(--blog-mono);
    font-size: 10px;
    color: var(--blog-gold);
    margin-top: auto;
}

/* ── Widget: sidebar ── */
.blog-widget--sidebar,
.widget-card .blog-widget--sidebar {
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--blog-border);
    background: var(--blog-card);
    padding: 12px;
}
.blog-widget--sidebar.is-embedded {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.blog-widget--sidebar .blog-widget__head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--blog-border);
}
.blog-widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.blog-widget__item { margin: 0; }
.blog-widget__link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.blog-widget__link:hover { background: rgba(139, 92, 246, 0.08); }
.blog-widget__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #151a2e;
    display: grid;
    place-items: center;
}
.blog-widget__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-widget__thumb-fallback {
    font-size: 12px;
    color: rgba(212, 160, 58, 0.6);
}
.blog-widget__meta { min-width: 0; }
.blog-widget--sidebar .blog-widget__title {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
}
.blog-widget__date {
    font-family: var(--blog-mono);
    font-size: 10px;
    color: var(--blog-faint);
    display: block;
    margin-top: 3px;
}

/* ── Mobile: ~20% smaller + prevent horizontal overflow ── */
@media (max-width: 640px) {
    .blog-page {
        padding: 16px 12px 48px;
        max-width: 100%;
        overflow-x: hidden;
    }
    .blog-article {
        padding: 14px 10px 48px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .blog-hero { padding: 22px 16px; margin-bottom: 22px; }
    .blog-hero__title { font-size: clamp(1.15rem, 5vw, 1.55rem); }
    .blog-hero__sub { font-size: 12px; }
    .blog-article__title { font-size: clamp(1.1rem, 5vw, 1.45rem); }
    .blog-article__meta { font-size: 10px; }
    .blog-article__content {
        font-size: 11.5px; /* ~20% under 14.5px */
        line-height: 1.65;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .blog-article__content h2 { font-size: 1.02rem; }
    .blog-article__content h3 { font-size: 0.95rem; }
    .blog-article__content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 11px;
    }
    .blog-article__content th,
    .blog-article__content td {
        padding: 7px 8px;
        white-space: nowrap;
    }
    .blog-article__content pre,
    .blog-article__content .blog-code {
        font-size: 11px;
        padding: 10px 12px;
        max-width: 100%;
        overflow-x: auto;
    }
    .blog-article__content img {
        max-width: 100%;
        height: auto;
    }
    .blog-breadcrumb { font-size: 10px; margin-bottom: 14px; }
    .blog-card__title { font-size: 0.88rem; }
    .blog-card__excerpt { font-size: 11px; }
    .blog-related__name { font-size: 12px; }
    .blog-share__btn { font-size: 10px; padding: 6px 9px; }
    .blog-widget__title { font-size: 11.5px; }
    .blog-widget__heading { font-size: 0.92rem; }
}

/* ═══ Light theme — full support ═══ */
[data-theme="light"] {
    --blog-gold: #b8860b;
    --blog-purple: #7c3aed;
    --blog-navy: #f4f7ff;
    --blog-card: rgba(255, 255, 255, 0.92);
    --blog-border: rgba(12, 20, 39, 0.1);
    --blog-text: #0c1427;
    --blog-muted: #475569;
    --blog-faint: #64748b;
}
[data-theme="light"] .blog-hero {
    background:
        radial-gradient(ellipse 80% 120% at 10% -20%, rgba(124, 58, 237, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 80% at 90% 0%, rgba(184, 134, 11, 0.1), transparent 50%),
        linear-gradient(160deg, #f8f7ff 0%, #ffffff 100%);
    border-color: rgba(12, 20, 39, 0.08);
    box-shadow: 0 4px 24px rgba(12, 20, 39, 0.06);
}
[data-theme="light"] .blog-hero__glow {
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.06), transparent);
}
[data-theme="light"] .blog-empty {
    border-color: rgba(12, 20, 39, 0.12);
    background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .blog-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(12, 20, 39, 0.04), 0 6px 20px rgba(12, 20, 39, 0.05);
}
[data-theme="light"] .blog-card::before {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(184, 134, 11, 0.12), rgba(124, 58, 237, 0.25));
}
[data-theme="light"] .blog-card:hover {
    box-shadow: 0 12px 32px rgba(12, 20, 39, 0.1);
}
[data-theme="light"] .blog-card:hover::before {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(184, 134, 11, 0.45), rgba(124, 58, 237, 0.6));
}
[data-theme="light"] .blog-card__media {
    background: linear-gradient(135deg, #eef0f8, #f8f9fc);
}
[data-theme="light"] .blog-card__media-fallback {
    color: rgba(184, 134, 11, 0.55);
    background:
        radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.12), transparent 50%),
        linear-gradient(160deg, #eef0f8, #f8f9fc);
}
[data-theme="light"] .blog-card__badge {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(184, 134, 11, 0.35);
    color: #9a7209;
}
[data-theme="light"] .blog-page-btn {
    background: #fff;
    border-color: rgba(12, 20, 39, 0.1);
    color: #0c1427;
}
[data-theme="light"] .blog-article__cat {
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.06);
}
[data-theme="light"] .blog-article__cover {
    border-color: rgba(12, 20, 39, 0.08);
    box-shadow: 0 4px 20px rgba(12, 20, 39, 0.08);
}
[data-theme="light"] .blog-article__content p,
[data-theme="light"] .blog-article__content li,
[data-theme="light"] .blog-article__content ul,
[data-theme="light"] .blog-article__content ol {
    color: #334155;
}
[data-theme="light"] .blog-article__content h3 { color: #1e293b; }
[data-theme="light"] .blog-article__content strong { color: #0c1427; }
[data-theme="light"] .blog-article__content a { color: #9a7209; }
[data-theme="light"] .blog-article__content blockquote {
    background: rgba(124, 58, 237, 0.06);
    border-left-color: #7c3aed;
    color: #475569;
}
[data-theme="light"] .blog-article__content table {
    border-color: rgba(12, 20, 39, 0.1);
    background: #fff;
}
[data-theme="light"] .blog-article__content th {
    background: rgba(124, 58, 237, 0.08);
    color: #9a7209;
}
[data-theme="light"] .blog-article__content th,
[data-theme="light"] .blog-article__content td {
    border-bottom-color: rgba(12, 20, 39, 0.08);
}
[data-theme="light"] .blog-article__content pre,
[data-theme="light"] .blog-article__content .blog-code {
    background: #f1f5f9 !important;
    border-color: rgba(124, 58, 237, 0.2);
    color: #1e293b;
}
[data-theme="light"] .blog-article__content :not(pre) > code {
    background: rgba(124, 58, 237, 0.1);
    color: #5b21b6;
}
[data-theme="light"] .blog-tag {
    border-color: rgba(12, 20, 39, 0.1);
    background: #fff;
    color: #475569;
}
[data-theme="light"] .blog-share {
    border-color: rgba(12, 20, 39, 0.1);
}
[data-theme="light"] .blog-share__btn {
    background: #fff;
    border-color: rgba(12, 20, 39, 0.12);
    color: #0c1427;
}
[data-theme="light"] .blog-related__card {
    background: #fff;
    border-color: rgba(12, 20, 39, 0.1);
    box-shadow: 0 1px 4px rgba(12, 20, 39, 0.04);
}
[data-theme="light"] .blog-related__thumb { background: #eef0f8; }
[data-theme="light"] .blog-widget__card {
    background: linear-gradient(160deg, #ffffff, #f8f9fc);
    border-color: rgba(12, 20, 39, 0.1);
    box-shadow: 0 1px 4px rgba(12, 20, 39, 0.04);
}
[data-theme="light"] .blog-widget__card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 8px 24px rgba(12, 20, 39, 0.08);
}
[data-theme="light"] .blog-widget__cover {
    background: #eef0f8;
}
[data-theme="light"] .blog-widget__cover.is-empty,
[data-theme="light"] .blog-widget__cover-fallback {
    background:
        radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.15), transparent 55%),
        linear-gradient(160deg, #eef0f8, #f8f9fc);
}
[data-theme="light"] .blog-widget--sidebar {
    background: transparent;
}
[data-theme="light"] .blog-widget--sidebar .blog-widget__list {
    background: #fff;
    border-color: rgba(12, 20, 39, 0.1);
}
[data-theme="light"] .blog-widget__thumb-empty {
    color: rgba(184, 134, 11, 0.55);
}
