/*
Theme Name: Newspaper Child Technical
Theme URI: https://clauswessel.eu
Description: Technical Solutions & Infrastructure Dark Child Theme for Newspaper by tagDiv
Author: Claus Wessel
Template: Newspaper
Version: 1.0.0
*/

/* -------------------------------------------------------------------------
 * 1. Global Dark Palette & Variables
 * ------------------------------------------------------------------------- */
:root {
    --tech-bg-canvas: #0d1117;
    --tech-bg-surface: #161b22;
    --tech-bg-elevated: #21262d;
    --tech-border: #30363d;
    --tech-text-primary: #c9d1d9;
    --tech-text-heading: #f0f6fc;
    --tech-text-muted: #8b949e;
    --tech-accent: #58a6ff;
    --tech-accent-hover: #79c0ff;
    --tech-code-bg: #030407;
    --tech-code-text: #e6edf3;
    --tech-warning: #d29922;
    --tech-success: #238636;
    --tech-mono-font: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, 'Courier New', monospace;
}

/* Base Body & Container Overrides */
body, 
.td-theme-wrap, 
#td-outer-wrap {
    background-color: var(--tech-bg-canvas) !important;
    color: var(--tech-text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.entry-title,
.td-post-title .entry-title {
    color: var(--tech-text-heading) !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Links */
a {
    color: var(--tech-accent);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
a:hover {
    color: var(--tech-accent-hover);
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * 2. Technical Code Blocks & Terminal Windows
 * ------------------------------------------------------------------------- */
pre, code, kbd, samp {
    font-family: var(--tech-mono-font) !important;
    font-size: 0.90rem !important;
}

/* Inline Code */
:not(pre) > code {
    background-color: var(--tech-bg-elevated) !important;
    color: #ff7b72 !important;
    padding: 0.2em 0.4em !important;
    border-radius: 4px !important;
    border: 1px solid var(--tech-border) !important;
    white-space: break-spaces;
}

/* Terminal / Code Containers */
pre, 
.wp-block-code, 
.enlighter {
    position: relative;
    background-color: var(--tech-code-bg) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: 6px !important;
    padding: 1.25rem !important;
    margin: 1.5rem 0 !important;
    overflow-x: auto !important;
    line-height: 1.55 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

pre code {
    background: transparent !important;
    color: var(--tech-code-text) !important;
    padding: 0 !important;
    border: none !important;
}

/* Copy Button Container */
.tech-code-wrapper {
    position: relative;
}

.tech-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--tech-bg-elevated);
    color: var(--tech-text-muted);
    border: 1px solid var(--tech-border);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-family: var(--tech-mono-font);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.tech-copy-btn:hover {
    background-color: var(--tech-border);
    color: var(--tech-text-heading);
}

.tech-copy-btn.copied {
    background-color: var(--tech-success);
    color: #ffffff;
    border-color: var(--tech-success);
}

/* -------------------------------------------------------------------------
 * 3. Technical Notice / Runbook Callout Blocks
 * ------------------------------------------------------------------------- */
.tech-callout {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    border-left: 4px solid var(--tech-accent);
    background-color: rgba(56, 139, 253, 0.08);
}

.tech-callout-warning {
    border-left-color: var(--tech-warning);
    background-color: rgba(210, 153, 34, 0.08);
}

.tech-callout-danger {
    border-left-color: #f85149;
    background-color: rgba(248, 81, 73, 0.08);
}

.tech-callout-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--tech-text-heading);
}

/* -------------------------------------------------------------------------
 * 4. Data Tables (Network Port Matrices, Inventory Audits)
 * ------------------------------------------------------------------------- */
table, .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    border: 1px solid var(--tech-border) !important;
}

table th, .wp-block-table th {
    background-color: var(--tech-bg-surface) !important;
    color: var(--tech-text-heading) !important;
    border: 1px solid var(--tech-border) !important;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

table td, .wp-block-table td {
    border: 1px solid var(--tech-border) !important;
    padding: 10px 14px;
    color: var(--tech-text-primary) !important;
    background-color: var(--tech-bg-canvas);
}

table tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* -------------------------------------------------------------------------
 * 5. TagDiv Newspaper Clutter Stripping
 * ------------------------------------------------------------------------- */
/* Hide default share counters, author box, and floating social bars */
.td-post-sharing,
.td-author-box,
.td-post-views,
.td-post-comments {
    display: none !important;
}

/* Clean post container borders */
.td-post-content {
    line-height: 1.7;
    font-size: 1.05rem;
}