/* Blog article page — dedicated stylesheet (loaded from show.blade.php) */

.blog-article-page {
    --blog-accent: #6366f1;
    --blog-accent-dark: #4f46e5;
    --blog-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --blog-ink: #111827;
    --blog-muted: #6b7280;
    --blog-surface: #ffffff;
    --blog-soft: #f4f6fb;
    --blog-border: rgba(15, 23, 42, 0.08);
    --blog-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --blog-radius: 1.25rem;
    background: var(--blog-soft);
}

/* Hero */
.blog-article-hero {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 0 4.5rem;
    background: var(--blog-gradient);
    color: #fff;
}

.blog-article-hero::before,
.blog-article-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.blog-article-hero::before {
    width: 280px;
    height: 280px;
    background: #a5b4fc;
    top: -80px;
    right: -40px;
}

.blog-article-hero::after {
    width: 220px;
    height: 220px;
    background: #c4b5fd;
    bottom: -60px;
    left: -30px;
}

.blog-article-hero .container {
    position: relative;
    z-index: 1;
}

.blog-article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6) !important;
}

.blog-article-breadcrumb .breadcrumb-item a {
    color: #fff !important;
    text-decoration: none;
}

.blog-article-breadcrumb .breadcrumb-item a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.blog-article-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.75) !important;
}

.blog-article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.blog-article-kicker:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.blog-article-title {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}

.blog-article-lead {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.blog-article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-article-author-name {
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.blog-article-author-role {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.blog-article-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
}

.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.blog-article-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
}

.blog-article-tag:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

/* Featured image */
.blog-article-featured-wrap {
    margin-top: -3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.blog-article-featured {
    margin: 0;
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    background: #000;
}

.blog-article-featured img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* Layout */
.blog-article-main {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.blog-article-featured-wrap + .container.blog-article-main,
.blog-article-featured-wrap ~ .blog-article-main {
    padding-top: 0.75rem;
}

.blog-article-grid {
    align-items: start;
}

.blog-article-content-card {
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.blog-article-content {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #374151;
    word-wrap: break-word;
}

.blog-article-content > :first-child {
    margin-top: 0;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-weight: 800;
    color: var(--blog-ink);
    line-height: 1.3;
}

.blog-article-content p {
    margin-bottom: 1.25rem;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.85rem;
    margin: 1.5rem 0;
}

.blog-article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--blog-accent);
    border-radius: 0 0.75rem 0.75rem 0;
    background: var(--blog-soft);
    color: #4b5563;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.35rem;
}

.blog-article-content a {
    color: var(--blog-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article-content a:hover {
    color: var(--blog-accent);
}

/* Sidebar */
.blog-article-sidebar {
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-article-panel {
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 1.25rem;
}

.blog-article-panel-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--blog-ink);
}

.blog-article-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.blog-article-share-grid:has(.blog-article-share-native:not(.d-none)) {
    grid-template-columns: repeat(2, 1fr);
}

.blog-article-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 72px;
    border-radius: 0.85rem;
    border: 1px solid var(--blog-border);
    background: var(--blog-soft);
    color: var(--blog-ink);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-article-share-btn i {
    font-size: 1.1rem;
}

.blog-article-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    color: var(--blog-accent-dark);
    background: #fff;
}

button.blog-article-share-btn {
    cursor: pointer;
}

.blog-article-author-panel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.blog-article-author-panel-name {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blog-ink);
}

.blog-article-author-panel-bio {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--blog-muted);
}

.blog-article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    color: var(--blog-accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.blog-article-back-link:hover {
    color: var(--blog-accent);
}

/* Avatars */
.blog-author-avatar {
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.blog-author-avatar--md {
    width: 52px;
    height: 52px;
}

.blog-author-avatar--lg {
    width: 72px;
    height: 72px;
    border-color: #fff;
}

.blog-article-panel .blog-author-avatar {
    border-color: #eef2ff;
    box-shadow: none;
}

/* Related */
.blog-article-related {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid var(--blog-border);
}

.blog-article-related-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-article-related-head h2 {
    margin: 0 0 0.5rem;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--blog-ink);
}

.blog-article-related-head p {
    margin: 0;
    color: var(--blog-muted);
}

.blog-article-related-card {
    height: 100%;
    background: var(--blog-soft);
    border: 1px solid var(--blog-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-article-related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--blog-shadow);
}

.blog-article-related-media {
    display: block;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.blog-article-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-article-related-card:hover .blog-article-related-media img {
    transform: scale(1.04);
}

.blog-article-related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 2rem;
    text-decoration: none;
}

.blog-article-related-body {
    padding: 1.2rem 1.25rem 1.35rem;
}

.blog-article-related-category {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--blog-accent);
}

.blog-article-related-title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
}

.blog-article-related-title a {
    color: var(--blog-ink);
    text-decoration: none;
}

.blog-article-related-title a:hover {
    color: var(--blog-accent);
}

.blog-article-related-excerpt {
    margin: 0 0 1rem;
    color: var(--blog-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.blog-article-related-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: #9ca3af;
}

.blog-article-read-more {
    color: var(--blog-accent-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.blog-article-read-more:hover {
    color: var(--blog-accent);
}

@media (max-width: 991.98px) {
    .blog-article-hero {
        padding-bottom: 3.5rem;
    }

    .blog-article-featured-wrap {
        margin-top: -2rem;
    }

    .blog-article-sidebar {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .blog-article-share-grid {
        grid-template-columns: 1fr;
    }

    .blog-article-share-btn {
        flex-direction: row;
        min-height: auto;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }
}
