/* NetPerfReview - Modern Gaming Review Theme
   CSS Custom Properties & Design Tokens */
:root {
  --color-primary: #00f2fe;
  --color-primary-dark: #0099a8;
  --color-primary-light: #70f7ff;
  --color-secondary: #ff4b5c;
  --color-secondary-dark: #c72c3d;
  --color-accent: #38ef7d;
  
  --color-bg: #090c10;
  --color-bg-alt: #131920;
  --color-card-bg: #1a222c;
  --color-card-border: #263342;
  
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-text-bright: #ffffff;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.25);
  
  --transition: all 0.25s ease-in-out;
  --max-width: 1200px;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessibility */
.npr-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-primary);
  color: #000;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.npr-skip-link:focus {
  top: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-bright);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 2rem;
  position: relative;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

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

a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* Layout Utilities */
.npr-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.npr-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-card-border);
}

.npr-section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

/* Header & Mobile Nav (Checkbox Hack) */
.npr-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-card-border);
}

.npr-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.npr-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.npr-logo span {
  color: var(--color-primary);
}

.npr-nav-checkbox {
  display: none;
}

.npr-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.npr-hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.npr-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.npr-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.npr-nav a.active, .npr-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.npr-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

/* Hero Section */
.npr-hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.1) 0%, transparent 60%);
}

.npr-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.npr-hero-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.npr-hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.npr-hero-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--color-card-border);
}

.npr-hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Rating Summary Box */
.npr-rating-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.npr-rating-score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.npr-stars {
  color: #ffc107;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.npr-rating-details p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Buttons */
.npr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none !important;
}

.npr-btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #04090e;
  box-shadow: var(--shadow-sm);
}

.npr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #000;
}

.npr-btn-secondary {
  background: transparent;
  color: var(--color-text-bright);
  border: 1px solid var(--color-card-border);
}

.npr-btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Feature Cards Grid */
.npr-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.npr-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

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

.npr-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

/* Pros and Cons Section */
.npr-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}

.npr-pros, .npr-cons {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.npr-pros {
  border-top: 4px solid var(--color-accent);
}

.npr-cons {
  border-top: 4px solid var(--color-secondary);
}

.npr-pros-cons ul {
  list-style: none;
}

.npr-pros-cons li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.8rem;
}

.npr-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.npr-cons li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

/* Comparison Table */
.npr-table-wrap {
  overflow-x: auto;
  margin: 2.5rem 0;
}

.npr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
}

.npr-table th, .npr-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-card-border);
}

.npr-table th {
  background: #111720;
  color: var(--color-text-bright);
  font-family: var(--font-heading);
}

.npr-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.npr-badge-yes {
  color: var(--color-accent);
  font-weight: bold;
}

.npr-badge-no {
  color: var(--color-secondary);
  font-weight: bold;
}

/* FAQ Accordion (CSS Details/Summary) */
.npr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.npr-faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.npr-faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-bright);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.npr-faq-item summary::-webkit-details-marker {
  display: none;
}

.npr-faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.npr-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.npr-faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
}

/* Testimonials Cards */
.npr-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.npr-testimonial-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.npr-testimonial-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.npr-testimonial-author {
  font-weight: 700;
  color: var(--color-text-bright);
}

.npr-testimonial-role {
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* Contact Form */
.npr-form-group {
  margin-bottom: 1.5rem;
}

.npr-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text-bright);
}

.npr-form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.npr-form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

textarea.npr-form-control {
  min-height: 140px;
  resize: vertical;
}

/* Breadcrumbs */
.npr-breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.npr-breadcrumb li::after {
  content: '/';
  margin-left: 0.5rem;
}

.npr-breadcrumb li:last-child::after {
  content: '';
}

/* Footer */
.npr-footer {
  background: #05070a;
  border-top: 1px solid var(--color-card-border);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.npr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.npr-footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-bright);
}

.npr-footer-col ul {
  list-style: none;
}

.npr-footer-col li {
  margin-bottom: 0.75rem;
}

.npr-footer-col a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.npr-footer-col a:hover {
  color: var(--color-primary);
}

.npr-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.npr-affiliate-disclosure {
  background: rgba(255, 75, 92, 0.08);
  border: 1px solid rgba(255, 75, 92, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Cookie Banner (Checkbox Hack) */
.npr-cookie-checkbox {
  display: none;
}

.npr-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 420px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.npr-cookie-checkbox:checked ~ .npr-cookie-banner {
  display: none;
}

.npr-cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.npr-cookie-btn {
  align-self: flex-end;
  background: var(--color-primary);
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .npr-hero-grid {
    grid-template-columns: 1fr;
  }
  .npr-pros-cons {
    grid-template-columns: 1fr;
  }
  .npr-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .npr-hamburger {
    display: flex;
  }
  .npr-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-card-border);
    padding: 1.5rem;
    display: none;
  }
  .npr-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .npr-nav-checkbox:checked ~ .npr-header-inner .npr-nav {
    display: block;
  }
  .npr-rating-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .npr-footer-grid {
    grid-template-columns: 1fr;
  }
  .npr-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .npr-header, .npr-footer, .npr-cookie-banner, .npr-btn {
    display: none;
  }
}
