/* ═══════════════════════════════════════════════
   Blog Styles — Wellow Blog
   Bootstrap base + plain CSS customization
   Prose/alert/permalink styles live in landing.css
   ═══════════════════════════════════════════════ */

/* ─── Blog Body ─── */
.blog-body {
    background-color: #FFFCF7;
}

/* ─── Hero Section ─── */
.blog-hero {
    background: linear-gradient(135deg, #FFFCF7 0%, #f3f0ff 50%, #FFFCF7 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 64px;
}

.blog-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.blog-hero-shape-1 {
    width: 64px;
    height: 64px;
    background: rgba(116, 214, 226, 0.2);
    left: 32px;
    top: 48px;
}
.blog-hero-shape-2 {
    width: 40px;
    height: 40px;
    background: rgba(255, 122, 0, 0.15);
    right: 64px;
    top: 96px;
    animation-delay: -2s;
}
.blog-hero-shape-3 {
    width: 32px;
    height: 32px;
    background: rgba(154, 156, 234, 0.15);
    bottom: 48px;
    left: 25%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.float-decoration {
    animation: float 6s ease-in-out infinite;
}

.blog-badge {
    display: inline-block;
    margin-bottom: 16px;
    border-radius: 9999px;
    background: rgba(154, 156, 234, 0.1);
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #9A9CEA;
}

.blog-hero-title {
    max-width: 768px;
    margin: 0 auto;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #111827;
}
.blog-hero-title .text-orange {
    color: #ff7a00;
    position: relative;
    display: inline-block;
}

.blog-hero-subtitle {
    max-width: 576px;
    margin: 20px auto 0;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: #6b7280;
}

/* ─── Search Bar ─── */
.blog-search {
    max-width: 512px;
    margin: 40px auto 0;
}
.blog-search-inner {
    display: flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-inner:focus-within {
    border-color: rgba(154, 156, 234, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}
.blog-search-icon {
    width: 20px;
    height: 20px;
    margin-left: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}
.blog-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}
.blog-search-input::placeholder {
    color: #9ca3af;
}
.blog-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #9A9CEA;
    color: #fff;
    border: none;
    flex-shrink: 0;
    transition: background 0.2s;
    cursor: pointer;
}
.blog-search-btn:hover {
    background: #8486d8;
}

/* ─── Category Pills ─── */
.blog-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.blog-pill {
    display: inline-block;
    border-radius: 9999px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-pill:hover {
    box-shadow: 0 0 0 3px rgba(154, 156, 234, 0.15);
}
.blog-pill-active {
    background: #9A9CEA;
    color: #fff;
}
.blog-pill-active:hover {
    color: #fff;
}
.blog-pill-inactive {
    background: #fff;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.blog-pill-inactive:hover {
    background: #9A9CEA;
    color: #fff;
}

/* ─── Featured Post ─── */
.blog-featured {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
    text-decoration: none;
    transition: all 0.5s;
}
.blog-featured:hover {
    box-shadow: 0 12px 32px rgba(154, 156, 234, 0.18);
}
.blog-featured-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s, opacity 0.5s;
}
.blog-featured:hover .blog-featured-img {
    transform: scale(1.05);
    opacity: 0.7;
}
.blog-featured-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, rgba(154, 156, 234, 0.3), rgba(116, 214, 226, 0.2));
}
.blog-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}
.blog-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}
.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.blog-featured-badge {
    display: inline-block;
    border-radius: 9999px;
    background: #ff7a00;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}
.blog-featured-readtime {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.blog-featured-title {
    max-width: 672px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}
.blog-featured-excerpt {
    max-width: 576px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}
.blog-featured-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}
.blog-featured-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-featured-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #9A9CEA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.blog-featured-author-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}
.blog-featured-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Post Card ─── */
.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(154, 156, 234, 0.18);
    color: inherit;
    text-decoration: none;
}
.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFCF7;
}
.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.blog-card-category {
    display: inline-block;
    border-radius: 9999px;
    background: rgba(154, 156, 234, 0.1);
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #9A9CEA;
}
.blog-card-readtime {
    font-size: 12px;
    color: #9ca3af;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.blog-card:hover .blog-card-title {
    color: #9A9CEA;
}
.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-date {
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: #9ca3af;
}

/* ─── Section Headers ─── */
.blog-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.blog-section-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

/* ─── Empty State ─── */
.blog-empty {
    padding: 80px 0;
    text-align: center;
}
.blog-empty p {
    font-size: 18px;
    color: #9ca3af;
}

/* ─── Show Page — Breadcrumb ─── */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 32px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #9ca3af;
}
.blog-breadcrumb a {
    color: #9A9CEA;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-breadcrumb a:hover {
    text-decoration: underline;
}
.blog-breadcrumb-separator {
    width: 14px;
    height: 14px;
}
.blog-breadcrumb-current {
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Show Page — Post Header ─── */
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.blog-post-category {
    display: inline-block;
    border-radius: 9999px;
    background: rgba(154, 156, 234, 0.1);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #9A9CEA;
}
.blog-post-date,
.blog-post-readtime,
.blog-post-dot {
    font-size: 14px;
    color: #9ca3af;
}
.blog-post-title {
    max-width: 896px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0;
}
.blog-post-excerpt {
    max-width: 768px;
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.7;
    color: #6b7280;
}
.blog-post-divider {
    margin-top: 32px;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* ─── Show Page — Featured Image ─── */
.blog-post-image {
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 16px;
}
.blog-post-image img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}
.blog-post-image-placeholder {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(154, 156, 234, 0.1), rgba(116, 214, 226, 0.1), #FFFCF7);
    aspect-ratio: 16/9;
}
.blog-post-image-placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(154, 156, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-post-image-placeholder-icon svg {
    width: 32px;
    height: 32px;
    color: rgba(154, 156, 234, 0.4);
}

/* ─── Tags ─── */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}
.blog-tag {
    display: inline-block;
    border-radius: 9999px;
    background: #f3f4f6;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: background 0.2s;
}
.blog-tag:hover {
    background: #e5e7eb;
    color: #6b7280;
    text-decoration: none;
}

/* ─── Share Box ─── */
.blog-share {
    margin-top: 40px;
    border-radius: 16px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.blog-share-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.blog-share-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.blog-share-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}
.blog-share-buttons {
    display: flex;
    gap: 8px;
}
.blog-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.blog-share-btn svg {
    width: 16px;
    height: 16px;
}
.blog-share-btn-linkedin:hover { background: #0A66C2; color: #fff; }
.blog-share-btn-twitter:hover { background: #111827; color: #fff; }
.blog-share-btn-facebook:hover { background: #2563eb; color: #fff; }
.blog-share-btn-copy:hover { background: #9A9CEA; color: #fff; }

/* ─── Sidebar ─── */
.blog-sidebar {
    position: sticky;
    top: 80px;
}
.blog-sidebar-widget {
    border-radius: 16px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}
.blog-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* TOC */
.blog-toc-nav a {
    display: block;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}
.blog-toc-nav a:hover {
    color: #9A9CEA;
}
.blog-toc-nav a + a {
    margin-top: 8px;
}
.toc-link.active {
    color: #9A9CEA !important;
    font-weight: 600;
}

/* Language Switch */
.blog-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #9A9CEA;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-lang-link:hover {
    text-decoration: underline;
    color: #9A9CEA;
}
.blog-lang-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(154, 156, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Newsletter Sidebar CTA */
.blog-sidebar-newsletter {
    border-radius: 16px;
    background: #464898;
    padding: 24px;
    color: #fff;
    margin-bottom: 24px;
}
.blog-sidebar-newsletter .handwriting {
    font-family: "Mr Dafoe", cursive;
    font-size: 20px;
    color: #74d6e2;
}
.blog-sidebar-newsletter h3 {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
}
.blog-sidebar-newsletter p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}
.blog-sidebar-newsletter-form {
    display: flex;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    margin-top: 16px;
}
.blog-sidebar-newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    outline: none;
}
.blog-sidebar-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.blog-sidebar-newsletter-form button {
    border: none;
    border-radius: 9999px;
    background: #9A9CEA;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.blog-sidebar-newsletter-form button:hover {
    background: #8486d8;
}

/* Recent Posts */
.blog-recent-post {
    display: block;
    text-decoration: none;
    color: inherit;
}
.blog-recent-post + .blog-recent-post {
    margin-top: 16px;
}
.blog-recent-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    transition: color 0.2s;
}
.blog-recent-post:hover .blog-recent-post-title {
    color: #9A9CEA;
}
.blog-recent-post-date {
    margin-top: 2px;
    font-size: 12px;
    color: #9ca3af;
}

/* Categories List */
.blog-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-category-item:hover {
    color: #9A9CEA;
    text-decoration: none;
}
.blog-category-item + .blog-category-item {
    margin-top: 8px;
}
.blog-category-count {
    border-radius: 9999px;
    background: #f3f4f6;
    padding: 2px 10px;
    font-size: 12px;
    color: #9ca3af;
}

/* ─── Newsletter CTA (Full Width) ─── */
.blog-newsletter {
    background: #464898;
    padding: 80px 0;
}
.blog-newsletter-inner {
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
}
.blog-newsletter .handwriting {
    font-family: "Mr Dafoe", cursive;
    font-size: 30px;
    color: #74d6e2;
}
.blog-newsletter h2 {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}
.blog-newsletter-desc {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}
.blog-newsletter-form {
    max-width: 448px;
    margin: 32px auto 0;
    display: flex;
    align-items: center;
    border-radius: 9999px;
    background: #fff;
    padding: 6px;
}
.blog-newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
}
.blog-newsletter-form input::placeholder {
    color: #9ca3af;
}
.blog-newsletter-form button {
    border: none;
    border-radius: 9999px;
    background: #9A9CEA;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.blog-newsletter-form button:hover {
    background: #8486d8;
}
.blog-newsletter-note {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Reading Progress Bar ─── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #9A9CEA;
    z-index: 100;
    transition: width 0.1s;
}

/* ─── Responsive ─── */
@media (min-width: 576px) {
    .blog-hero-title {
        font-size: 60px;
    }
    .blog-featured-title {
        font-size: 30px;
    }
    .blog-featured-excerpt {
        font-size: 16px;
    }
    .blog-featured-content {
        padding: 48px;
    }
    .blog-post-title {
        font-size: 48px;
    }
    .blog-share-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .blog-newsletter h2 {
        font-size: 36px;
    }
}

@media (min-width: 992px) {
    .blog-featured-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 48px 0 40px;
    }
    .blog-hero-title {
        font-size: 36px;
    }
    .blog-hero-subtitle {
        font-size: 16px;
    }
    .blog-featured-img,
    .blog-featured-placeholder {
        height: 280px;
    }
}
