/*
Theme Name: Binary Log
Theme URI: https://blake-hofer.net/shop/article_detail.php?id=12&lang=en
Author: Dominique Blake-Hofer
Author URI: https://blake-hofer.net
Description: A minimalist, technical terminal-style theme for system logs and developers. (c) 2026 Dominique Blake-Hofer. Licensed under the GPL v2 or later.
Version: 1.0.1.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Copyright: (c) 2026 Dominique Blake-Hofer
Tags: grid-layout, custom-menu, featured-images, translation-ready, custom-colors
Text Domain: binary-log
*/

/* --- VARIABLEN --- */
:root {
    --primary-color: #0070f3;
    --bg-color: #f0f5ff;
    --text-color: #0f172a;
    --border-color: rgba(0,0,0,0.08);
}

/* --- GLOBAL STYLES --- */
* { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; margin-top: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-color); 
    margin: 0; 
    color: var(--text-color); 
    transition: background 0.3s ease; 
    line-height: 1.6; 
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- WP REQUIRED CLASSES --- */
.sticky { background: #fdfdfd; border: 2px solid var(--primary-color); padding: 25px; border-radius: 15px; }
.bypostauthor { font-weight: bold; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 8px; text-align: center; }
.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 5px; }
.gallery-caption { font-size: 0.8rem; font-style: italic; }
.alignleft { float: left; margin: 0.5em 1em 0.5em 0; }
.alignright { float: right; margin: 0.5em 0 0.5em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* --- HEADER & BRANDING FIX --- */
.site-header { 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    transition: all 0.3s ease; 
    background: rgba(240, 245, 255, 0.8); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; flex-direction: column; }
.site-branding { display: flex; align-items: center; gap: 15px; }

/* LOGO FIX: 45x45px, RUND, OBJECT-FIT */
.site-logo { display: inline-flex; align-items: center; }
.site-logo img, 
.custom-logo-link img,
img.custom-logo {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--primary-color) !important;
    display: block !important;
    padding: 0 !important;
}
.custom-logo-link { display: inline-block !important; line-height: 0; vertical-align: middle; }

.site-title-main-link { text-decoration: none; color: inherit; margin: 0; font-size: 1.5rem; font-weight: 900; }

/* --- NAVIGATION --- */
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; align-items: center; }
.main-navigation li { position: relative; }
.main-navigation a { 
    text-decoration: none; 
    color: inherit; 
    font-family: monospace; 
    font-weight: bold; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    padding: 10px 0; 
    display: block; 
}
.main-navigation a:hover { color: var(--primary-color); }

/* DROPDOWN */
.main-navigation ul ul { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #fff; 
    min-width: 180px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    flex-direction: column; 
    z-index: 9999; 
    padding: 5px 0; 
}
.main-navigation ul ul a { padding: 4px 15px !important; font-size: 0.75rem; text-transform: none; }
.main-navigation li:hover > ul { display: flex; }

/* --- SIDEBAR & LAYOUT --- */
.content-sidebar-wrapper { display: flex; gap: 50px; margin-top: 60px; align-items: flex-start; }
.main-content-area { flex: 3; min-width: 0; }
.widget-area { flex: 1; position: sticky; top: 120px; font-family: monospace; }
.widget { margin-bottom: 50px; }
.widget-title { 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    color: var(--primary-color); 
    border-bottom: 2px solid var(--primary-color); 
    padding-bottom: 8px; 
    margin-bottom: 20px; 
    font-weight: bold; 
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li a { 
    text-decoration: none; 
    color: inherit; 
    font-weight: bold; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    display: block; 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.03); 
    transition: color 0.2s; 
}
.widget ul li a:hover { color: var(--primary-color); }

/* --- CONTENT STYLES --- */
.binary-page-header { margin-bottom: 40px; border-left: 4px solid var(--primary-color); padding-left: 20px; }
.sys-path-label { font-family: monospace; font-size: 1rem; color: var(--primary-color); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.binary-home-title { font-size: 3.5rem; font-weight: 900; margin: 0; letter-spacing: -2px; }

.main-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin: 60px 0; }
.log-entry { 
    background: #fff; 
    padding: 40px; 
    border-radius: 20px; 
    border: 1px solid var(--border-color); 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}
.log-entry:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary-color); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.05); 
}
.log-meta-info { font-family: monospace; font-size: 0.75rem; color: var(--primary-color); margin-bottom: 15px; }

/* --- FOOTER --- */
.site-footer { padding: 80px 0; border-top: 1px solid var(--border-color); background: transparent; margin-top: 100px; }
.footer-copyright-text { font-size: 1.1rem; font-weight: 900; margin-bottom: 8px; color: inherit; }
.footer-status-info { 
    font-family: monospace; 
    font-size: 0.85rem; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    line-height: 1.6; 
}
.footer-branding-credit { 
    margin-top: 25px; 
    display: block; 
    text-decoration: none; 
    color: inherit; 
    font-family: monospace; 
    font-size: 0.75rem; 
    opacity: 0.6; 
    font-weight: bold; 
}
.footer-branding-credit:hover { opacity: 1; color: var(--primary-color); }

/* --- TERMINAL ELEMENTS --- */
.shell-line { 
    font-family: monospace; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    background: rgba(0,0,0,0.05); 
    color: var(--primary-color); 
    margin-top: 5px; 
}
.status-badge { 
    background: rgba(124,166,92,0.1); 
    padding: 8px 15px; 
    border-radius: 50px; 
    font-family: monospace; 
    font-size: 0.75rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border: 1px solid var(--primary-color); 
    color: var(--primary-color); 
}
.status-dot { 
    width: 8px; 
    height: 8px; 
    background: var(--primary-color); 
    border-radius: 50%; 
    display: inline-block; 
    animation: pulse-primary 2s infinite; 
}
.cursor-block { 
    display: inline-block; 
    width: 8px; 
    height: 16px; 
    background: var(--primary-color); 
    vertical-align: middle; 
    animation: blink 1s step-end infinite; 
    margin-left: 5px; 
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse-primary { 
    0% { box-shadow: 0 0 0 0 rgba(0, 112, 243, 0.4); } 
    70% { box-shadow: 0 0 0 10px rgba(0, 112, 243, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(0, 112, 243, 0); } 
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .content-sidebar-wrapper { flex-direction: column; }
    .widget-area { width: 100%; position: static; margin-top: 40px; }
}