/*
Theme Name: Ollis Place – Classic Mac
Theme URI: https://ollis-place.de
Author: Oliver
Description: Ein WordPress-Theme im Stil von Apple Mac OS 7.5 – 256 Graustufen, System-Schriftarten, klare Struktur für Retro Computing & Apple-Themen.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ollisplace
*/

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Mac OS 7.5 Graupalette */
    --white:        #FFFFFF;
    --gray-lightest:#F0F0F0;
    --gray-light:   #DDDDDD;
    --gray-mid:     #BBBBBB;
    --gray-dark:    #888888;
    --gray-darker:  #555555;
    --black:        #000000;

    /* Titlebar-Verlauf (simuliert) */
    --titlebar-stripe1: #FFFFFF;
    --titlebar-stripe2: #888888;

    /* Akzent */
    --highlight:    #000080; /* klassisches Mac-Blau nur für Textlinks */

    /* Abstände */
    --gap: 8px;
    --radius: 0px;

    /* Schrift – nur System-Fonts */
    --font-ui:    "Chicago", "Geneva", "Charcoal", Arial, sans-serif;
    --font-body:  "Geneva", "Charcoal", Arial, sans-serif;
    --font-mono:  "Monaco", "Courier New", monospace;
}

html {
    background: var(--gray-light);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--black);
}

body {
    background: var(--gray-light);
    min-height: 100vh;
}

a {
    color: var(--highlight);
    text-decoration: underline;
}
a:hover {
    color: var(--black);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--gray-dark);
}

/* ═══════════════════════════════════════════════
   MAC OS 7.5 WINDOW CHROME MIXIN
   Wiederverwendbare Klassen für "Fensterstil"
═══════════════════════════════════════════════ */

/* Outer shadow: klassischer 2-px "drop shadow" nach rechts+unten */
.mac-window {
    background: var(--white);
    border: 1px solid var(--black);
    box-shadow: 2px 2px 0 var(--black);
    margin-bottom: 16px;
}

/* Titelleiste mit Streifen-Verlauf */
.mac-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    background: repeating-linear-gradient(
        to bottom,
        var(--titlebar-stripe1) 0px,
        var(--titlebar-stripe1) 1px,
        var(--titlebar-stripe2) 1px,
        var(--titlebar-stripe2) 2px
    );
    border-bottom: 1px solid var(--black);
    user-select: none;
    cursor: default;
}

.mac-titlebar-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.03em;
    color: var(--black);
    /* Text auf Streifen lesbar machen */
    background: var(--white);
    padding: 0 8px;
}

/* Schaltflächen (Close-Box + Zoom-Box) */
.mac-btn {
    width: 11px;
    height: 11px;
    border: 1px solid var(--black);
    background: var(--white);
    flex-shrink: 0;
    position: relative;
}
.mac-btn.close::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid var(--black);
}
.mac-btn.zoom {
    /* Vergrösserungs-Box: Linie innen */
}
.mac-btn.zoom::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 1px;
    bottom: 1px;
    width: 1px;
    background: var(--black);
    transform: translateX(-50%);
}

/* Fenster-Inhalt */
.mac-window-body {
    padding: 10px 12px;
}

/* Horizontaler Trennstrich (1 px schwarz) */
.mac-divider {
    border: none;
    border-top: 1px solid var(--black);
    margin: 8px 0;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR (Webkit) – klassisches Mac-Feeling
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--gray-light); border-left: 1px solid var(--gray-dark); }
::-webkit-scrollbar-thumb {
    background: var(--gray-mid);
    border: 1px solid var(--black);
}
::-webkit-scrollbar-button {
    background: var(--gray-light);
    border: 1px solid var(--black);
    height: 16px;
    width: 16px;
}

/* ═══════════════════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════════════════ */
#page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px;
}

/* ═══════════════════════════════════════════════
   MENUBAR (oben, wie Mac OS Menüleiste)
═══════════════════════════════════════════════ */
#menubar {
    background: var(--white);
    border-bottom: 1px solid var(--black);
    display: flex;
    align-items: stretch;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 1px 0 var(--gray-dark);
}

.menubar-apple {
    padding: 2px 10px;
    border-right: 1px solid var(--gray-mid);
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: default;
    user-select: none;
}

.menubar-item {
    padding: 3px 12px;
    cursor: default;
    border-right: 1px solid transparent;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--black);
    font-weight: bold;
    transition: background 0.05s;
}
.menubar-item:hover {
    background: var(--black);
    color: var(--white);
    text-decoration: none;
}

.menubar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 11px;
    color: var(--gray-dark);
    gap: 14px;
    cursor: default;
}

/* ═══════════════════════════════════════════════
   HEADER / SITE-IDENTITY
═══════════════════════════════════════════════ */
#site-header {
    margin-top: 12px;
    margin-bottom: 12px;
}

.site-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Stilisiertes Mac-Icon (SVG inline) */
.site-logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: bold;
    letter-spacing: -0.5px;
    color: var(--black);
    text-decoration: none;
}
.site-title:hover { color: var(--black); text-decoration: none; }

.site-tagline {
    font-size: 11px;
    color: var(--gray-darker);
    font-style: italic;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   RAM METER (Speicherauslastung "Über diesen Mac")
═══════════════════════════════════════════════ */
#ram-meter-widget {
    margin-bottom: 12px;
}

.ram-meter-bar-outer {
    height: 14px;
    background: var(--white);
    border: 1px solid var(--black);
    position: relative;
    overflow: hidden;
}

.ram-meter-segment {
    height: 100%;
    float: left;
    position: relative;
}
.ram-seg-system {
    background: repeating-linear-gradient(
        45deg,
        var(--black),
        var(--black) 2px,
        var(--white) 2px,
        var(--white) 4px
    );
}
.ram-seg-used {
    background: var(--gray-dark);
}
.ram-seg-free {
    background: var(--white);
}

.ram-meter-legend {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    font-size: 10px;
    color: var(--black);
    font-family: var(--font-mono);
}
.ram-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid var(--black);
    vertical-align: middle;
    margin-right: 3px;
}

/* ═══════════════════════════════════════════════
   2-COLUMN GRID
═══════════════════════════════════════════════ */
#content-area {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    align-items: start;
}

@media (max-width: 680px) {
    #content-area {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   POSTS / ARTIKEL
═══════════════════════════════════════════════ */
.post-article {
    margin-bottom: 12px;
}

.post-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}
.post-title a {
    color: var(--black);
    text-decoration: none;
}
.post-title a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 10px;
    color: var(--gray-darker);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.post-content {
    font-size: 13px;
    line-height: 1.55;
}
.post-content p { margin-bottom: 8px; }
.post-content h2, .post-content h3 {
    font-family: var(--font-ui);
    font-weight: bold;
    margin: 12px 0 6px;
}
.post-content h2 { font-size: 14px; border-bottom: 1px solid var(--gray-mid); padding-bottom: 2px; }
.post-content h3 { font-size: 13px; }
.post-content ul, .post-content ol { padding-left: 20px; margin-bottom: 8px; }
.post-content blockquote {
    border-left: 3px solid var(--black);
    padding: 4px 10px;
    color: var(--gray-darker);
    margin: 8px 0;
    font-style: italic;
}
.post-content pre, .post-content code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--gray-lightest);
    border: 1px solid var(--gray-mid);
    padding: 2px 4px;
}
.post-content pre {
    padding: 8px;
    overflow-x: auto;
    display: block;
    margin-bottom: 8px;
}
.post-content img {
    border: 1px solid var(--black);
    box-shadow: 2px 2px 0 var(--gray-dark);
    margin: 8px 0;
}

.post-read-more a {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    background: var(--gray-light);
    border: 1px solid var(--black);
    box-shadow: 1px 1px 0 var(--black);
    padding: 2px 10px;
    color: var(--black);
    text-decoration: none;
    cursor: default;
    margin-top: 6px;
}
.post-read-more a:hover {
    background: var(--gray-mid);
}
.post-read-more a:active {
    box-shadow: none;
    transform: translate(1px,1px);
}

/* Seitennavigation */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    font-size: 12px;
}
.pagination a, .pagination span {
    padding: 2px 8px;
    border: 1px solid var(--black);
    box-shadow: 1px 1px 0 var(--black);
    background: var(--gray-light);
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-ui);
}
.pagination .current {
    background: var(--black);
    color: var(--white);
}

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
#sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-widget .mac-window-body {
    font-size: 12px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}
.sidebar-widget ul li {
    border-bottom: 1px solid var(--gray-light);
    padding: 3px 0;
}
.sidebar-widget ul li::before {
    content: "▸ ";
    font-size: 10px;
}
.sidebar-widget ul li a {
    color: var(--black);
    text-decoration: none;
    font-size: 12px;
}
.sidebar-widget ul li a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   FOOTER (Statusleiste)
═══════════════════════════════════════════════ */
#site-footer {
    margin-top: 14px;
    background: var(--white);
    border: 1px solid var(--black);
    border-bottom: none;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--gray-darker);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
}
#site-footer a { color: var(--gray-darker); }

/* ═══════════════════════════════════════════════
   KOMMENTARE
═══════════════════════════════════════════════ */
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-item {
    border-bottom: 1px solid var(--gray-light);
    padding: 8px 0;
}
.comment-author-name {
    font-weight: bold;
    font-size: 12px;
}
.comment-date {
    font-size: 10px;
    color: var(--gray-dark);
    font-family: var(--font-mono);
}
.comment-text { font-size: 12px; margin-top: 4px; }

/* Kommentar-Formular Buttons */
.comment-form input[type="submit"],
.search-form button {
    font-family: var(--font-ui);
    font-size: 12px;
    background: var(--gray-light);
    border: 1px solid var(--black);
    box-shadow: 1px 1px 0 var(--black);
    padding: 2px 14px;
    cursor: default;
}
.comment-form input[type="submit"]:hover,
.search-form button:hover {
    background: var(--gray-mid);
}

/* Eingabefelder */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.search-form input[type="search"] {
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid var(--black);
    background: var(--white);
    padding: 2px 4px;
    width: 100%;
}

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
