/*
Theme Name: Technormies
Theme URI: https://technormies.com
Author: Technormies
Description: Custom dark Linear-style theme untuk technormies.com — Tech & Gaming blog. Ringan, tanpa builder, aksesibel.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: technormies
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg: #08090a;
  --panel: #0f1011;
  --surface: #191a1b;
  --surface2: #28282c;
  --text: #f7f8f8;
  --text2: #d0d6e0;
  --text3: #8a8f98;
  --text4: #62666d;
  --brand: #5e6ad2;
  --accent: #7170ff;
  --accent-hover: #828fff;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --green: #10b981;
  --radius: 8px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text2);
  font-family: var(--font-sans);
  font-feature-settings: 'cv01', 'ss03';
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-weight: 590; color: var(--text); letter-spacing: -0.3px; line-height: 1.25; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { background: var(--panel); border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .site-title { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.site-branding .site-title a { color: var(--text); }
.site-branding .site-title a:hover { color: var(--accent-hover); }
.site-branding .site-description { display: none; }

/* NAV */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; gap: 4px; list-style: none; align-items: center; }
.main-navigation a { display: block; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--text2); border-radius: 6px; }
.main-navigation a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.main-navigation .current-menu-item > a { color: var(--accent); }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text2); font-size: 13px; font-weight: 500; padding: 8px 14px; cursor: pointer;
}
.menu-toggle:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.14); }
.menu-toggle .close { display: none; }
.menu-toggle[aria-expanded="true"] .open { display: none; }
.menu-toggle[aria-expanded="true"] .close { display: inline; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation { position: absolute; top: 60px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--border); display: none; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .main-navigation a { padding: 12px; }
}

/* ============================================================
   HERO (front page)
   ============================================================ */
.tn-hero { text-align: center; padding: 80px 24px 56px; background: radial-gradient(600px 300px at 50% -60px, rgba(113, 112, 255, 0.10), transparent 70%); }
.tn-hero .tn-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text2); border: 1px solid var(--border); border-radius: 9999px; padding: 5px 12px; background: rgba(255, 255, 255, 0.02); margin-bottom: 24px; }
.tn-hero .tn-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tn-hero h1 { font-size: 44px; letter-spacing: -1.2px; line-height: 1.05; max-width: 720px; margin: 0 auto 20px; }
.tn-hero p { font-size: 17px; color: var(--text3); max-width: 520px; margin: 0 auto 32px; }
.tn-hero .tn-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tn-btn { font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 6px; display: inline-block; }
.tn-btn-primary { background: var(--brand); color: #fff; }
.tn-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.tn-btn-ghost { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); color: var(--text2); }
.tn-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.14); color: var(--text); }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-content { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.content-area { min-width: 0; }
.widget-area { min-width: 0; }
@media (max-width: 960px) { .site-content { grid-template-columns: 1fr; } }

/* ============================================================
   POST CARDS
   ============================================================ */
.post-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; transition: border-color .15s ease, background .15s ease; }
.post-card:hover { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); }
.post-card .entry-title { font-size: 18px; letter-spacing: -0.24px; margin-bottom: 10px; }
.post-card .entry-title a { color: var(--text); }
.post-card .entry-title a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.entry-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text4); margin-bottom: 12px; }
.entry-meta a { color: var(--text4); }
.entry-meta a:hover { color: var(--text2); }
.cat-links { display: inline-block; font-size: 11px; font-weight: 500; color: var(--text2); border: 1px solid #23252a; border-radius: 9999px; padding: 3px 10px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.cat-links a { color: var(--text2); }
.entry-summary { color: var(--text3); font-size: 14px; margin-bottom: 14px; }
.read-more { display: inline-block; font-size: 13px; font-weight: 500; color: var(--accent); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; }
.read-more:hover { color: var(--accent-hover); border-color: rgba(255, 255, 255, 0.14); }

/* single / page */
.entry-content { font-size: 16px; color: var(--text2); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 24px; margin: 1.4em 0 0.6em; }
.entry-content h3 { font-size: 19px; margin: 1.3em 0 0.5em; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-caption { max-width: 100%; }
.single .post-card, .page .post-card { padding: 32px; }
.single .entry-title, .page .entry-title { font-size: 32px; letter-spacing: -0.8px; margin-bottom: 14px; }

/* archive header */
.page-header { margin-bottom: 24px; }
.page-header .page-title { font-size: 24px; letter-spacing: -0.6px; }
.archive-description { color: var(--text3); font-size: 14px; margin-top: 6px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-numbers { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); color: var(--text2); padding: 7px 13px; border-radius: 6px; font-size: 13px; }
.pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .page-numbers:hover { border-color: rgba(255, 255, 255, 0.14); color: var(--text); }
.post-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 14px; }
.post-navigation a { color: var(--text2); }
.post-navigation a:hover { color: var(--accent); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget { background: var(--panel); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.widget-title { font-size: 13px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; margin-bottom: 12px; }
.widget ul { list-style: none; }
.widget ul li { margin-bottom: 8px; }
.widget ul li a { color: var(--text3); font-size: 14px; }
.widget ul li a:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--panel); border-top: 1px solid var(--border-subtle); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.site-footer .copyright { font-family: var(--font-mono); font-size: 12px; color: var(--text4); }
.site-footer .footer-links { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 12px; }
.site-footer .footer-links a { color: var(--text4); }
.site-footer .footer-links a:hover { color: var(--text2); }

/* ============================================================
   FORMS / BUTTONS / CODE / TABLE / QUOTE
   ============================================================ */
button, input[type="submit"], .wp-block-button__link { font-family: var(--font-sans); font-size: 13px; font-weight: 500; background: var(--brand); color: #fff; border: none; border-radius: 6px; padding: 10px 16px; cursor: pointer; transition: background .15s ease; }
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--accent-hover); color: #fff; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], textarea, select {
  background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 9px 12px; font-family: var(--font-sans); width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(113, 112, 255, 0.2); }
pre, code { background: var(--panel); border: 1px solid var(--border); color: var(--text2); font-family: var(--font-mono); border-radius: 6px; }
pre { padding: 16px; overflow-x: auto; }
code { padding: 2px 6px; }
table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: 100%; margin-bottom: 1.2em; }
th { background: var(--panel); color: var(--text2); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; }
th, td { border: 1px solid var(--border); padding: 10px 12px; }
blockquote { border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0; padding: 16px 20px; color: var(--text3); margin: 1.2em 0; }
blockquote p { margin-bottom: 0; }

/* search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; }
.search-form button { flex-shrink: 0; }

/* comments */
.comments-area { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.comments-title { font-size: 18px; margin-bottom: 16px; }
.comment-list { list-style: none; margin-bottom: 24px; }
.comment-list .comment { padding: 16px; border: 1px solid var(--border-subtle); border-radius: 8px; margin-bottom: 12px; }
.comment-list .comment-body p { margin: 8px 0 0; font-size: 14px; color: var(--text2); }
.comment-list .comment-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text4); }
.comment-form label { display: block; font-size: 13px; color: var(--text3); margin: 12px 0 4px; }
.comment-form input[type="submit"] { margin-top: 16px; }

/* ============================================================
   MISC
   ============================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .post-card, button, input[type="submit"], .wp-block-button__link { transition: none; } }
@media (max-width: 768px) { .tn-hero h1 { font-size: 30px; letter-spacing: -0.8px; } .tn-hero { padding: 48px 16px 32px; } }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.home-help {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(113, 112, 255, 0.08), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.home-help h2 { font-size: 22px; letter-spacing: -0.6px; margin-bottom: 8px; }
.home-help p { color: var(--text3); font-size: 14px; margin-bottom: 20px; }
