/*
Theme Name: Sprit Network Blog
Theme URI: https://spritnetwork.com
Author: Sprit Network
Description: Blog theme for blog.spritnetwork.com matching the spritnetwork.com design
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: sprit-network-blog
*/

/* ── Variables ─────────────────────────────── */
:root {
    --black:      #000;
    --dark:       #1E2222;
    --card:       #111414;
    --blue:       #3F80BB;
    --blue-h:     #6EC1E4;
    --white:      #fff;
    --text:       #ADADAD;
    --muted:      #7A7A7A;
    --border:     #2a2a2a;
    --font:       'Montserrat', sans-serif;
    --body-font:  'Roboto', sans-serif;
    --max-w:      1140px;
    --r:          6px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--black);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-h); }
img { max-width: 100%; height: auto; display: block; }
/* ul padding only inside content — not nav */
.entry-content ul,
.entry-content ol,
.sidebar ul,
.sidebar ol,
.comment-content ul,
.comment-content ol { padding-left: 1.5rem; }

/* ── Typography ────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font); color: var(--white); line-height: 1.25; margin-bottom: .75rem; }
h1 { font-size: clamp(26px,4vw,46px); font-weight: 700; }
h2 { font-size: clamp(20px,3vw,34px); font-weight: 600; }
h3 { font-size: clamp(18px,2.5vw,26px); font-weight: 500; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 17px; font-weight: 600; }
p  { margin-bottom: 1.1rem; }
blockquote { border-left: 4px solid var(--blue); padding: 1rem 1.5rem; background: var(--card); border-radius: 0 var(--r) var(--r) 0; margin: 1.5rem 0; font-style: italic; }
code { background: var(--dark); color: var(--blue-h); padding: 2px 7px; border-radius: 4px; font-size: 14px; }
pre  { background: var(--dark); padding: 1rem; border-radius: var(--r); overflow-x: auto; margin-bottom: 1.2rem; }
pre code { background: none; padding: 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: 14px; }
th,td { padding: 10px 14px; border: 1px solid var(--border); }
th { background: var(--dark); color: var(--white); }

/* ── Layout ────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-main { width: 72%; padding: 0 15px; }
.col-side  { width: 28%; padding: 0 15px; }
@media (max-width: 991px) {
    .col-main, .col-side { width: 100%; }
    .col-side { padding-top: 40px; }
}

/* Header styles are in css/header.css */

/* ══════════════════════════════════════════════
   PAGE BANNER
══════════════════════════════════════════════ */
.page-banner {
    background: var(--dark);
    padding: 46px 0 36px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-banner h1 { font-size: clamp(20px,2.8vw,32px); margin-bottom: 10px; }
.breadcrumbs {
    list-style: none;
    display: inline-flex;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    padding: 0;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; }
.breadcrumbs a { color: var(--blue); }

/* ══════════════════════════════════════════════
   BLOG LISTING
══════════════════════════════════════════════ */
.blog-wrap { padding: 56px 0 80px; }

.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 26px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.post-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(63,128,187,.12); }
.post-card .thumb img { width: 100%; height: 215px; object-fit: cover; }
.post-card .body { padding: 22px 24px 24px; }

.cats a {
    display: inline-block;
    background: rgba(63,128,187,.15);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 0 4px 10px 0;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.post-meta i { margin-right: 4px; color: var(--blue); }
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--blue); }

.post-card h2 { font-size: 18px; font-weight: 600; line-height: 1.45; margin-bottom: 10px; }
.post-card h2 a { color: var(--white); }
.post-card h2 a:hover { color: var(--blue); }
.post-card .excerpt { font-size: 14px; color: var(--text); margin-bottom: 14px; }

.read-more { color: var(--blue); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.read-more:hover { color: var(--blue-h); gap: 10px; }

/* Pagination */
.pagination-wrap { margin-top: 10px; }
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r); color: var(--white); font-size: 14px; margin: 3px;
    transition: background .2s, border-color .2s;
}
a.page-numbers:hover, .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ══════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════ */
.single-wrap { padding: 56px 0 80px; }
.entry-cats { margin-bottom: 14px; }
.entry-title { font-size: clamp(20px,3vw,34px); font-weight: 700; line-height: 1.3; margin-bottom: 18px; }
.entry-feat-img { border-radius: var(--r); overflow: hidden; margin: 22px 0 30px; }
.entry-feat-img img { width: 100%; max-height: 460px; object-fit: cover; }
.entry-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.entry-content h2 { font-size: 23px; margin-top: 2rem; }
.entry-content h3 { font-size: 20px; margin-top: 1.75rem; }
.entry-content p  { margin-bottom: 1.2rem; }
.entry-content a  { color: var(--blue); text-decoration: underline; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figure img { border-radius: var(--r); }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }

.post-tags { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.post-tags .label { font-size: 13px; color: var(--muted); margin-right: 8px; }
.post-tags a { display: inline-block; background: var(--dark); color: var(--text); font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); margin: 3px; transition: border-color .2s, color .2s; }
.post-tags a:hover { border-color: var(--blue); color: var(--blue); }

.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; margin-top: 34px; }
.author-box img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h5 { font-size: 15px; margin-bottom: 4px; }
.author-box p  { font-size: 13px; margin: 0; }

.post-nav { display: flex; gap: 14px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.post-nav > div { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; transition: border-color .2s; }
.post-nav > div:hover { border-color: var(--blue); }
.post-nav a { color: var(--white); }
.post-nav .nav-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.post-nav .nav-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.post-nav .nav-next { text-align: right; }
.post-nav .nav-next .nav-label { justify-content: flex-end; }
@media (max-width: 600px) { .post-nav { flex-direction: column; } }

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar .widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; margin-bottom: 24px; }
.sidebar .widget-title { font-size: 15px; font-weight: 700; color: var(--white); font-family: var(--font); padding-bottom: 12px; border-bottom: 2px solid var(--blue); margin-bottom: 16px; }

.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; background: var(--dark); border: 1px solid var(--border); border-radius: var(--r); color: var(--white); padding: 9px 12px; font-size: 14px; font-family: var(--body-font); outline: none; }
.search-field:focus { border-color: var(--blue); }
.search-field::placeholder { color: var(--muted); }
.search-submit { background: var(--blue); border: none; border-radius: var(--r); color: #fff; padding: 9px 14px; cursor: pointer; font-size: 14px; transition: background .2s; }
.search-submit:hover { background: #2d6a9f; }

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget_recent_entries li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.45; }
.widget_recent_entries li:last-child { border-bottom: none; }
.widget_recent_entries li a { color: var(--text); }
.widget_recent_entries li a:hover { color: var(--blue); }
.widget_recent_entries .post-date { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.widget_categories li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.widget_categories li:last-child { border-bottom: none; }
.widget_categories li a { color: var(--text); }
.widget_categories li a:hover { color: var(--blue); }
.widget_categories .count { color: var(--muted); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a { background: var(--dark); color: var(--text) !important; font-size: 12px !important; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); transition: border-color .2s, color .2s; }
.tagcloud a:hover { border-color: var(--blue); color: var(--blue) !important; }
.sidebar-promo { text-align: center; }
.sidebar-promo img { border-radius: var(--r); width: 100%; margin-bottom: 14px; }
.sidebar-promo p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.btn-blue { display: inline-block; background: var(--blue); color: #fff !important; padding: 10px 22px; border-radius: var(--r); font-size: 14px; font-weight: 600; font-family: var(--font); }
.btn-blue:hover { background: #2d6a9f; color: #fff !important; }

/* ══════════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════════ */
.comments-area { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border); }
.comments-title { font-size: 22px; margin-bottom: 26px; }
.comment-list   { list-style: none; padding: 0; margin: 0 0 36px; }
.comment-body   { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.c-author       { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.c-author img   { border-radius: 50%; }
.c-author .name { font-weight: 600; color: var(--white); font-size: 15px; }
.c-author .date { font-size: 12px; color: var(--muted); }
.comment-content p { font-size: 14px; margin-bottom: 0; }
.reply a { font-size: 13px; color: var(--blue); display: inline-block; margin-top: 8px; }
.comment-reply-title { font-size: 20px; margin-bottom: 20px; }
.comment-form label { display: block; font-size: 14px; color: var(--text); margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%; background: var(--dark); border: 1px solid var(--border); border-radius: var(--r);
    color: var(--white); padding: 10px 13px; font-size: 14px; font-family: var(--body-font);
    outline: none; margin-bottom: 13px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); }
.comment-form textarea { min-height: 110px; resize: vertical; }
.submit { background: var(--blue); color: #fff; border: none; border-radius: var(--r); padding: 11px 26px; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: background .2s; }
.submit:hover { background: #2d6a9f; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#site-footer { background: #000; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 40px; }
.footer-about p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--white); font-family: var(--font); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links li a { color: var(--muted); font-size: 14px; transition: color .2s, padding-left .2s; }
.footer-links li a:hover { color: var(--blue); padding-left: 4px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.contact-list li i { color: var(--blue); margin-top: 3px; width: 14px; flex-shrink: 0; }
.contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--blue); }
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); border: 1px solid var(--border); color: var(--text); font-size: 13px; transition: background .2s, border-color .2s, color .2s; }
.social-row a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 13px; color: var(--muted); margin: 0; }
.footer-bottom a { color: var(--blue); }

/* ══════════════════════════════════════════════
   404 / UTILITIES
══════════════════════════════════════════════ */
.error-wrap { padding: 80px 0; text-align: center; }
.error-wrap .big { font-size: 110px; color: var(--blue); line-height: 1; font-family: var(--font); font-weight: 700; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
