/*
 * Theme Name:   Astra Linux Child
 * Theme URI:    https://localhost
 * Description:  Minimalist Linux Expert Blog — Astra Child Theme
 * Author:       Orlando Alfaro
 * Author URI:   https://www.linkedin.com/in/orlandoalfa
 * Template:     astra
 * Version:      2.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  astra-linux-child
 */

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --bg:          #0d1117;
    --bg-2:        #111720;
    --fg:          #cdd6f4;
    --fg-dim:      #7f849c;
    --fg-faint:    #313244;
    --green:       #a6e3a1;
    --blue:        #89b4fa;
    --yellow:      #f9e2af;
    --red:         #f38ba8;
    --border:      #1e2030;

    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

    --max-w: 680px;
    --gap:   1.75rem;
}

/* =========================================================
   ASTRA GLOBAL RESET — force dark on everything
   ========================================================= */

/* Set variables directly on body so they resolve everywhere */
body {
    background-color: #0d1117 !important;
    color: #cdd6f4 !important;
}

html,
#page,
#content,
.site,
.site-content,
#primary,
.ast-page-builder-template .site,
.entry-content {
    background-color: #0d1117 !important;
}

/* Header */
#masthead,
.site-header,
.main-header-bar,
.main-header-bar-wrap,
.ast-primary-header-bar,
.ast-desktop-header,
.ast-above-header-wrap,
.ast-below-header-wrap {
    background-color: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}

/* Footer */
#colophon,
.site-footer,
footer.site-footer,
.ast-small-footer,
.ast-small-footer-wrap,
.ast-small-footer-section,
.ast-above-footer,
.ast-below-footer,
.footer-widget-area,
#colophon * {
    background-color: #111720 !important;
    color: #7f849c !important;
}

.ast-small-footer a,
#colophon a {
    color: #7f849c !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.72rem !important;
    text-decoration: none !important;
}

.ast-small-footer a:hover,
#colophon a:hover {
    color: #a6e3a1 !important;
}


/* Site title */
.ast-site-identity .site-title a {
    font-family: var(--font-mono) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--green) !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

.ast-site-identity .site-description {
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    color: var(--fg-dim) !important;
}

/* Nav */
.ast-nav-menu > li > a,
#ast-desktop-header .menu-item > a {
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    color: var(--fg-dim) !important;
    text-decoration: none !important;
}

.ast-nav-menu > li > a:hover,
#ast-desktop-header .menu-item > a:hover {
    color: var(--green) !important;
}

/* Admin bar */
#wpadminbar {
    background: #161b22 !important;
}

/* Global links */
a {
    color: var(--blue) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

a:hover {
    color: var(--green) !important;
}

/* Full width on front page */
.home .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Strip Astra padding from content area on front page */
.home .entry-content,
.home .ast-article-post,
.home #content {
    padding: 0 !important;
    margin: 0 !important;
}
