/*
 Theme Name:   RBeezy Wiki Child
 Theme URI:    https://github.com/rbeezy/wiki
 Description:  Child theme for the RBeezy Wiki. Holds all wiki-specific PHP logic (CPTs, taxonomies, content gate, auto-linker, hover previews) and their associated assets. The parent theme (rbeezy-wiki) provides the design system and all template files.
 Author:       RBeezy
 Author URI:   https://rbeezy.com
 Template:     rbeezy-wiki
 Version:      1.0.0
 Requires at least: 6.3
 Tested up to: 6.7
 Requires PHP: 8.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  rbeezy-wiki
*/

/*
 * This file intentionally contains no CSS rules.
 *
 * The parent theme's style.css is enqueued via wp_enqueue_style() in the
 * child theme's functions.php (overriding the default child theme approach
 * of @importing parent styles, which is deprecated).
 *
 * Child-theme-specific CSS lives in:
 *   assets/css/private-control-room.css  — Private Control Room dark panel
 *   assets/css/wiki-autolinker.css       — Auto-links + backlinks grid
 *   assets/css/wiki-preview.css          — Hover preview cards
 *
 * To add custom CSS overrides, either:
 *   a) Add rules directly to this file below this comment block.
 *   b) Create a new file in assets/css/ and enqueue it in functions.php.
 */


/* =============================================================================
   CHILD THEME OVERRIDES & EXTENSIONS
   Add any per-post-type or wiki-specific CSS here.
   ============================================================================= */

/* ── Archive card term tags ────────────────────────────────────────────────── */

.archive-card__terms {
    display:        flex;
    flex-wrap:      wrap;
    gap:            0.375rem;
    margin-top:     auto;
    padding-top:    0.5rem;
}

.archive-card__term {
    display:            inline-block;
    font-family:        var(--font-mono);
    font-size:          0.6rem;
    letter-spacing:     0.1em;
    text-transform:     uppercase;
    padding:            0.2em 0.55em;
    background:         var(--color-bg);
    border:             1px solid var(--color-border-light);
    border-radius:      var(--radius-sm);
    color:              var(--color-text-muted);
    text-decoration:    none;
    transition:         background 0.15s ease, border-color 0.15s ease;
}

.archive-card__term:hover {
    background:         var(--color-accent-light);
    border-color:       var(--color-accent);
    color:              var(--color-text);
}

/* ── Post navigation ───────────────────────────────────────────────────────── */

.post-navigation {
    display:            flex;
    justify-content:    space-between;
    gap:                var(--space-4);
    margin-top:         var(--space-12);
    padding-top:        var(--space-8);
    border-top:         1px solid var(--color-border-light);
    flex-wrap:          wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex:               1 1 240px;
    max-width:          48%;
}

.post-navigation .nav-next {
    text-align:         right;
    margin-left:        auto;
}

.post-navigation a {
    display:            flex;
    flex-direction:     column;
    gap:                0.3em;
    text-decoration:    none;
    color:              var(--color-text-muted);
    font-size:          var(--text-sm);
    transition:         color 0.15s ease;
}

.post-navigation a:hover {
    color:              var(--color-text);
}

.post-navigation .post-navigation__label {
    font-family:        var(--font-mono);
    font-size:          var(--text-xs);
    letter-spacing:     0.1em;
    text-transform:     uppercase;
    color:              var(--color-accent);
    opacity:            0.8;
}

.post-navigation .post-navigation__title {
    font-family:        var(--font-display);
    font-size:          var(--text-md);
    font-weight:        700;
    color:              var(--color-text);
    line-height:        1.3;
}

/* ── Journal single extra spacing ──────────────────────────────────────────── */

.entry-content--journal {
    font-size:      var(--text-md);
    line-height:    1.85;
}

/* ── Draft status badge ────────────────────────────────────────────────────── */

.post-status-badge {
    font-family:    var(--font-mono);
    font-size:      var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding:        0.2em 0.6em;
    border-radius:  var(--radius-sm);
}

.post-status-badge--draft {
    background:     rgba(255, 170, 0, 0.15);
    color:          var(--color-accent-dark);
    border:         1px solid var(--color-accent-light);
}
