/* =============================================
   LAYOUT MODULE
   Blog two-column layout, content cards
   ============================================= */

.video-background {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#glass-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
}
/* --- Main Layout --- */
.blog-layout {
    display: flex;
    gap: 24px;
    max-width: 1280px;
    margin: 120px auto 80px;
    padding: 0 32px;
    opacity: 0;
    animation: contentFadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* --- Content Column --- */
.blog-content-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Blog Header Card --- */
.blog-header {
    /* glass-container handles appearance */
}

.blog-header__content {
    padding: 36px;
    flex-direction: column;
    align-items: flex-start;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.blog-meta__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.blog-meta__info {
    flex: 1;
}

.blog-meta__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.blog-meta__date {
    font-size: 13px;
    color: var(--text-tertiary);
}

.blog-header__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.blog-header__subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Featured Image (from blogs-general-styles.css) --- */
.blog-featured {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.blog-featured img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-featured:hover img {
    transform: scale(1.02);
}

/* --- Blog Body --- */
.blog-body {
    /* glass-container handles appearance */
}

.blog-body__content {
    padding: 36px;
    flex-direction: column;
    align-items: flex-start;
}

.blog-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.blog-body h2:first-child {
    margin-top: 0;
}

.blog-body h3 {
    font-size: 21px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 28px;
    margin-bottom: 12px;
}

.blog-body p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.blog-body ul,
.blog-body ol {
    margin: 18px 0;
    padding-left: 24px;
}

.blog-body li {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.blog-body strong {
    font-weight: 700;
    color: white;
    background-color:  var(--accent-blue-bright);
}

.blog-body a {
    color: var(--accent-blue);
    border-bottom: 1px solid rgba(180, 205, 255, 0.3);
    transition: all var(--transition-ease);
}

.blog-body a:hover {
    color: var(--accent-blue-bright);
    border-bottom-color: rgba(220, 226, 255, 0.6);
}

.blog-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-blue-bright);
}

.blog-body pre {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow-x: auto;
    margin: 22px 0;
}

.blog-body pre code {
    background: none;
    padding: 0;
}

.blog-body blockquote {
    border-left: 3px solid rgba(180, 205, 255, 0.4);
    padding-left: 20px;
    margin: 22px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Info Box (from blogs-general-styles.css) --- */
.info-box {
    background: rgba(180, 205, 255, 0.07);
    border: 1px solid rgba(180, 205, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 18px;
    margin: 22px 0;
}

.info-box__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue-bright);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box__content {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Tags (from blogs-general-styles.css) --- */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
    cursor: default;
}

.blog-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .blog-layout {
        flex-direction: column;
        margin-top: 100px;
        padding: 0 20px;
    }
}

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

    .blog-header__title {
        font-size: 32px;
    }

    .blog-body__content {
        padding: 24px;
    }

    .blog-body h2 {
        font-size: 24px;
    }

    .blog-featured img {
        height: 220px;
    }
}
