/*
Theme Name: Simple Gear Workbench
Theme URI: https://wordpress.ardomas.com/
Author: Sam
Author URI: https://wordpress.ardomas.com/
Contributors: Gepeto (ChatGPT / OpenAI persona)
Description: A minimal WordPress theme used as a personal workbench. Built to test, break, and rebuild ideas.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-gear-workbench
Tags: minimal, experimental, developer, workbench
*/

:root {
    --logo-background-color: #1f1f1f;
	/* html body */
    --foreground: #3f3f3f;
    --background: #f3f3f3;
    /* image theme dark-bright toggle */
    --image-icon-bright-dark: url("./assets/images/bright_dark.svg");
    /*
    --bg-color: #f3f3f3;
    --text-color: #3f3f3f;
    --link-color: #003366;
    */
    /* header */
    /*
    --bg-header-color: #666666;
    --text-header-color: #d8d8d8;
    --link-header-color: #bbddff;
    */
    /* footer */
    /*
    --bg-footer-color: #585858;
    --text-footer-color: #d8d8d8;
    --link-footer-color: #bbddff;
    */
    /* border-color */
    /* --border-color: #cccccc; */
    /* post-content */
    /*
    --bg-content-color: #f9f9f9;
    --text-content-color: #2f2f2f;
    --border-content-color: #fcfcfc;
    */
}

/* override manual */
body[data-theme="lite"] {
	/* html body */
    --bg-color: #efefef;
    --text-color: #686868;
    --link-color: #6699cc;
    /* header */
    --bg-header-color: #484848;
    --text-header-color: #d8d8d8;
    --link-header-color: #bbddff;
    /* footer */
    --bg-footer-color: #585858;
    --text-footer-color: #d8d8d8;
    --link-footer-color: #bbddff;
    /* border-color */
    --border-color: #cccccc;
    /* post-content */
    --bg-sidebar-color: #f7f7f7;
    --bg-content-color: #f9f9f9;
    --text-content-color: #2f2f2f;
    --border-content-color: #fcfcfc;
    /* image theme dark-bright toggle */
    --image-icon-bright-dark: url("./assets/images/img-ico-night.png");
}

body[data-theme="dark"] {
    --image-filter: none;
	/* html body */
    --bg-color: #1f1f1f;
    --text-color: #868686;
    --link-color: #6699cc;
    /* header */
    --bg-header-color: #070707;
    --text-header-color: #f7f7f7;
    --link-header-color: #cceeff;
    /* footer */
    --bg-footer-color: #0f0f0f;
    --text-footer-color: #f3f3f3;
    --link-footer-color: #cceeff;
    /* border-color */
    --border-color: #444444;
    /* post-content */
    --bg-sidebar-color: #2f2f2f;
    --bg-content-color: #272727;
    --text-content-color: #e7e7e7;
    --border-content-color: #444444;
    /* image theme dark-bright toggle */
    --image-icon-bright-dark: url("./assets/images/img-ico-day.png");
}

body {
	font-size: 16px;
    line-height: 1.8em;
    background: var(--bg-color);
    color: var(--text-color);
	margin: 0px;
	padding: 0px;
}

.wp-block-site-logo img {
	width: 48px;
	height: auto;
}

.sgw-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-toggle {
    width: 22px;
    height: 22px;
    cursor: pointer;

    background-image: var(--image-icon-bright-dark);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sgw-header-panel {
    background-color: var(--bg-header-color);
    color: var(--text-header-color);
}
.sgw-header-panel a {
    color: var(--link-header-color);
}

.sgw-footer-panel {
    background-color: var(--bg-footer-color);
    color: var(--text-footer-color);
}
.sgw-footer-panel a {
    color: var(--link-footer-color);
}

.sgw-end-post-sign {
    text-align: center;
    width: 100%;
}

.sgw-end-post-image-01 {
    height: 1.75em;
    width: auto;
    background-image: url("./assets/images/img-pattern-04.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sgw-end-post-image-02 {
    height: 1.75em;
    width: auto;
    background-image: url("./assets/images/img-pattern-02.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }
.border-top:first-child { border-top: none; }
.border-bottom:last-child { border-bottom: none; }

.column-main {
    padding-top: 2em;
    background-color: var(--bg-content-color);
    min-height: 100vh;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}
.column-side {
    padding: 2em;
    background-color: var(--bg-sidebar-color);
    min-height: 100vh;
    border-right: 1px solid var(--border-color);
}

a {
	color: var(--link-color);
}

.site-logo {
	filter: var(--logo-filter);
}

/* dark default dari sistem */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #333333;
        --text-color: #f3f3f3;
        --link-color: #88aaff;
    }
}
