/*
Theme Name: NoveGaming
Theme URI: https://novegaming.es
Author: NoveGaming
Author URI: https://novegaming.es
Description: Tema gaming para blog de hardware, periféricos y videojuegos
Version: 1.7
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Tags: blog, gaming, technology, dark, custom-menu, featured-images, threaded-comments
Text Domain: novegaming
*/

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@700;800&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --accent: #00f5a0;
  --accent2: #00c8ff;
  --text: #e8e8f0;
  --muted: #6a6a8a;
  --border: #1e1e2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ========================
   TOPBAR
   ======================== */
#novegaming-topbar {
  background: #07070d;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  overflow: hidden;
}
#novegaming-topbar .tb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
#novegaming-topbar .tb-tag {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  flex-shrink: 0;
}
#novegaming-topbar .tb-links {
  display: flex;
  gap: 16px;
  overflow: hidden;
}
#novegaming-topbar .tb-links a {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  transition: color .2s;
}
#novegaming-topbar .tb-links a:hover { color: var(--accent); }

/* ========================
   HEADER
   ======================== */
#masthead {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ng-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* Logo */
.ng-logo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.ng-logo .ng-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}
.ng-logo .ng-name span { color: var(--accent); }
.ng-logo .ng-desc {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Nav */
.ng-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ng-nav ul li a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 12px;
  color: var(--muted);
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .2s;
  display: block;
}
.ng-nav ul li a:hover,
.ng-nav ul li.current-menu-item > a,
.ng-nav ul li.current_page_item > a {
  color: var(--accent);
  border-color: rgba(0,245,160,.3);
  background: rgba(0,245,160,.08);
}

/* Search */
.ng-search .search-form {
  display: flex;
  gap: 0;
}
.ng-search .search-field {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  padding: 7px 12px;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  width: 160px;
  transition: border-color .2s;
}
.ng-search .search-field:focus {
  border-color: var(--accent);
  outline: none;
}
.ng-search .search-submit {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 7px 12px;
  border-radius: 0 4px 4px 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity .2s;
}
.ng-search .search-submit:hover { opacity: .85; }

/* ========================
   LAYOUT
   ======================== */
.ng-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  overflow-x: hidden;
}

/* Section title */
.ng-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.ng-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.ng-section-title h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* ========================
   FEATURED POST
   ======================== */
.ng-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  transition: border-color .3s;
}
.ng-featured:hover { border-color: var(--accent); }
.ng-featured .ng-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ng-featured .ng-no-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0d2035 0%, #071a12 50%, #100d1e 100%);
  position: relative;
  overflow: hidden;
}
.ng-featured .ng-no-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0,245,160,.03) 40px, rgba(0,245,160,.03) 80px);
}
.ng-featured-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ng-featured .ng-body { padding: 24px; }
.ng-featured .ng-cat a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}
.ng-featured .ng-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.ng-featured .ng-title a { color: #fff; transition: color .2s; }
.ng-featured .ng-title a:hover { color: var(--accent); }
.ng-featured .ng-excerpt { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.ng-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.ng-meta .ng-author { color: rgba(255,255,255,.6); font-weight: 500; }

/* ========================
   POSTS GRID
   ======================== */
.ng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.ng-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all .3s;
}
.ng-card:hover {
  border-color: rgba(0,245,160,.35);
  transform: translateY(-2px);
}
.ng-card .ng-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.ng-card:hover .ng-thumb img { transform: scale(1.03); }
.ng-card .ng-no-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0d1f35, #071510);
  position: relative;
  overflow: hidden;
}
.ng-card .ng-no-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 25px, rgba(0,245,160,.025) 25px, rgba(0,245,160,.025) 50px);
}
.ng-card .ng-body { padding: 16px; }
.ng-card .ng-cat a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 6px;
}
.ng-card .ng-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.ng-card .ng-title a { color: #fff; transition: color .2s; }
.ng-card .ng-title a:hover { color: var(--accent); }
.ng-card .ng-excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================
   SINGLE POST
   ======================== */
.ng-single-header { margin-bottom: 32px; }
.ng-single-header .ng-cat a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}
.ng-single-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.ng-single-thumb {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 720px;
}
.ng-single-thumb img {
  width: 100%;
  aspect-ratio: 16/9 !important;
  object-fit: cover !important;
  display: block;
  height: auto !important;
  max-height: unset !important;
}
body.featured-image-large .ng-single-thumb img {
  max-height: unset !important;
  aspect-ratio: 16/9 !important;
  object-fit: cover !important;
}
.ng-content {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  max-width: 720px;
}
.ng-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 2em 0 .6em;
}
.ng-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin: 1.6em 0 .5em;
}
.ng-content p { margin-bottom: 1.2em; }
.ng-content a { color: var(--accent); border-bottom: 1px solid rgba(0,245,160,.3); transition: border-color .2s; }
.ng-content a:hover { border-color: var(--accent); }
.ng-content strong { color: #fff; }
.ng-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  color: var(--muted);
  font-style: italic;
  margin: 1.5em 0;
}
.ng-content ul, .ng-content ol { padding-left: 20px; margin-bottom: 1.2em; }
.ng-content li { margin-bottom: 6px; }
.ng-content code {
  background: var(--surface2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}
.ng-content img { border-radius: 6px; margin: 1em 0; }

/* Tags */
.ng-tags { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.ng-tags a {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all .2s;
}
.ng-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* ========================
   PAGINATION
   ======================== */
.ng-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.ng-pagination .page-numbers {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  display: inline-block;
}
.ng-pagination .page-numbers:hover,
.ng-pagination .page-numbers.current {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,245,160,.08);
}

/* ========================
   SIDEBAR / WIDGETS
   ======================== */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); transition: color .2s; }
.widget ul li a:hover { color: var(--accent); }

/* ========================
   COMMENTS
   ======================== */
#comments { margin-top: 48px; }
.comments-title, .comment-reply-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.comment-list { list-style: none; padding: 0; }
.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.comment-author .fn { color: var(--accent); font-weight: 600; }
.comment-metadata a { color: var(--muted); font-size: 12px; }
.comment-content p { color: var(--text); font-size: 14px; margin-top: 8px; }
.comment-form label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  display: block;
  margin-bottom: 6px;
  margin-top: 16px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  width: 100%;
  transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form-submit input[type="submit"] {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity .2s;
}
.form-submit input[type="submit"]:hover { opacity: .85; }

/* ========================
   FOOTER
   ======================== */
#colophon {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 0;
}
.ng-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.ng-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 20px;
}
.ng-footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.ng-footer-logo span { color: var(--accent); }
.ng-footer-tagline { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ng-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.ng-socials a {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all .2s;
  text-transform: uppercase;
}
.ng-socials a:hover { border-color: var(--accent); color: var(--accent); }
.ng-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.ng-footer-bottom a { color: var(--muted); transition: color .2s; }
.ng-footer-bottom a:hover { color: var(--accent); }
.ng-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .ng-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ng-grid { grid-template-columns: 1fr; }
  .ng-header-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 10px; }
  .ng-nav ul { flex-wrap: wrap; }
  .ng-featured .ng-title { font-size: 22px; }
  .ng-single-title { font-size: 26px; }
  .ng-footer-top { flex-direction: column; }
  .ng-search .search-field { width: 120px; }
}

/* ========================
   MÁS LEÍDOS
   ======================== */
.ng-most-read {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 24px !important;
  width: 100% !important;
  overflow: hidden !important;
}
.ng-mr-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border);
  min-width: 0 !important;
  overflow: hidden !important;
}
.ng-mr-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #3a3a52;
  flex-shrink: 0 !important;
  width: 22px !important;
}
.ng-mr-thumb {
  display: block !important;
  flex-shrink: 0 !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
.ng-mr-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.ng-mr-body {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.ng-mr-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px !important;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 2px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color .2s;
  max-width: 100% !important;
}
.ng-mr-item:hover .ng-mr-body h3 { color: var(--accent); }
.ng-mr-meta {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .ng-most-read { grid-template-columns: 1fr !important; }
}
.ng-most-read .wpp-shortcode,
.ng-most-read .wpp-shortcode-placeholder {
  display: none !important;
}