/*!
 * Theme Name: Hacktrends
 * Theme URI: https://hacktrends.com.br
 * Description: Dark Professional Intelligence Portal for Offensive Security Vulnerabilities
 * Version: 1.0.0
 * Author: HunterPl4nk
 * Author URI: https://mindigital.net.br
 * Template: neve
 * Requires PHP: 7.4
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: hacktrends
 * Domain Path: /languages
 */

/* ============================================================================
   CUSTOM PROPERTIES / COLOR SYSTEM
   ============================================================================ */

:root {
  --ht-dark-bg: #0F0F0F;
  --ht-dark-card: #1a1a1a;
  --ht-primary-orange: #FF6B35;
  --ht-primary-cyan: #00D4FF;
  --ht-critical-red: #E74C3C;
  --ht-high-amber: #F39C12;
  --ht-success-green: #27AE60;
  --ht-info-purple: #9B59B6;
  --ht-border-dark: #2a2a2a;
  --ht-text-primary: #FFFFFF;
  --ht-text-secondary: #AAAAAA;
  --ht-text-muted: #888888;
  --ht-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   BASE STYLES - DARK MODE ONLY
   ============================================================================ */

html {
  background-color: var(--ht-dark-bg);
  color: var(--ht-text-primary);
}

body {
  background-color: var(--ht-dark-bg);
  color: var(--ht-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--ht-primary-cyan);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--ht-text-primary);
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ht-primary-orange);
  font-size: 0.875rem;
  font-weight: 700;
}

p {
  font-size: 0.9375rem;
  color: var(--ht-text-secondary);
  line-height: 1.7;
}

code, pre {
  background-color: var(--ht-dark-card);
  color: var(--ht-primary-cyan);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  border-left: 3px solid var(--ht-primary-orange);
}

code {
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

pre {
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

/* ============================================================================
   LAYOUT & CONTAINER
   ============================================================================ */

.site-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* ============================================================================
   HEADER STYLES
   ============================================================================ */

.site-header {
  background-color: var(--ht-dark-bg);
  border-bottom: 1px solid var(--ht-primary-orange);
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.site-logo-wrapper .site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ht-text-primary);
  margin: 0;
  letter-spacing: 2px;
}

.site-logo-wrapper .site-tagline {
  font-size: 11px;
  color: var(--ht-primary-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.site-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  max-width: 100%;
}

.site-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(360px, 72vw);
  object-fit: contain;
  object-position: left center;
  overflow: visible;
  image-rendering: auto;
}

@media (max-width: 768px) {
  .site-logo-img {
    height: 40px;
    max-width: min(280px, 78vw);
  }
}

@media (max-width: 480px) {
  .site-logo-img {
    height: 36px;
    max-width: min(260px, 82vw);
  }
}

.site-navigation {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

.site-navigation a {
  color: var(--ht-text-secondary);
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.site-navigation a:hover,
.site-navigation a.current {
  color: var(--ht-primary-orange);
  border-bottom: 2px solid var(--ht-primary-orange);
}

.cta-button {
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg);
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: var(--ht-primary-cyan);
  color: var(--ht-dark-bg);
  transform: translateY(-2px);
}

/* ============================================================================
   HERO / STATS SECTION
   ============================================================================ */

.hero-section {
  background: linear-gradient(135deg, #1a0f0f 0%, var(--ht-dark-bg) 100%);
  border-bottom: 1px solid var(--ht-primary-orange);
  padding: 30px 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.stat-number.critical {
  color: var(--ht-critical-red);
}

.stat-number.orange {
  color: var(--ht-primary-orange);
}

.stat-number.cyan {
  color: var(--ht-primary-cyan);
}

.stat-number.green {
  color: var(--ht-success-green);
}

.stat-label {
  font-size: 12px;
  color: var(--ht-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================================
   MAIN CONTENT LAYOUT (Grid with Sidebar)
   ============================================================================ */

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
  }
}

/* ============================================================================
   VULNERABILITIES TABLE
   ============================================================================ */

.vuln-table {
  background-color: var(--ht-dark-card);
  border: 1px solid var(--ht-primary-orange);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--ht-shadow);
}

.vuln-table-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ht-primary-orange);
  font-weight: 600;
  color: var(--ht-text-primary);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vuln-table-header .updated-label {
  font-size: 12px;
  color: var(--ht-text-muted);
}

.vuln-row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ht-border-dark);
  display: grid;
  grid-template-columns: 120px 1fr 100px 120px 100px;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.vuln-row:last-child {
  border-bottom: none;
}

.vuln-row:hover {
  background-color: rgba(255, 107, 53, 0.05);
}

.vuln-cve-tag {
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  display: inline-block;
}

.vuln-cve-tag.cyan {
  background-color: var(--ht-primary-cyan);
}

.vuln-cve-tag.green {
  background-color: var(--ht-success-green);
  color: var(--ht-text-primary);
}

.vuln-cve-tag.purple {
  background-color: var(--ht-info-purple);
  color: var(--ht-text-primary);
}

.vuln-title {
  font-weight: 600;
  color: var(--ht-text-primary);
  margin-bottom: 4px;
}

.vuln-subtitle {
  color: var(--ht-text-muted);
  font-size: 11px;
}

.vuln-score {
  text-align: center;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.vuln-score.critical {
  background-color: var(--ht-critical-red);
  color: var(--ht-text-primary);
}

.vuln-score.high {
  background-color: var(--ht-high-amber);
  color: var(--ht-dark-bg);
}

.vuln-score.medium {
  background-color: #3498DB;
  color: var(--ht-text-primary);
}

.vuln-type {
  text-align: center;
  color: var(--ht-primary-cyan);
  font-weight: 600;
}

.vuln-action {
  text-align: center;
}

.vuln-action button {
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vuln-action button:hover {
  background-color: var(--ht-primary-cyan);
  transform: translateY(-2px);
}

/* ============================================================================
   CARDS GRID
   ============================================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

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

.card {
  background-color: var(--ht-dark-card);
  border: 1px solid var(--ht-primary-orange);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ht-shadow);
  border-color: var(--ht-primary-cyan);
}

.card.cyan {
  border-color: var(--ht-primary-cyan);
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.card-tag {
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.card-tag.cyan {
  background-color: var(--ht-primary-cyan);
}

.card-tag.green {
  background-color: var(--ht-success-green);
  color: var(--ht-text-primary);
}

.card-date {
  font-size: 11px;
  color: var(--ht-text-muted);
  white-space: nowrap;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ht-text-primary);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.card-description {
  font-size: 12px;
  color: var(--ht-text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tag-small {
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.card-tag-small.cyan {
  background-color: var(--ht-primary-cyan);
}

.card-tag-small.lock {
  background-color: var(--ht-primary-orange);
  opacity: 0.7;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background-color: var(--ht-dark-card);
  border: 1px solid var(--ht-primary-orange);
  border-radius: 8px;
  padding: 16px;
}

.sidebar-widget.no-border {
  border: none;
}

.sidebar-search {
  background-color: var(--ht-dark-card);
  border: 1px solid var(--ht-primary-orange);
  border-radius: 8px;
  padding: 12px;
}

.sidebar-search input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ht-text-primary);
  font-size: 13px;
  outline: none;
}

.sidebar-search input::placeholder {
  color: var(--ht-text-muted);
}

.sidebar-widget-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ht-primary-orange);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.sidebar-list label {
  cursor: pointer;
  display: flex;
  gap: 8px;
  color: var(--ht-text-primary);
  align-items: center;
  transition: color 0.2s ease;
}

.sidebar-list label:hover {
  color: var(--ht-primary-orange);
}

.sidebar-list input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--ht-primary-orange);
  width: 16px;
  height: 16px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.trending-item {
  color: var(--ht-text-primary);
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--ht-border-dark);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item:hover {
  color: var(--ht-primary-orange);
}

/* ============================================================================
   MEMBERSHIP CTA
   ============================================================================ */

.membership-cta {
  background: linear-gradient(135deg, var(--ht-primary-orange) 0%, var(--ht-critical-red) 100%);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--ht-primary-orange);
  box-shadow: var(--ht-shadow);
}

.membership-cta-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ht-dark-bg);
  margin: 0 0 4px 0;
}

.membership-cta-subtitle {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.8);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.membership-cta-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ht-dark-bg);
  margin-bottom: 12px;
}

.membership-cta-button {
  background-color: var(--ht-dark-bg);
  color: var(--ht-primary-orange);
  border: 2px solid var(--ht-dark-bg);
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.membership-cta-button:hover {
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background-color: var(--ht-dark-bg);
  border-top: 1px solid var(--ht-primary-orange);
  padding: 30px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--ht-text-muted);
}

/* ============================================================================
   BUTTONS & FORMS
   ============================================================================ */

button, input[type="button"], input[type="submit"], .button {
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover, .button:hover {
  background-color: var(--ht-primary-cyan);
  transform: translateY(-2px);
}

input[type="text"], input[type="email"], textarea, select {
  background-color: var(--ht-dark-card);
  border: 1px solid var(--ht-primary-orange);
  color: var(--ht-text-primary);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ht-primary-cyan);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.lock-icon {
  display: inline-block;
  margin-right: 4px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 6px;
}

.badge.critical {
  background-color: var(--ht-critical-red);
  color: var(--ht-text-primary);
}

.badge.high {
  background-color: var(--ht-high-amber);
  color: var(--ht-dark-bg);
}

.badge.medium {
  background-color: #3498DB;
  color: var(--ht-text-primary);
}

.badge.low {
  background-color: #95A5A6;
  color: var(--ht-dark-bg);
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
  .site-header {
    padding: 12px 20px;
  }

  .header-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
  }

  .site-navigation {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }

  .container {
    padding: 0 20px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .vuln-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vuln-table-header {
    flex-direction: column;
    gap: 8px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 18px !important;
  }

  h1 {
    font-size: 1.5rem;
  }

  .vuln-table {
    font-size: 11px;
  }

  .vuln-row {
    padding: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   NEVE CHILD THEME OVERRIDES
   ============================================================================ */

.neve-main-row {
  background-color: var(--ht-dark-bg);
}

.neve-container {
  background-color: var(--ht-dark-bg);
}

body.neve,
body.neve.neve-child {
  background-color: var(--ht-dark-bg);
}

/* Remove Neve default styles that conflict */
.neve-main-row .container {
  background-color: transparent;
}
/* --- feed / single layout --- */
.vuln-title a { color: inherit; text-decoration: none; }
.vuln-title a:hover { color: var(--ht-primary-cyan); }
.vuln-title, .card-title, .ht-single-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.vuln-cve-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vuln-row-empty {
  display: block !important;
  text-align: center;
  color: var(--ht-text-muted);
  padding: 32px 16px !important;
}
.vuln-action-btn {
  display: inline-block;
  background-color: var(--ht-primary-orange);
  color: var(--ht-dark-bg) !important;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.vuln-action-btn:hover { background-color: var(--ht-primary-cyan); }
.section-title {
  margin: 40px 0 20px;
  color: #fff;
  font-size: 1.25rem;
}
.card-link { display: block; color: inherit; text-decoration: none; }
.card-thumb-wrap { margin: -20px -20px 14px; overflow: hidden; border-radius: 8px 8px 0 0; background: #111; }
.card-thumb {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #111;
}
.card-description {
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-about { color: var(--ht-text-secondary); font-size: 13px; line-height: 1.5; }
.sidebar-search input { width: 100%; box-sizing: border-box; }
.ht-single-wrap { grid-template-columns: 1fr; }
.ht-single { max-width: 860px; }
.ht-single-meta { color: var(--ht-text-muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 8px; }
.ht-single-title { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin: 0 0 20px; color: #fff; }
.ht-single-hero { margin: 0 0 24px; }
.ht-single-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  display: block;
  background: #111;
}
.ht-content { color: var(--ht-text-secondary); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.ht-content img, .ht-content iframe, .ht-content video, .ht-content table {
  max-width: 100%;
  height: auto;
}
.ht-content pre, .ht-content code { overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.ht-content h2, .ht-content h3 { color: #fff; }
@media (max-width: 768px) {
  .vuln-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

.ht-source {
  margin-top: 32px;
  padding: 14px 16px;
  border-left: 3px solid var(--ht-primary-orange);
  background: #161616;
  color: var(--ht-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.ht-source a { color: var(--ht-primary-cyan); }

.ht-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-bottom: 28px; }
.ht-footer-grid h3 { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.ht-footer-text, .ht-footer-list { font-size: 12px; color: var(--ht-text-muted); line-height: 1.6; margin: 0; padding: 0; list-style: none; }
.ht-footer-list li { margin: 0 0 6px; }
.ht-footer-bottom { border-top: 1px solid var(--ht-primary-orange); padding-top: 20px; text-align: center; font-size: 12px; color: var(--ht-text-muted); }
.ht-breadcrumbs { font-size: 12px; color: var(--ht-text-muted); margin: 0 0 12px; }
.ht-breadcrumbs a { color: var(--ht-primary-cyan); text-decoration: none; }
.ht-share { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.ht-share-btn { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 4px; text-decoration: none; color: #0f0f0f !important; background: var(--ht-primary-cyan); }
.ht-share-btn.wa { background: #25D366; }
.ht-share-btn.x { background: #e8e8e8; }
.ht-share-btn.li { background: #0A66C2; color: #fff !important; }
