/* Page-specific styles for blog.css */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&display=swap');

.body-outer {
    justify-content: center;
    flex: 1;
}

.body-container {
    border-bottom: 1px solid var(--color-border);
}

.blog-section {
    padding: 0 var(--spacing-base) 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-header {
    padding: 12px 0;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.3s ease;
}

.blog-title {
    font-size: 25px;
    font-weight: semi-bold;
    color: var(--color-background);
}

.blog-header-meta {
    display: flex;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-background);
}

.blog-content {
    font-size: 16px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-section-image {
    width: 100%;
    padding: 0 10px;
}

.blog-section-image p {
    font-size: 14px;
    color: var(--color-secondary-text);
    text-align: center;
    margin-top: 8px;
}

.blog-section-image img {
    display: block;
    width: 100%;
    height: auto;
}


h1.blog-heading-1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}


h2.blog-heading-2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}


h3.blog-heading-3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.blog-quote {
    border-left: 3px solid var(--color-secondary-text);
    padding-left: 15px;
    color: var(--color-secondary-text);
    height: auto;
}

.blog-link {
    color: var(--color-link);
    text-decoration: underline;
}

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

.blog-section-code {
    padding: 15px 18px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    background: var(--color-code-bg);
    border-radius: 10px;
    justify-content: space-between;
    align-items: flex-start;
    transition: background 0.3s ease;
}

.blog-section-code-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-primary);
    flex: 1;
    overflow-x: auto;
    white-space: pre;
}

.blog-section-code-icon {
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

/* Active state for click/tap feedback */
.blog-section-code-icon:active {
    transform: scale(0.85);
    opacity: 0.6;
}

/* Desktop: show icon only on hover */
@media (min-width: 768px) {
    .blog-section-code-icon {
        opacity: 0;
    }

    .blog-section-code:hover .blog-section-code-icon {
        opacity: 1;
    }
}

/* Mobile: always show icon */
@media (max-width: 767px) {
    .blog-section-code-icon {
        opacity: 1;
    }
}
