/* ==========================================================================
   1. PAGE SPECIFIC LAYOUT: SINGLE BLOG POST READING VIEW
   ========================================================================== */
.post-master-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex-grow: 1;
}

.blog-post-article {
    max-width: 760px; /* Precise layout line width for effortless parsing */
    margin: 0 auto 5rem auto;
}

.post-header-area { margin-bottom: 2rem; }
.post-publish-date { font-size: 0.8rem; color: var(--text-date); font-weight: 500; letter-spacing: 0.5px; display: block; margin-bottom: 0.75rem; }
.post-main-title { font-size: 2.4rem; font-weight: 500; line-height: 1.25; color: var(--text-primary); margin-bottom: 1.5rem; letter-spacing: -0.5px; }

/* Author Profile Info Line Alignment */
.post-metadata-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    gap: 1.5rem;
}

.authors-list { display: flex; gap: 1.5rem; }
.author-item { display: flex; flex-direction: column; }
.author-name { font-size: 0.9rem; color: var(--google-link-blue); text-decoration: none; font-weight: 500; }
.author-name:hover { text-decoration: underline; }
.author-role { font-size: 0.75rem; color: var(--text-date); margin-top: 0.15rem; }

.btn-share-article {
    background: transparent;
    border: none;
    color: var(--google-link-blue);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Hero Visual Box Terminal Mockup Display Frame */
.post-hero-visual-frame {
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.terminal-mockup-header {
    background-color: #1e1f20;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.term-dot.red { background-color: #ff5f56; }
.term-dot.yellow { background-color: #ffbd2e; }
.term-dot.green { background-color: #27c93f; }
.term-title { font-family: 'Roboto Mono', monospace; font-size: 0.75rem; color: #9aa0a6; margin-left: 0.5rem; }

.terminal-mockup-body {
    padding: 1.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #e8eaed;
    line-height: 1.6;
}
.term-line { margin-bottom: 0.4rem; }
.output-accent { color: var(--google-link-blue); }
.output-success { color: #81c995; }

/* Article Body Content Rich Typography */
.post-body-content { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }
.post-body-content p { margin-bottom: 1.5rem; }
.inline-content-link { color: var(--google-link-blue); text-decoration: none; }
.inline-content-link:hover { text-decoration: underline; }
.post-body-content h3 { font-size: 1.4rem; font-weight: 500; color: var(--text-primary); margin: 2.5rem 0 1rem 0; }

.post-body-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inline-image-callout {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}
.inline-image-callout img { width: 100%; height: 100%; object-fit: cover; }

/* Code Terminal Components */
.code-terminal-block {
    background-color: #1e1f20;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

.code-block-header {
    background-color: #2d2e30;
    padding: 0.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.code-tab-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }

.btn-copy-code {
    background: transparent;
    border: none;
    color: var(--text-date);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.btn-copy-code:hover { color: var(--text-primary); }

.code-block-container {
    display: flex;
    padding: 1.25rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-line-numbers {
    color: #5f6368;
    text-align: right;
    padding-right: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
}

.code-content-display { padding-left: 1.25rem; color: #e8eaed; white-space: pre; }
.c-command { color: #8ab4f8; }
.c-output { color: #9aa0a6; }
.c-success { color: #81c995; }

/* Bottom Related Cards Section Architecture */
.related-posts-section {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    max-width: 760px;
    margin: 0 auto;
}
.related-section-heading { font-size: 1.3rem; font-weight: 400; color: var(--text-primary); margin-bottom: 1.5rem; }
.related-posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.related-post-card { background-color: var(--surface-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: border-color 0.2s; }
.related-post-card:hover { border-color: #5f6368; }

.related-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.related-card-img-holder { width: 100%; height: 150px; background-color: #000; border-bottom: 1px solid var(--border-color); }
.related-card-img-holder img { width: 100%; height: 100%; object-fit: cover; }

.related-card-details { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.related-meta { font-size: 0.65rem; color: var(--text-date); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.related-title { font-size: 0.95rem; font-weight: 500; line-height: 1.4; color: var(--text-primary); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-date { font-size: 0.7rem; color: var(--text-date); margin-top: auto; }

/* Reading View Responsive Breakdowns */
@media (max-width: 768px) {
    .post-main-title { font-size: 1.8rem; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .inline-image-callout { height: 220px; }
    .post-metadata-wrapper { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}


/* ==========================================================================
   2. PAGE SPECIFIC LAYOUT: SEARCH FEED & FILTER PANEL
   ========================================================================== */
.search-master-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    flex-grow: 1;
}

.search-results-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.search-main-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.results-counter {
    font-size: 0.9rem;
    color: var(--text-date);
    margin-bottom: 0.75rem;
}

.btn-clear-filters {
    font-size: 0.85rem;
    color: var(--google-link-blue);
    text-decoration: none;
    font-weight: 500;
}
.btn-clear-filters:hover { text-decoration: underline; }

/* Main Two-Column View Grid split */
.search-split-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Left Sidebar Filter */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.filter-group {
    border-bottom: 1px solid #2d2e30;
    padding-bottom: 2rem;
}
.filter-group:last-of-type { border-bottom: none; }
.filter-group-title { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; }

.btn-select-all {
    background: transparent;
    border: none;
    color: var(--google-link-blue);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
}

.checkbox-list { display: flex; flex-direction: column; gap: 0.85rem; }

/* Custom Styled Checkboxes */
.custom-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-item input[type="checkbox"] {
    accent-color: var(--google-link-blue);
    width: 15px;
    height: 15px;
    margin-top: 2px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
}

.checkbox-label-text {
    font-size: 0.85rem;
    color: #bdc1c6;
    line-height: 1.3;
}
.custom-checkbox-item input[type="checkbox"]:checked ~ .checkbox-label-text { color: var(--text-primary); }

/* Right Column Feed Stream */
.results-feed-column { display: flex; flex-direction: column; }
.feed-row-item {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.feed-row-text { flex-grow: 1; }
.feed-item-meta { font-size: 0.75rem; color: var(--text-date); font-weight: 500; letter-spacing: 0.3px; margin-bottom: 0.5rem; }
.meta-tag { color: #c5a5ff; }
.feed-item-title { font-size: 1.4rem; font-weight: 500; line-height: 1.3; margin-bottom: 0.6rem; }
.feed-item-title a { text-decoration: none; color: var(--google-link-blue); }
.feed-item-title a:hover { text-decoration: underline; }

.feed-item-description {
    font-size: 0.9rem;
    color: var(--text-date);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-row-thumb {
    width: 200px;
    min-width: 200px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--surface-card);
}
.feed-row-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Pagination Controls */
.feed-pagination-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.pag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: background-color 0.15s;
}

.pag-btn:not(.disabled):hover { background-color: #202124; border-color: #5f6368; }
.pag-btn.disabled { color: #5f6368; border-color: #2d2e30; cursor: not-allowed; pointer-events: none; }
.chevron-ico { font-size: 1.1rem; line-height: 1; }

/* Search Layout Media Overrides */
@media (max-width: 960px) {
    .search-split-layout { grid-template-columns: 1fr; gap: 2rem; }
    .filter-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        background-color: #121212;
        padding: 1.25rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    .filter-group { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 640px) {
    .feed-row-item { flex-direction: column-reverse; gap: 1rem; }
    .feed-row-thumb { width: 100%; height: 160px; }
    .filter-sidebar { flex-direction: column; }
}