﻿/**
 * NitroShock Framework CSS v1.0
 * Minimal, performance-focused CSS for modern components
 * Black & Shock Yellow Theme
 */

/* ========================================
   CSS Variables & Theme
======================================== */
:root {
  /* Primary Colors - Black & Yellow Theme */
  --ns-black-primary: #0a0a0a;
  --ns-black-secondary: #1a1a1a;
  --ns-black-tertiary: #262626;
  
  /* Shock Yellow */
  --ns-yellow-primary: #fbbf24;
  --ns-yellow-secondary: #f59e0b;
  --ns-yellow-light: #fde047;
  
  /* Grays */
  --ns-gray-50: #fafafa;
  --ns-gray-100: #f4f4f5;
  --ns-gray-200: #e4e4e7;
  --ns-gray-300: #d4d4d8;
  --ns-gray-400: #a1a1aa;
  --ns-gray-500: #71717a;
  --ns-gray-600: #52525b;
  --ns-gray-700: #3f3f46;
  --ns-gray-800: #27272a;
  --ns-gray-900: #18181b;
  
  /* Text Colors */
  --ns-text-primary: #e5e5e5;
  --ns-text-secondary: #a1a1aa;
  --ns-text-inverse: #0a0a0a;
  
  /* Semantic */
  --ns-success: #22c55e;
  --ns-warning: #f59e0b;
  --ns-danger: #ef4444;
  --ns-info: #06b6d4;
}

/* ========================================
   Reset & Base
======================================== */
.ns-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--ns-black-primary);
  color: var(--ns-text-primary);
}

.ns-section *,
.ns-section *::before,
.ns-section *::after {
  box-sizing: border-box;
}

.ns-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Typography
======================================== */
.ns-section h1,
.ns-section h2,
.ns-section h3,
.ns-section h4,
.ns-section h5,
.ns-section h6 {
  color: var(--ns-text-primary);
  line-height: 1.2;
  font-weight: 700;
  margin-top: 0;
}

.ns-section p {
  color: var(--ns-text-secondary);
  line-height: 1.7;
}

.ns-section a {
  color: var(--ns-yellow-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ns-section a:hover {
  color: var(--ns-yellow-light);
}

.ns-text-center { text-align: center; }
.ns-text-left { text-align: left; }
.ns-text-right { text-align: right; }

/* ========================================
   Grid System
======================================== */
.ns-grid {
  display: grid;
  gap: 2rem;
}

.ns-grid-1 { grid-template-columns: 1fr; }
.ns-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ns-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ns-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grids */
@media (max-width: 768px) {
  .ns-grid-md-1,
  .ns-grid-md-2,
  .ns-grid-md-3,
  .ns-grid-md-4 { 
    grid-template-columns: 1fr; 
  }
}

@media (min-width: 769px) {
  .ns-grid-md-2 { grid-template-columns: repeat(2, 1fr); }
  .ns-grid-md-3 { grid-template-columns: repeat(3, 1fr); }
  .ns-grid-md-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .ns-grid-lg-2 { grid-template-columns: repeat(2, 1fr); }
  .ns-grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .ns-grid-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   Flexbox Utilities
======================================== */
.ns-flex { display: flex; }
.ns-flex-wrap { flex-wrap: wrap; }
.ns-items-center { align-items: center; }
.ns-justify-center { justify-content: center; }
.ns-justify-between { justify-content: space-between; }

/* ========================================
   Spacing Utilities
======================================== */
.ns-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.ns-py-4 { padding-top: 4rem; padding-bottom: 4rem; }
.ns-py-6 { padding-top: 6rem; padding-bottom: 6rem; }
.ns-py-8 { padding-top: 8rem; padding-bottom: 8rem; }

.ns-mt-1 { margin-top: 0.5rem; }
.ns-mt-2 { margin-top: 1rem; }
.ns-mt-4 { margin-top: 2rem; }
.ns-mb-1 { margin-bottom: 0.5rem; }
.ns-mb-2 { margin-bottom: 1rem; }
.ns-mb-4 { margin-bottom: 2rem; }

/* ========================================
   Components - Buttons
======================================== */
.ns-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-weight: 600;
  text-align: center;
}

.ns-btn-primary {
  background: var(--ns-yellow-primary);
  color: var(--ns-text-inverse);
}

.ns-btn-primary:hover {
  background: var(--ns-yellow-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.ns-btn-outline {
  background: transparent;
  color: var(--ns-yellow-primary);
  border: 2px solid var(--ns-yellow-primary);
}

.ns-btn-outline:hover {
  background: var(--ns-yellow-primary);
  color: var(--ns-text-inverse);
  transform: translateY(-2px);
}

.ns-btn-white {
  background: white;
  color: var(--ns-black-primary);
}

.ns-btn-white:hover {
  background: var(--ns-gray-100);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ========================================
   Components - Cards
======================================== */
.ns-card {
  background: var(--ns-black-secondary);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--ns-black-tertiary);
  transition: all 0.3s ease;
}

.ns-card:hover {
  transform: translateY(-4px);
  border-color: var(--ns-yellow-primary);
  box-shadow: 0 12px 24px rgba(251, 191, 36, 0.1);
}

/* ========================================
   Components - Hero Sections
======================================== */
.ns-hero {
  padding: 80px 0;
  text-align: center;
  background: var(--ns-black-primary);
}

.ns-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.ns-hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .ns-hero { padding: 60px 0; }
}

/* ========================================
   Components - Feature Cards
======================================== */
.ns-feature-card {
  background: var(--ns-black-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ns-black-tertiary);
}

.ns-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ns-yellow-primary) 0%, var(--ns-yellow-secondary) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.ns-feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--ns-yellow-primary);
  box-shadow: 0 20px 40px rgba(251, 191, 36, 0.15);
}

.ns-feature-card:hover::before {
  transform: scaleX(1);
}

.ns-feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.ns-feature-card:hover .ns-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   Interactive Components - Tabs
======================================== */
.ns-tabs { margin: 2rem 0; }

.ns-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--ns-black-tertiary);
  margin-bottom: 2rem;
}

.ns-tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: var(--ns-text-secondary);
  transition: color 0.3s ease;
}

.ns-tab-btn:hover {
  color: var(--ns-yellow-primary);
}

.ns-tab-btn.active {
  color: var(--ns-yellow-primary);
}

.ns-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ns-yellow-primary);
}

.ns-tab-content {
  display: none;
}

.ns-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ========================================
   Interactive Components - Accordions
======================================== */
.ns-accordion { margin: 1rem 0; }

.ns-accordion-item {
  border: 1px solid var(--ns-black-tertiary);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--ns-black-secondary);
}

.ns-accordion-header {
  width: 100%;
  padding: 1.25rem;
  background: var(--ns-black-secondary);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--ns-text-primary);
  transition: all 0.3s ease;
}

.ns-accordion-header:hover {
  background: var(--ns-black-tertiary);
  color: var(--ns-yellow-primary);
}

.ns-accordion-content {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--ns-text-secondary);
}

.ns-accordion-content.active {
  padding: 1.25rem;
  max-height: 500px;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ns-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

[data-ns-animate=fade-in] {
  opacity: 0;
}

[data-ns-animate=fade-in].ns-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* ========================================
   Utilities
======================================== */
.ns-hidden { display: none; }
.ns-visible { display: block; }
.ns-relative { position: relative; }
.ns-absolute { position: absolute; }
.ns-z-10 { z-index: 10; }
.ns-overflow-hidden { overflow: hidden; }

/* ========================================
   Special Effects
======================================== */
.ns-glow-yellow {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.ns-gradient-text {
  background: linear-gradient(135deg, var(--ns-yellow-primary) 0%, var(--ns-yellow-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Responsive Helpers
======================================== */
@media (max-width: 768px) {
  .ns-hide-mobile { display: none; }
  .ns-text-center-mobile { text-align: center; }
}

@media (min-width: 769px) {
  .ns-hide-desktop { display: none; }
}

/* ========================================
   Modal Styles
======================================== */
.ns-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  overflow-y: auto;
}

.ns-modal-content {
  background: var(--ns-black-secondary);
  border: 1px solid var(--ns-black-tertiary);
  max-width: 800px;
  margin: 50px auto;
  border-radius: 12px;
  overflow: hidden;
}

.ns-modal-header {
  background: var(--ns-black-tertiary);
  padding: 20px;
  border-bottom: 1px solid var(--ns-gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ns-modal-header h2 {
  margin: 0;
  color: var(--ns-yellow-primary);
}

.ns-modal-close {
  background: none;
  border: none;
  color: var(--ns-text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-modal-close:hover {
  color: var(--ns-yellow-primary);
}

.ns-modal-body {
  padding: 30px;
}

.ns-modal-preview {
  background: var(--ns-black-primary);
  border: 1px solid var(--ns-black-tertiary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.ns-modal-form label {
  display: block;
  margin-bottom: 15px;
  color: var(--ns-text-primary);
}

.ns-modal-form input[type="text"],
.ns-modal-form textarea {
  width: 100%;
  padding: 10px;
  background: var(--ns-black-primary);
  border: 1px solid var(--ns-black-tertiary);
  color: var(--ns-text-primary);
  border-radius: 6px;
}

.ns-modal-form input[type="text"]:focus,
.ns-modal-form textarea:focus {
  border-color: var(--ns-yellow-primary);
  outline: none;
}

.ns-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ========================================
   Theme Integration
======================================== */
/* Ensure our sections work well with various themes */
.ns-section {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* Override theme styles that might interfere */
.ns-section h1,
.ns-section h2,
.ns-section h3,
.ns-section h4,
.ns-section h5,
.ns-section h6,
.ns-section p,
.ns-section a {
  font-family: inherit;
}

/* Ensure buttons don't inherit theme styles */
.ns-btn,
.ns-btn:hover,
.ns-btn:focus {
  text-decoration: none;
  outline: none;
}