/*
Theme Name: Technologist
Theme URI: https://technologist.services
Description: WordPress theme matching the technologist.services IT Tools catalog look and feel.
Author: Doug Hesseltine
Version: 1.1.0
Text Domain: technologist
Copyright (C) Technologist.Services 2026
*/

/* Technologist theme — supplemental styles (base: /tools/styles.css) */
/* Date Modified: 2026-06-05 */

body.technologist-wp {
    margin: 0;
}

body.technologist-wp #wpadminbar {
    display: none;
}

body.technologist-wp.admin-bar {
    margin-top: 0 !important;
}

/* Layout: left sidebar + main content */
.site-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.site-main {
    min-width: 0;
}

.site-sidebar {
    position: sticky;
    top: 1.25rem;
    background: rgba(26, 29, 62, 0.75);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 1.1rem 1rem 1.25rem;
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
}

.sidebar-brand {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.sidebar-logo {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    color: #00ff88;
}

.sidebar-sub {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #00d4ff;
    opacity: 0.85;
}

.sidebar-search {
    margin-bottom: 1rem;
}

.sidebar-search-label {
    display: block;
    font-size: 0.7rem;
    color: #00d4ff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.sidebar-search-row {
    display: flex;
    gap: 0.35rem;
}

.sidebar-search-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 5px;
    color: #00ff88;
    font-family: inherit;
    font-size: 0.85rem;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.sidebar-search-btn {
    padding: 0.55rem 0.75rem;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid #00ff88;
    border-radius: 5px;
    color: #00ff88;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.sidebar-search-btn:hover {
    background: rgba(0, 255, 136, 0.22);
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 0.15rem;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 4px;
    color: #00ff88;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(0, 255, 136, 0.12);
    color: #fff;
}

.nav-link--parent {
    font-weight: bold;
    color: #00d4ff;
}

.nav-count {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 10px;
    color: #00d4ff;
}

.nav-sub {
    margin: 0.15rem 0 0.5rem 0.65rem;
    padding-left: 0.55rem;
    border-left: 2px solid rgba(0, 255, 136, 0.2);
}

.nav-link--child {
    font-size: 0.8rem;
    padding: 0.3rem 0.45rem;
    color: rgba(0, 255, 136, 0.9);
}

.nav-sub {
    display: block;
}

.page-hero {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.site-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    margin-top: 40px;
    color: #6c757d;
}

.technologist-wp .site-content a {
    color: #00ff88;
}

.technologist-wp .entry-content {
    color: #00ff88;
}

.technologist-wp .entry-content h1,
.technologist-wp .entry-content h2,
.technologist-wp .entry-content h3 {
    color: #00d4ff;
}

.technologist-wp .entry-content a {
    color: #00d4ff;
}

.technologist-wp .entry-content a:hover {
    color: #00ff88;
}

.technologist-wp .entry-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.technologist-wp .entry-content li {
    padding: 5px 0 5px 20px;
    position: relative;
}

.technologist-wp .entry-content li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff88;
}

.tool-post-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bmac-button-dark:hover {
    background: #ffe44d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 221, 0, 0.4);
}

.bmac-button-dark:active {
    transform: translateY(0);
}

@media (max-width: 960px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        position: static;
        max-height: none;
    }

    .nav-item--category > .nav-sub {
        display: block;
    }
}
