/* Vhagar Darknet Market Live - Modern CSS Framework */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #a855f7;
  --dark: #0f172a;
  --dark-lighter: #1e293b;
  --dark-lightest: #334155;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header & Navigation */
header {
  background: var(--dark-lighter);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-light);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--dark-lightest);
  color: var(--light);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light);
}

.section-header p {
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.card {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
  border-color: var(--primary);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.card p {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card .tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--dark-lightest);
  color: var(--gray-light);
}

.card .tag.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.card .tag.warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

/* Market Cards */
.market-card {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.market-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.market-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.market-card .status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.market-card .status.verified {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.market-card .description {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.market-card .features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.market-card .features li {
  padding: 0.5rem 0;
  color: var(--gray-light);
  position: relative;
  padding-left: 1.5rem;
}

.market-card .features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Feature Cards */
.feature-card {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.feature-card p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Guide Cards */
.guide-card {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.guide-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.guide-card .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.guide-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--light);
}

.guide-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.guide-card .read-time {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: auto;
}

/* Safety Checklist */
.checklist {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.checklist-item .checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.checklist-item .checkbox.checked {
  background: var(--success);
  border-color: var(--success);
}

.checklist-item .checkbox.checked::after {
  content: '✓';
  color: white;
  font-weight: bold;
}

.checklist-item .content {
  flex-grow: 1;
}

.checklist-item .content h4 {
  color: var(--light);
  margin-bottom: 0.25rem;
}

.checklist-item .content p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Glossary */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.glossary-item {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.glossary-item .term {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.glossary-item .definition {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* FAQ */
.faq-item {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--light);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

.faq-item .answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-light);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Footer */
footer {
  background: var(--dark-lighter);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.9rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.disclaimer-banner p {
  color: var(--light);
  margin-bottom: 0.5rem;
}

.disclaimer-banner p:last-child {
  margin-bottom: 0;
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-lighter);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-light);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Page Content */
.page-content {
  padding: 2rem 0;
  min-height: 60vh;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.page-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--light);
}

.page-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--light);
}

.page-content p {
  color: var(--gray-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
  color: var(--gray-light);
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content code {
  background: var(--dark-lightest);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.page-content pre {
  background: var(--dark-lightest);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.page-content pre code {
  background: none;
  padding: 0;
}

.page-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--gray-light);
  font-style: italic;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: var(--dark-lighter);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--dark-lightest);
  color: var(--light);
  font-weight: 600;
}

td {
  color: var(--gray-light);
}

tr:last-child td {
  border-bottom: none;
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--dark-lighter);
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-input::placeholder {
  color: var(--gray);
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-cloud-item {
  padding: 0.5rem 1rem;
  background: var(--dark-lightest);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.tag-cloud-item:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* News/Blog */
.news-item {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.news-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.news-item .date {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.news-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--light);
}

.news-item p {
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.news-item .read-more {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.news-item .read-more:hover {
  color: var(--primary);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--gray-light);
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Live Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
}

.live-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}
