/*
Theme Name: NothingTech
Theme URI: http://nothingtech.blog/
Author: NothingTech Team
Author URI: http://nothingtech.blog/
Description: NothingTech is a clean, fast, and modern blogging theme built for technology publications, gadget reviewers, and tech news sites. Keyword: nothing2hide. Ships with flexible layouts, custom widgets, a sticky sidebar, SEO-friendly markup, dark-mode-inspired accent colors, and full support for the block editor. Perfect for sites like nothingtech.blog covering AI, cybersecurity, gadgets, software, and how-to guides.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nothingtech
Tags: blog, news, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, technology

NothingTech is distributed under the terms of the GNU GPL v2 or later.
*/

/* =========================================================
   0. CSS VARIABLES / THEME TOKENS
========================================================= */
:root{
  --nt-bg: #0f1115;
  --nt-bg-alt: #151821;
  --nt-surface: #ffffff;
  --nt-surface-alt: #f5f7fa;
  --nt-text: #1b1e26;
  --nt-text-muted: #5c6370;
  --nt-text-inverse: #f5f7fa;
  --nt-primary: #3d8bfd;
  --nt-primary-dark: #1f5fd1;
  --nt-accent: #00d9a3;
  --nt-border: #e4e7ec;
  --nt-radius: 10px;
  --nt-shadow: 0 4px 18px rgba(15, 17, 21, 0.08);
  --nt-max-width: 1180px;
  --nt-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nt-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* =========================================================
   1. RESET / BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nt-font-body);
  color: var(--nt-text);
  background: var(--nt-surface-alt);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nt-primary); text-decoration: none; }
a:hover { color: var(--nt-primary-dark); text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; margin: 0 0 .6em; color: var(--nt-text); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }
blockquote {
  margin: 1.5em 0; padding: .8em 1.4em; border-left: 4px solid var(--nt-primary);
  background: var(--nt-surface); border-radius: 0 var(--nt-radius) var(--nt-radius) 0; font-style: italic; color: var(--nt-text-muted);
}
code, pre { font-family: var(--nt-font-mono); }
pre { background: var(--nt-bg); color: #e6e6e6; padding: 1em 1.2em; border-radius: var(--nt-radius); overflow-x: auto; }
code { background: rgba(61,139,253,.1); padding: .15em .4em; border-radius: 4px; }
hr { border: none; border-top: 1px solid var(--nt-border); margin: 2em 0; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
table th, table td { padding: .6em .8em; border: 1px solid var(--nt-border); text-align: left; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; word-wrap: normal; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--nt-primary); color: #fff; padding: .7em 1.2em; z-index: 9999; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }

/* =========================================================
   2. LAYOUT
========================================================= */
.nt-container { max-width: var(--nt-max-width); margin: 0 auto; padding: 0 24px; }
.nt-content-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 64px; }
@media (min-width: 900px) {
  .nt-content-wrap.has-sidebar { grid-template-columns: minmax(0,2.2fr) minmax(0,1fr); }
}

/* =========================================================
   3. HEADER
========================================================= */
.nt-topbar { background: var(--nt-bg); color: var(--nt-text-inverse); font-size: .85rem; }
.nt-topbar .nt-container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.nt-topbar a { color: var(--nt-text-inverse); opacity: .8; }
.nt-topbar a:hover { opacity: 1; }
.nt-topbar-tagline { opacity: .75; letter-spacing: .02em; }

.nt-header { background: var(--nt-surface); border-bottom: 1px solid var(--nt-border); position: sticky; top: 0; z-index: 500; }
.nt-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.nt-logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--nt-text); display: flex; align-items: center; gap: 10px; }
.nt-logo:hover { text-decoration: none; color: var(--nt-primary); }
.nt-logo img { max-height: 44px; width: auto; }
.nt-logo .dot { color: var(--nt-accent); }

.nt-primary-nav { display: none; }
@media (min-width: 900px) { .nt-primary-nav { display: block; } }
.nt-primary-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nt-primary-nav li { position: relative; }
.nt-primary-nav a { display: block; padding: 10px 14px; color: var(--nt-text); font-weight: 600; font-size: .95rem; border-radius: 6px; }
.nt-primary-nav a:hover { background: var(--nt-surface-alt); color: var(--nt-primary); text-decoration: none; }
.nt-primary-nav ul ul { position: absolute; top: 100%; left: 0; background: var(--nt-surface); box-shadow: var(--nt-shadow); border-radius: var(--nt-radius); min-width: 210px; padding: 6px; display: none; }
.nt-primary-nav li:hover > ul { display: block; }

.nt-header-actions { display: flex; align-items: center; gap: 12px; }
.nt-search-toggle, .nt-menu-toggle {
  background: var(--nt-surface-alt); border: 1px solid var(--nt-border); border-radius: 8px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nt-menu-toggle { display: flex; }
@media (min-width: 900px) { .nt-menu-toggle { display: none; } }

.nt-mobile-nav { display: none; background: var(--nt-surface); border-bottom: 1px solid var(--nt-border); }
.nt-mobile-nav.is-open { display: block; }
.nt-mobile-nav ul { list-style: none; margin: 0; padding: 10px 0; }
.nt-mobile-nav a { display: block; padding: 10px 24px; color: var(--nt-text); font-weight: 600; }

.nt-header-search { display: none; background: var(--nt-surface-alt); border-bottom: 1px solid var(--nt-border); }
.nt-header-search.is-open { display: block; }
.nt-header-search form { display: flex; padding: 16px 0; gap: 8px; }
.nt-header-search input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--nt-border); border-radius: 8px; font-size: 1rem; }
.nt-header-search button { padding: 0 20px; background: var(--nt-primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* =========================================================
   4. HERO / FRONT PAGE
========================================================= */
.nt-hero { background: linear-gradient(135deg, var(--nt-bg) 0%, #1c2333 100%); color: var(--nt-text-inverse); padding: 64px 0; }
.nt-hero-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .nt-hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.nt-hero-eyebrow { display: inline-block; background: rgba(61,139,253,.18); color: #8db8ff; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.nt-hero h1 { font-size: 2.6rem; margin-bottom: .4em; }
.nt-hero p.lead { font-size: 1.15rem; color: #c7cede; max-width: 46ch; }
.nt-hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.nt-btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; }
.nt-btn-primary { background: var(--nt-primary); color: #fff; }
.nt-btn-primary:hover { background: var(--nt-primary-dark); color: #fff; text-decoration: none; }
.nt-btn-outline { background: transparent; color: var(--nt-text-inverse); border: 1px solid rgba(255,255,255,.35); }
.nt-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

.nt-hero-featured { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--nt-radius); overflow: hidden; }
.nt-hero-featured img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.nt-hero-featured-body { padding: 18px 20px; }
.nt-hero-featured .nt-cat-pill { margin-bottom: 8px; }
.nt-hero-featured h3 { font-size: 1.15rem; margin-bottom: 6px; }
.nt-hero-featured h3 a { color: var(--nt-text-inverse); }
.nt-hero-featured p { color: #b7bfd1; font-size: .92rem; margin-bottom: 0; }

/* category strip on homepage */
.nt-cat-strip { background: var(--nt-surface); border-bottom: 1px solid var(--nt-border); }
.nt-cat-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 0; }
.nt-cat-strip a { display: inline-block; padding: 6px 14px; border: 1px solid var(--nt-border); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--nt-text-muted); }
.nt-cat-strip a:hover { border-color: var(--nt-primary); color: var(--nt-primary); text-decoration: none; }

.nt-section { padding: 48px 0; }
.nt-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.nt-section-head h2 { margin: 0; }
.nt-section-head a { font-weight: 700; font-size: .9rem; }

/* =========================================================
   5. POST CARDS / GRID
========================================================= */
.nt-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nt-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .nt-grid.cols-3 { grid-template-columns: repeat(3,1fr); } }

.nt-card { background: var(--nt-surface); border-radius: var(--nt-radius); overflow: hidden; box-shadow: var(--nt-shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.nt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,17,21,.12); }
.nt-card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--nt-surface-alt); }
.nt-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nt-cat-pill { display: inline-block; background: var(--nt-primary); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.nt-card-thumb .nt-cat-pill { position: absolute; top: 12px; left: 12px; }
.nt-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.nt-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.nt-card-body h3 a { color: var(--nt-text); }
.nt-card-excerpt { color: var(--nt-text-muted); font-size: .92rem; margin-bottom: 14px; flex: 1; }
.nt-card-meta { font-size: .8rem; color: var(--nt-text-muted); display: flex; align-items: center; gap: 8px; }
.nt-card-meta img.avatar { border-radius: 50%; width: 22px; height: 22px; }

.nt-post-list-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--nt-border); }
.nt-post-list-item:last-child { border-bottom: none; }
.nt-post-list-item .thumb { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--nt-surface-alt); }
.nt-post-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.nt-post-list-item h4 { font-size: .98rem; margin-bottom: 4px; }
.nt-post-list-item .nt-card-meta { font-size: .75rem; }

/* =========================================================
   6. MAIN CONTENT / SINGLE POST
========================================================= */
.nt-main { min-width: 0; }
.nt-page-title { margin-bottom: 8px; }
.nt-breadcrumbs { font-size: .85rem; color: var(--nt-text-muted); margin-bottom: 18px; }
.nt-breadcrumbs a { color: var(--nt-text-muted); }

.nt-entry { background: var(--nt-surface); border-radius: var(--nt-radius); box-shadow: var(--nt-shadow); overflow: hidden; margin-bottom: 32px; }
.nt-entry-thumb img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.nt-entry-body { padding: 30px 34px 36px; }
@media (max-width: 600px) { .nt-entry-body { padding: 22px 20px 28px; } }
.nt-entry-header .nt-cat-pill { margin-bottom: 14px; }
.nt-entry-header h1 { font-size: 2rem; }
.nt-entry-meta { display: flex; align-items: center; gap: 10px; color: var(--nt-text-muted); font-size: .88rem; margin-bottom: 26px; flex-wrap: wrap; }
.nt-entry-meta img.avatar { width: 30px; height: 30px; border-radius: 50%; }
.nt-entry-content h2 { margin-top: 1.6em; }
.nt-entry-content h3 { margin-top: 1.4em; }
.nt-entry-content img { border-radius: var(--nt-radius); margin: 1.4em 0; }
.nt-entry-content ul li, .nt-entry-content ol li { margin-bottom: .4em; }

.nt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.nt-tags a { background: var(--nt-surface-alt); color: var(--nt-text-muted); padding: 5px 12px; border-radius: 999px; font-size: .8rem; }
.nt-tags a:hover { color: var(--nt-primary); text-decoration: none; }

.nt-share { display: flex; gap: 10px; align-items: center; margin: 20px 0; }
.nt-share a { width: 36px; height: 36px; border-radius: 50%; background: var(--nt-surface-alt); display: flex; align-items: center; justify-content: center; color: var(--nt-text-muted); font-weight: 700; font-size: .8rem; }
.nt-share a:hover { background: var(--nt-primary); color: #fff; text-decoration: none; }

.nt-author-box { display: flex; gap: 16px; background: var(--nt-surface-alt); border-radius: var(--nt-radius); padding: 22px; margin: 30px 0; }
.nt-author-box img { width: 64px; height: 64px; border-radius: 50%; }
.nt-author-box h4 { margin-bottom: 4px; }
.nt-author-box p { margin: 0; color: var(--nt-text-muted); font-size: .9rem; }

.nt-post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0; }
.nt-post-nav > div { flex: 1; background: var(--nt-surface); border-radius: var(--nt-radius); padding: 16px 18px; box-shadow: var(--nt-shadow); }
.nt-post-nav .label { font-size: .75rem; color: var(--nt-text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; display: block; }
.nt-post-nav.next { text-align: right; }

.nt-related h2 { margin-bottom: 20px; }

/* =========================================================
   7. COMMENTS
========================================================= */
.nt-comments { background: var(--nt-surface); border-radius: var(--nt-radius); box-shadow: var(--nt-shadow); padding: 28px 32px; margin-bottom: 32px; }
.nt-comments ol.comment-list { list-style: none; margin: 0; padding: 0; }
.nt-comments .comment { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--nt-border); }
.nt-comments .comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nt-comments .comment-author img { border-radius: 50%; }
.nt-comments .comment-meta { font-size: .8rem; color: var(--nt-text-muted); }
.nt-comments .children { list-style: none; margin-left: 30px; padding: 0; }
.comment-form p { margin-bottom: 14px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--nt-border); border-radius: 8px; font-family: inherit; font-size: 1rem;
}
.comment-form textarea { min-height: 120px; }
.comment-form .form-submit input { background: var(--nt-primary); color: #fff; border: none; padding: 12px 26px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* =========================================================
   8. SIDEBAR / WIDGETS
========================================================= */
.nt-sidebar .widget { background: var(--nt-surface); border-radius: var(--nt-radius); box-shadow: var(--nt-shadow); padding: 22px; margin-bottom: 26px; }
.nt-sidebar .widget-title { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--nt-primary); display: inline-block; }
.nt-sidebar ul { list-style: none; margin: 0; padding: 0; }
.nt-sidebar .widget_categories li, .nt-sidebar .widget_archive li, .nt-sidebar .widget_meta li, .nt-sidebar .widget_pages li, .nt-sidebar .widget_recent_entries li {
  display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--nt-border); font-size: .92rem;
}
.nt-sidebar .widget_categories li:last-child, .nt-sidebar .widget_archive li:last-child { border-bottom: none; }
.nt-newsletter-widget p { font-size: .88rem; color: var(--nt-text-muted); }
.nt-newsletter-widget input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid var(--nt-border); border-radius: 8px; margin-bottom: 10px; }
.nt-newsletter-widget button { width: 100%; padding: 10px; background: var(--nt-primary); color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.nt-tagcloud a { display: inline-block; margin: 3px; padding: 5px 12px; background: var(--nt-surface-alt); border-radius: 999px; font-size: .8rem !important; color: var(--nt-text-muted); }

/* =========================================================
   9. PAGINATION
========================================================= */
.nt-pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0 0; flex-wrap: wrap; }
.nt-pagination a, .nt-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; background: var(--nt-surface); box-shadow: var(--nt-shadow); font-weight: 600; }
.nt-pagination .current { background: var(--nt-primary); color: #fff; }
.nt-pagination a:hover { color: var(--nt-primary); text-decoration: none; }

/* =========================================================
   10. FOOTER
========================================================= */
.nt-footer { background: var(--nt-bg); color: #c7cede; padding: 56px 0 0; margin-top: 40px; }
.nt-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 780px) { .nt-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.nt-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.nt-footer p { color: #97a0b5; font-size: .92rem; }
.nt-footer ul { list-style: none; margin: 0; padding: 0; }
.nt-footer li { margin-bottom: 10px; }
.nt-footer a { color: #c7cede; font-size: .92rem; }
.nt-footer a:hover { color: #fff; text-decoration: none; }
.nt-footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 14px; display: inline-block; }
.nt-social-row { display: flex; gap: 10px; margin-top: 16px; }
.nt-social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.nt-social-row a:hover { background: var(--nt-primary); }
.nt-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .82rem; color: #8892a6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.nt-footer-bottom a { color: #8892a6; }
.nt-footer-bottom a:hover { color: #fff; }

/* =========================================================
   11. UTILITIES / MISC
========================================================= */
.nt-alignwide { max-width: 1180px; }
.nt-alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.wp-block-quote { border-left: 4px solid var(--nt-primary); padding-left: 1em; }
.nt-search-no-results { background: var(--nt-surface); border-radius: var(--nt-radius); padding: 40px; text-align: center; box-shadow: var(--nt-shadow); }
.nt-404 { text-align: center; padding: 80px 0; }
.nt-404 h1 { font-size: 5rem; color: var(--nt-primary); margin-bottom: 0; }
.nt-cta-box { background: linear-gradient(135deg,var(--nt-primary),var(--nt-primary-dark)); color: #fff; border-radius: var(--nt-radius); padding: 40px; text-align: center; margin: 40px 0; }
.nt-cta-box h2 { color: #fff; }
.nt-cta-box .nt-btn-outline { border-color: rgba(255,255,255,.6); }
.page-content .nt-page-hero { background: var(--nt-surface); border-radius: var(--nt-radius); padding: 40px; margin-bottom: 30px; box-shadow: var(--nt-shadow); }

.sticky { border: 2px solid var(--nt-primary); }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
