/*
Theme Name: GeneratePress CyberNews Child
Theme URI: https://example.com/generatepress-cybernews
Description: Custom Premium Cybersecurity News Portal Child Theme for GeneratePress. Built for high speed, dark glassmorphism UI, Core Web Vitals, and NewsArticle Schema.
Author: Antigravity AI & GeneratePress Specialist
Author URI: https://example.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: generatepress-cybernews
*/

/* ==========================================================================
   CYBERSECURITY DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
  --bg-main: #0B1120;
  --bg-card: #111827;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --bg-glass-hover: rgba(30, 41, 59, 0.9);
  --primary: #00E676;
  --primary-glow: rgba(0, 230, 118, 0.35);
  --secondary: #00BCD4;
  --secondary-glow: rgba(0, 188, 212, 0.35);
  --accent: #22C55E;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 230, 118, 0.4);
  --card-radius: 18px;
  --btn-radius: 9999px;
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px rgba(0, 230, 118, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Global Reset & Base Styling */
html, body {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: var(--font-main) !important;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide duplicate plugin author boxes if requested */
.cyber-author-box {
  display: none !important;
}

/* Full Width Container Overrides for GeneratePress */
.site-content,
#page,
#primary,
.site-main,
.inside-article,
.grid-container,
.single-container,
#right-sidebar,
#left-sidebar,
.widget-area {
  background: transparent !important;
  color: var(--text-main) !important;
  box-sizing: border-box !important;
}

/* Main Container Constraint */
.cyber-container {
  width: 100% !important;
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Custom Logo Styling (Header & Footer) */
.custom-logo-link img, .site-logo img, .footer-branding .custom-logo-link img {
  max-height: 48px;
  width: auto;
  display: block;
}

/* HEADER NAVIGATION MENU STYLING */
.site-header ul,
.site-header .cyber-horizontal-menu,
.site-header .menu,
.site-header ul.menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header ul li,
.site-header .cyber-horizontal-menu li,
.site-header .menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.site-header ul li a,
.site-header .cyber-horizontal-menu li a,
.site-header .menu li a {
  color: #F8FAFC !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  white-space: nowrap;
}

.site-header ul li a:hover,
.site-header .cyber-horizontal-menu li a:hover,
.site-header .menu li.current-menu-item a {
  color: #00E676 !important;
  background: rgba(0, 230, 118, 0.1) !important;
}

/* SMOOTH SEAMLESS BREAKING NEWS TICKER ANIMATION */
@keyframes cyberTickerMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-content {
  overflow: hidden !important;
  white-space: nowrap !important;
  width: 100% !important;
}

.ticker-items {
  display: inline-flex !important;
  white-space: nowrap !important;
  will-change: transform !important;
  animation: cyberTickerMarquee 20s linear infinite !important;
}

.ticker-items:hover {
  animation-play-state: paused !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

p {
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Glassmorphism Cards */
.cyber-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.cyber-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Category Badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 230, 118, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 230, 118, 0.25);
  backdrop-filter: blur(8px);
}

.category-badge.cyan {
  background: rgba(0, 188, 212, 0.12);
  color: var(--secondary);
  border-color: rgba(0, 188, 212, 0.25);
}

.category-badge.red {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.25);
}

/* Main Grid Layout */
.cyber-main-layout {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 32px !important;
  width: 100% !important;
  margin-bottom: 40px !important;
}

.cyber-content-column {
  width: 100% !important;
}

.cyber-sidebar-column {
  width: 100% !important;
}

/* Mobile Navigation Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #070B14;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  z-index: 10001;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.mobile-menu-drawer.open {
  right: 0;
}

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

.mobile-menu-list li {
  margin-bottom: 12px;
}

.mobile-menu-list a {
  color: #F8FAFC;
  font-weight: 600;
  font-size: 1rem;
}

/* RESPONSIVE MOBILE VIEW FIXES */
@media (max-width: 900px) {
  .cyber-main-nav-container,
  .cta-btn-desktop {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
  }

  .cyber-main-layout {
    grid-template-columns: 1fr !important;
  }

  .hero-section {
    grid-template-columns: 1fr !important;
  }

  .cat-grid-layout {
    grid-template-columns: 1fr !important;
  }

  .trending-grid,
  .tools-grid,
  .videos-grid,
  .latest-posts-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-main-card {
    min-height: 360px !important;
  }

  .hero-title {
    font-size: 1.35rem !important;
  }
}
