/*
Theme Name: NullBlog Hacker
Theme URI: https://unix3r.com
Author: Ahmad Naamna (ahmad@naamna.com)
Description: Minimal dark hacker-style WordPress theme
Version: 1.0
Text Domain: nullblog-hacker
*/

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card: #141414;
  --line: #232323;
  --text: #d7d7d7;
  --muted: #8b8b8b;
  --accent: #00ff9c;
  --accent-soft: rgba(0, 255, 156, 0.08);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  margin-top: 0 !important;
}

body {
  background:
    radial-gradient(circle at top right, rgba(0,255,156,0.06), transparent 20%),
    radial-gradient(circle at bottom left, rgba(0,255,156,0.04), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

body.admin-bar .site-navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-navbar {
    top: 46px;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: #7affc8;
}

.site-container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  font-family: 'Fira Code', monospace;
  color: var(--accent) !important;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text) !important;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  text-transform: lowercase;
  display: inline-block;
}

.nav-link:hover,
.current-menu-item > a {
  color: var(--accent) !important;
}

.hero {
  padding: 90px 0 50px;
  border-bottom: 1px solid var(--line);
}

.hero-tag {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0,255,156,0.15);
  padding: 6px 10px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Fira Code', monospace;
  font-size: 3.4rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.terminal-box {
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border: 1px solid var(--line);
  padding: 18px;
  margin-top: 28px;
  font-family: 'Fira Code', monospace;
  color: var(--accent);
  box-shadow: 0 0 30px rgba(0,255,156,0.05);
}

.terminal-top {
  margin-bottom: 12px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-url {
  color: #ffffff;
}

.section-title {
  font-family: 'Fira Code', monospace;
  color: var(--white);
  font-size: 1.2rem;
  margin: 0 0 25px;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: ">";
  color: var(--accent);
  margin-right: 10px;
}

.main-content {
  padding: 55px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 370px);
  gap: 28px;
  align-items: start;
}

.content-area,
.sidebar-area {
  min-width: 0;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  transition: 0.25s ease;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,156,0.35);
  box-shadow: 0 0 30px rgba(0,255,156,0.06);
}

.post-card img,
.post-card .wp-post-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: grayscale(20%) contrast(105%);
  display: block;
}

.post-body {
  padding: 22px;
}

.post-meta {
  font-family: 'Fira Code', monospace;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 12px;
}

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

.post-title,
.post-title a {
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.post-excerpt {
  color: #aaaaaa;
  line-height: 1.8;
  margin-bottom: 14px;
}

.read-more {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--accent);
}

.widget {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 18px;
}

.widget-title::before {
  content: "# ";
  color: var(--accent);
}

.search-group {
  display: flex;
  gap: 10px;
}

.search-box {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.search-box:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.btn-hacker {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-hacker:hover {
  background: var(--accent);
  color: #000;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  list-style: none;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.list-clean li:last-child {
  border-bottom: none;
}

.list-clean a {
  color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  margin: 5px 5px 0 0;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sidebar-text {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.pagination-wrap {
  margin-top: 20px;
}

.pagination-wrap .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Fira Code', monospace;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.typing::after {
  content: "_";
  animation: blink 1s infinite;
  color: var(--accent);
  margin-left: 4px;
}

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

.screen-reader-text {
  display: none !important;
}

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

.widget li {
  list-style: none;
}

.widget_recent_comments a,
.widget_archive a,
.widget_categories a,
.widget_recent_entries a {
  color: var(--accent);
}

.post-card-horizontal {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: stretch;
}

.post-thumb-left {
  display: block;
  height: 100%;
  min-height: 100%;
}

.post-card-horizontal img,
.post-card-horizontal .wp-post-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.post-card-horizontal .post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-header {
  margin-bottom: 24px;
}

.archive-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.25;
}

.archive-description {
  margin-top: 14px;
}

.single-post-card .post-title,
.single-post-title {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 18px;
}

.post-tags-wrap {
  margin: 0 0 22px;
}

.single-content {
  color: var(--text);
  line-height: 1.9;
  font-size: 1rem;
}

.single-content::after {
  content: "";
  display: block;
  clear: both;
}

.single-content p,
.single-content ul,
.single-content ol,
.single-content blockquote,
.single-content pre,
.single-content table {
  margin: 0 0 18px;
}

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  font-family: 'Fira Code', monospace;
  color: var(--white);
  margin: 28px 0 14px;
  line-height: 1.3;
}

.single-content h1 { font-size: 2rem; }
.single-content h2 { font-size: 1.7rem; }
.single-content h3 { font-size: 1.45rem; }
.single-content h4 { font-size: 1.2rem; }

.single-content a {
  color: var(--accent);
  text-decoration: none;
}

.single-content strong {
  color: var(--white);
}

.single-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.single-content .wp-caption {
  max-width: 100%;
}

.single-content pre,
.single-content code {
  font-family: 'Fira Code', monospace;
}

.single-content pre {
  background: #0d0d0d;
  border: 1px solid var(--line);
  padding: 16px;
  overflow-x: auto;
  color: var(--accent);
}

.single-content code {
  background: #101010;
  border: 1px solid var(--line);
  padding: 2px 6px;
  color: var(--accent);
}

.single-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.single-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin-left: 0;
  background: rgba(0, 255, 156, 0.04);
  color: var(--muted);
}

.single-content ul,
.single-content ol {
  padding-left: 22px;
}

.single-content li {
  margin-bottom: 8px;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
}

.single-content th,
.single-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.post-navigation-wrap {
  margin-top: 24px;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}

.post-navigation a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  color: var(--text);
}

.post-navigation a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,255,156,0.05);
}

.post-navigation .nav-subtitle {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: lowercase;
}

.post-navigation .nav-title {
  display: block;
  color: var(--white);
  line-height: 1.5;
}

.comments-wrap {
  margin-top: 24px;
}

.comments-wrap .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comments-wrap .comment {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comments-wrap .comment-meta,
.comments-wrap .comment-metadata {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.comments-wrap .comment-content {
  color: var(--text);
  line-height: 1.8;
}

.comments-wrap input[type="text"],
.comments-wrap input[type="email"],
.comments-wrap input[type="url"],
.comments-wrap textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.comments-wrap input:focus,
.comments-wrap textarea:focus {
  border-color: var(--accent);
}

.comments-wrap input[type="submit"],
.comments-wrap .submit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  padding: 10px 16px;
  cursor: pointer;
}

.comments-wrap input[type="submit"]:hover,
.comments-wrap .submit:hover {
  background: var(--accent);
  color: #000;
}

@media (max-width: 991px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 14px;
  }

  .post-card img,
  .post-card .wp-post-image {
    height: 200px;
  }

  .post-card-horizontal {
    grid-template-columns: 1fr;
  }

  .post-card-horizontal img,
  .post-card-horizontal .wp-post-image {
    height: 220px;
    min-height: 220px;
  }

  .archive-title {
    font-size: 1.6rem;
  }

  .single-post-card .post-title,
  .single-post-title {
    font-size: 1.8rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }
}

.widget p,
.widget div,
.widget span,
.widget strong,
.widget label {
  color: var(--text);
}

.widget select,
.widget input[type="text"],
.widget input[type="search"],
.widget input[type="email"],
.widget input[type="url"],
.widget input[type="password"],
.widget textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.widget select:focus,
.widget input[type="text"]:focus,
.widget input[type="search"]:focus,
.widget input[type="email"]:focus,
.widget input[type="url"]:focus,
.widget input[type="password"]:focus,
.widget textarea:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.widget button,
.widget input[type="submit"],
.widget .button,
.wp-block-search__button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  padding: 10px 16px;
  cursor: pointer;
}

.widget button:hover,
.widget input[type="submit"]:hover,
.widget .button:hover,
.wp-block-search__button:hover {
  background: var(--accent);
  color: #000;
}

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

.widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.widget a {
  color: var(--accent);
}

.widget .wp-block-tag-cloud a,
.widget .tagcloud a {
  display: inline-block;
  padding: 6px 10px;
  margin: 5px 5px 0 0;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem !important;
  line-height: 1.2;
}

.widget .wp-block-tag-cloud a:hover,
.widget .tagcloud a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.widget .wp-block-search__inside-wrapper {
  display: flex;
  gap: 10px;
}

.widget .wp-block-search__input {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
}

.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td,
.wp-block-calendar th,
.wp-block-calendar td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: center;
  color: var(--text);
}

.widget_calendar caption,
.wp-block-calendar caption {
  color: var(--white);
  margin-bottom: 10px;
  font-family: 'Fira Code', monospace;
}

.widget_recent_comments li,
.widget_recent_entries li,
.widget_categories li,
.widget_archive li,
.widget_meta li,
.widget_pages li,
.widget_nav_menu li,
.widget_block li {
  color: var(--muted);
}

.page-card {
  overflow: hidden;
}

.page-featured-image img,
.page-featured-image .wp-post-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.page-template-custom .post-meta {
  margin-bottom: 10px;
}

.page-template-custom .single-post-title {
  margin-bottom: 22px;
}

.page-content {
  font-size: 1rem;
  line-height: 1.9;
}

.page-content > *:last-child {
  margin-bottom: 0;
}

/* ===== Contact Form 7 - Unix3r Hacker Style ===== */

.wpcf7 {
  width: 100%;
}

.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs + textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--muted);
}

/* Focus state */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0,255,156,0.15);
}

/* Textarea */
.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

/* Labels */
.wpcf7 label {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

/* Submit button */
.wpcf7 input[type="submit"],
.wpcf7 button {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover {
  background: var(--accent);
  color: #000;
}

/* Loading spinner */
.wpcf7-spinner {
  margin-left: 10px;
}

/* Validation errors */
.wpcf7-not-valid {
  border-color: #ff5f56 !important;
}

.wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: #ff5f56;
  margin-top: 4px;
  font-family: 'Fira Code', monospace;
}

/* Response messages */
.wpcf7-response-output {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
}

/* Success */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,255,156,0.05);
}

/* Error */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #ff5f56;
  color: #ff5f56;
  background: rgba(255,95,86,0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Force previous / next side by side on single post */
.post-navigation-wrap {
  width: 100%;
}

.post-navigation {
  display: flex !important;
  gap: 18px;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}

.post-navigation .nav-links {
  display: flex !important;
  gap: 18px;
  width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: block;
  width: 100%;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  color: var(--text);
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,255,156,0.05);
}

.post-navigation .nav-subtitle {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: lowercase;
}

.post-navigation .nav-title {
  display: block;
  color: var(--white);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .post-navigation,
  .post-navigation .nav-links {
    flex-direction: column !important;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    width: 100%;
    flex: 1 1 100%;
  }
}
