/*
Theme Name: AdminWins
Theme URI: https://adminwins.com
Author: AdminWins
Description: Custom dark terminal theme for AdminWins
Version: 1.0
*/

:root {
    --bg:          #0a0e17;
    --surface:     #111827;
    --surface2:    #1a2332;
    --border:      #1e2d40;
    --accent:      #00d4aa;
    --accent-dim:  #00d4aa18;
    --accent-border: rgba(0,212,170,0.25);
    --muted:       #4b6478;
    --text:        #cdd9e5;
    --heading:     #f0f6fc;
    --mono:        'JetBrains Mono', monospace;
    --sans:        'Inter', sans-serif;
    --ok:          #28c840;
    --warn:        #febc2e;
    --err:         #ff5f57;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.75;
    min-height: 100vh;
}

/* ── NAV ── */
nav.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,14,23,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--heading);
    text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ── LAYOUT ── */
.site-wrap {
    max-width: 1100px !important;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.site-wrap.full-width {
    grid-template-columns: 1fr;
    max-width: 860px !important;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
    font-family: var(--mono);
    color: var(--heading);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
h3 { font-size: 1.05rem; color: var(--accent); margin: 1.75rem 0 0.75rem; }
h4 { font-size: 0.95rem; margin: 1.25rem 0 0.5rem; }

p { margin-bottom: 1.25rem; font-weight: 300; }
p strong { color: var(--heading); font-weight: 500; }

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

ul, ol { margin: 1rem 0 1.5rem 1.5rem; }
li { margin-bottom: 0.5rem; font-weight: 300; }

/* ── CODE ── */
pre, pre * {
    background: #0d1117 !important;
    color: #c9d1d9 !important;
}

pre {
    padding: 1.25rem 1.5rem !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    font-family: var(--mono) !important;
    font-size: 0.82rem !important;
    line-height: 1.8 !important;
    border: 1px solid #30363d !important;
    margin: 1.5rem 0 !important;
}

code {
    background: #161b22;
    color: #c9d1d9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.85em;
}

pre code {
    background: transparent !important;
    padding: 0 !important;
}

/* ── BLOCKQUOTE ── */
blockquote {
    border-left: 3px solid var(--accent) !important;
    background: var(--accent-dim) !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 1.5rem 0 !important;
    color: var(--text) !important;
    font-style: normal !important;
}

/* ── TAGS ── */
.tag {
    font-family: var(--mono);
    font-size: 0.72rem;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    padding: 0.2rem 0.65rem;
    text-decoration: none;
    display: inline-block;
    margin: 0.2rem;
}

.tag:hover {
    background: rgba(0,212,170,0.2);
    text-decoration: none;
}

/* ── POST META ── */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.post-date {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
}

/* ── POST ── */
.post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.post:last-child {
    border-bottom: none;
}

.post-title a {
    color: var(--heading);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.post-title a:hover { color: var(--accent); }

.post-title span { color: var(--accent); }

.post-content { margin-top: 1.5rem; }

/* ── SINGLE POST ── */
.single-post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 76px; }

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

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

.sidebar-widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover { color: var(--accent); }

.sidebar-widget .post-count {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    float: right;
}

/* ── TABLES ── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: var(--mono);
    font-size: 0.82rem;
}

th {
    background: var(--surface);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    padding: 0.65rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface2); }

/* ── PAGINATION ── */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    font-family: var(--mono);
    font-size: 0.82rem;
}

.pagination a, .pagination span {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover, .pagination .current {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ── FOOTER ── */
footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
}

footer.site-footer span { color: var(--accent); }

/* ── HOMEPAGE SPECIFIC ── */
.hero {
    padding: 6rem 2rem 5rem;
    max-width: 740px !important;
    margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .site-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .nav-links { display: none; }
}

/* ── HOMEPAGE STYLES ── */
.hero {
    padding: 4rem 2rem;
    max-width: 740px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-body {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.highlight { color: var(--accent); }

.terminal {
    background: #050810;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 640px;
    margin-bottom: 3rem;
    box-shadow: 0 0 40px rgba(0,212,170,0.06);
}

.terminal-bar {
    background: #111827;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    margin-left: auto;
    margin-right: auto;
    padding-right: 36px;
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.9;
}

.t-prompt { color: var(--accent); }
.t-cmd    { color: var(--heading); }
.t-out    { color: #6b8fa8; }
.t-ok     { color: #28c840; }
.t-warn   { color: #febc2e; }
.t-cursor {
    display: inline-block;
    width: 9px;
    height: 1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.section {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-intro {
    font-size: 1rem;
    color: var(--text);
    max-width: 620px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(0,212,170,0.07);
}

.card-icon { font-size: 1.4rem; margin-bottom: 0.85rem; }

.card h3 {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.5rem;
    margin-top: 0;
    border: none;
    padding: 0;
    color: var(--heading);
}

.card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.philosophy {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 2rem 0;
}

.philosophy .inner {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.philosophy-body { font-size: 0.95rem; font-weight: 300; line-height: 1.8; }
.philosophy-body p + p { margin-top: 1rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.cta-section {
    max-width: 740px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    background: var(--accent);
    color: #0a0e17;
    transition: all 0.2s;
}

.btn:hover {
    background: #00f0c0;
    box-shadow: 0 0 24px rgba(0,212,170,0.3);
    text-decoration: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.info-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-family: var(--mono);
}

.info-card .value { font-size: 1rem; font-weight: 600; color: var(--heading); }

/* ── HOMEPAGE WRAPPER ── */
.homepage-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hide the duplicate nav inside page content */
.homepage-content nav {
    display: none;
}
