/* ===================================================================
   WeTheNorth Market - CSS Stylesheet
   Canadian Darknet Marketplace Design System
   Colors: Red (#d11515), Dark Gray (#4a4e54), White, Canadian theme
   =================================================================== */

/* =============== ROOT VARIABLES =============== */
:root {
  /* Primary Colors - WeTheNorth Theme */
  --wtn-red: #d11515;           /* Canadian red - primary accent */
  --wtn-dark-gray: #4a4e54;     /* Navigation and headers */
  --wtn-charcoal: #333333;      /* Text color */
  --wtn-light-gray: #f5f5f5;    /* Background */
  --wtn-white: #ffffff;         /* Cards and sections */
  --wtn-green: #28a745;         /* Success/Online status */
  --wtn-gray: #666666;          /* Secondary text */
  --wtn-border: #ddd;           /* Borders */

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Rajdhani", sans-serif;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* =============== RESET & BASE =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--wtn-charcoal);
  background-color: var(--wtn-light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--wtn-red);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* =============== NAVIGATION =============== */
.navbar {
  background: var(--wtn-dark-gray);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md);
}

.nav-logo {
  padding: var(--spacing-sm) 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wtn-white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-accent {
  color: var(--wtn-red);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-link {
  color: var(--wtn-white);
  padding: 22px 20px;
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--wtn-white);
  transition: 0.3s;
}

/* =============== HERO SECTION =============== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--wtn-white);
  background: linear-gradient(135deg, var(--wtn-dark-gray) 0%, #2a2e34 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-lg);
  max-width: 1000px;
}

.hero-logo {
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.title-main {
  display: block;
  color: var(--wtn-white);
}

.title-accent {
  display: block;
  color: var(--wtn-red);
  font-size: 4.5rem;
}

.title-sub {
  display: block;
  font-size: 1.5rem;
  color: #ccc;
  margin-top: var(--spacing-sm);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: var(--spacing-lg);
}

.hero-description {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--wtn-red);
  color: var(--wtn-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #b01111;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--wtn-white);
  border: 2px solid var(--wtn-white);
}

.btn-secondary:hover {
  background: var(--wtn-white);
  color: var(--wtn-dark-gray);
}

.btn-success {
  background: var(--wtn-green);
  color: var(--wtn-white);
}

.btn-success:hover {
  background: #218838;
}

/* =============== CONTAINER & SECTIONS =============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wtn-dark-gray);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title span {
  color: var(--wtn-red);
}

/* =============== ABOUT SECTION =============== */
.about {
  background: var(--wtn-white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-description {
  margin-bottom: var(--spacing-md);
  color: var(--wtn-charcoal);
}

.about-description strong {
  color: var(--wtn-red);
  font-weight: 600;
}

/* =============== CRYPTO PRICES =============== */
.crypto-prices {
  background: var(--wtn-light-gray);
}

.crypto-widget {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
}

.crypto-card {
  background: var(--wtn-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crypto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.crypto-card h3 {
  color: var(--wtn-dark-gray);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.crypto-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wtn-red);
  margin: var(--spacing-sm) 0;
}

.crypto-card .change {
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--spacing-xs) 0;
}

.crypto-card .change.positive {
  color: var(--wtn-green);
}

.crypto-card .change.negative {
  color: var(--wtn-red);
}

.crypto-card .volume,
.crypto-card .timestamp {
  font-size: 0.9rem;
  color: var(--wtn-gray);
  margin: var(--spacing-xs) 0;
}

.api-note {
  text-align: center;
  margin-top: var(--spacing-lg);
  font-size: 0.9rem;
  color: var(--wtn-gray);
}

/* =============== FEATURES GRID =============== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.feature-item {
  background: var(--wtn-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.feature-item h3 {
  color: var(--wtn-red);
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.feature-item p {
  color: var(--wtn-charcoal);
  line-height: 1.7;
}

/* =============== SECURITY SECTION =============== */
.security {
  background: var(--wtn-white);
}

.security-grid {
  display: grid;
  gap: var(--spacing-lg);
}

.security-card {
  background: var(--wtn-light-gray);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--wtn-red);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.card-icon {
  font-size: 2.5rem;
}

.card-header h3 {
  color: var(--wtn-dark-gray);
  font-size: 1.6rem;
  font-weight: 700;
}

.card-content p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

/* =============== ONION LINKS PAGE =============== */
.onion-links {
  background: var(--wtn-white);
  padding: var(--spacing-xl) 0;
}

.links-warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.warning-icon {
  font-size: 2rem;
}

.links-warning p {
  margin: 0;
  color: #856404;
  line-height: 1.6;
}

.links-grid {
  display: grid;
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

.link-item {
  background: var(--wtn-light-gray);
  border: 2px solid var(--wtn-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: border-color 0.3s ease;
}

.link-item:hover {
  border-color: var(--wtn-red);
}

.link-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.status-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-online {
  background: #d4edda;
  color: #155724;
}

.status-offline {
  background: #f8d7da;
  color: #721c24;
}

.link-url {
  background: var(--wtn-white);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--wtn-dark-gray);
  margin: var(--spacing-sm) 0;
}

.copy-btn {
  background: var(--wtn-red);
  color: var(--wtn-white);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: #b01111;
}

.link-metrics {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--wtn-gray);
  flex-wrap: wrap;
}

/* =============== FAQ SECTION =============== */
.faq-item {
  background: var(--wtn-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  background: var(--wtn-light-gray);
  padding: var(--spacing-md);
  cursor: pointer;
  font-weight: 600;
  color: var(--wtn-dark-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #e0e0e0;
}

.faq-answer {
  padding: var(--spacing-md);
  display: none;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* =============== FOOTER =============== */
.footer {
  background: var(--wtn-dark-gray);
  color: var(--wtn-white);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--wtn-white);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--wtn-red);
}

.footer-text {
  font-size: 0.9rem;
  color: #ccc;
}

/* =============== CANADIAN FLAG DECORATION =============== */
.canadian-flag {
  display: inline-block;
  width: 60px;
  height: 40px;
  background: linear-gradient(90deg,
    var(--wtn-red) 0%, var(--wtn-red) 25%,
    var(--wtn-white) 25%, var(--wtn-white) 75%,
    var(--wtn-red) 75%, var(--wtn-red) 100%);
  border-radius: var(--radius-sm);
  position: relative;
  margin: var(--spacing-sm) auto;
}

.canadian-flag::after {
  content: "🍁";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
}

/* =============== WOLF DECORATION =============== */
.wolf-icon {
  font-size: 4rem;
  text-align: center;
  margin: var(--spacing-md) 0;
  filter: grayscale(100%);
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--wtn-dark-gray);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .title-accent {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .crypto-widget {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .title-accent {
    font-size: 2.5rem;
  }

  .btn {
    width: 100%;
  }
}

/* =============== UTILITIES =============== */
.text-center {
  text-align: center;
}

.text-red {
  color: var(--wtn-red);
}

.text-gray {
  color: var(--wtn-gray);
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }

/* =============== IMAGE STYLES =============== */

/* Hero Logo Images */
.hero-logo-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
  animation: fadeIn 1s ease-in;
}

.hero-logo-image img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Feature Icons Enhanced */
.feature-icon img,
.feature-icon svg {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon img,
.feature-item:hover .feature-icon svg {
  transform: scale(1.15) rotate(5deg);
}

/* Section Decorative Images */
.section-decoration {
  text-align: center;
  margin: 40px 0;
}

.section-decoration img {
  width: 120px;
  height: 120px;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

/* Canadian Flag Decoration Enhanced */
.canadian-flag-image {
  width: 100px;
  height: auto;
  margin: 20px auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Wolf Icon Enhanced */
.wolf-icon-image {
  width: 150px;
  height: 150px;
  margin: 20px auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(209,21,21,0.4));
  animation: pulse 2s ease-in-out infinite;
}

/* Security Badge */
.security-badge {
  width: 100px;
  height: 100px;
  margin: 20px auto;
  display: block;
}

/* Card Icons */
.card-icon img,
.card-icon svg {
  width: 60px;
  height: 60px;
  display: inline-block;
  vertical-align: middle;
}

/* Image Gallery Grid */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Inline Icons */
.inline-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 5px;
}

/* Background Patterns */
.pattern-background {
  background-image: 
    linear-gradient(45deg, rgba(209,21,21,0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(209,21,21,0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(209,21,21,0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(209,21,21,0.05) 75%);
  background-size: 50px 50px;
  background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

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

/* Responsive Images */
@media (max-width: 768px) {
  .hero-logo-image {
    width: 120px;
    height: 120px;
  }
  
  .feature-icon img,
  .feature-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .section-decoration img {
    width: 80px;
    height: 80px;
  }
}

/* Image Lazy Loading Placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
