/*
Theme Name: Mishloah
Theme URI: https://mishloah.co.il
Author: TaxiRoyal Dev
Description: Minimal dark theme for mishloah.co.il portal system.
Version: 1.0.0
Text Domain: mishloah
*/

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0f0f1a;
    --surface:   #1a1a2e;
    --surface2:  #16213e;
    --border:    #0f3460;
    --text:      #ffffff;
    --text-muted:#888888;
    --accent:    #f5a623;
    --accent2:   #f5c400;
    --radius:    16px;
    --font:      'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    /* Portal shared vars — used by all portal plugins */
    --mlp-bg:          #0f0f1a;
    --mlp-surface:     #1a1a2e;
    --mlp-surface2:    #16213e;
    --mlp-border:      #0f3460;
    --mlp-text:        #ffffff;
    --mlp-text-muted:  #888888;
    --mlp-accent:      #f5a623;
    --mlp-sidebar-w:   220px;
    --mlp-radius:      16px;
    --mlp-radius:      12px;
}

html {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100%;
    overflow: clip;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; display: block; }

/* ── Site layout ────────────────────────────────────────────── */
#mishloah-site {
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

/* ── Header ─────────────────────────────────────────────────── */
#mishloah-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mishloah-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.mishloah-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mishloah-header-nav a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.mishloah-header-nav a:hover { color: var(--text); }

/* Login/logout button */
.mishloah-nav-btn {
    background: var(--accent);
    border-radius: 8px;
    color: #000 !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    transition: opacity 0.2s !important;
}
.mishloah-nav-btn:hover { opacity: 0.85 !important; }

/* ── Main content ───────────────────────────────────────────── */
#mishloah-content {
    flex: 1;
}

/* Full-width page (portal, form pages) */
.page-template-full-width #mishloah-content,
.page-template-default #mishloah-content {
    width: 100%;
}

/* Centered content for regular pages/posts */
.mishloah-entry {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.mishloah-entry h1,
.mishloah-entry h2,
.mishloah-entry h3 {
    color: var(--text);
    margin-bottom: 16px;
}

.mishloah-entry p { color: var(--text-muted); margin-bottom: 16px; }

/* ── Footer ─────────────────────────────────────────────────── */
#mishloah-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: auto;
}

/* ── WP login page override ─────────────────────────────────── */
body.login {
    background: var(--bg) !important;
}

body.login #login {
    padding-top: 60px;
}

body.login h1 a {
    background-image: none !important;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font);
    text-indent: 0;
    width: auto;
    height: auto;
}

body.login form {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    color: var(--text) !important;
}

body.login label { color: var(--text-muted) !important; }

body.login input[type=text],
body.login input[type=password] {
    background: var(--surface2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    font-size: 15px !important;
}

body.login input[type=submit] {
    background: var(--accent) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 10px !important;
}

body.login #nav a,
body.login #backtoblog a { color: var(--text-muted) !important; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1a3a6e; }

/* ── Utilities ──────────────────────────────────────────────── */
.mishloah-hidden { display: none !important; }

/* Remove WP admin bar completely */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
body.admin-bar { margin-top: 0 !important; padding-top: 0 !important; }
* html body.admin-bar { margin-top: 0 !important; }
