/* Venusnap Merchandise Page - styles-merchandise.css */
/* Mobile-first responsive design */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors */
  --deep-purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #8b5cf6;
  --purple-glow: rgba(124, 58, 237, 0.3);

  /* Background Colors */
  --black-dark: #0a0a0a;
  --black-medium: #111111;
  --black-light: #1a1a1a;
  --black-lighter: #2a2a2a;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --white: #ffffff;

  /* Accent Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.8);
  --shadow-purple: 0 0 20px var(--purple-glow);

  /* Layout */
  --header-height: 70px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--black-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--deep-purple);
  border-radius: 2px;
}

.highlight {
  color: var(--purple-light);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--deep-purple), var(--purple-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-purple);
}

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

.btn-secondary:hover {
  background: var(--purple-glow);
  color: var(--white);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #34d399);
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid var(--black-lighter);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--purple-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--deep-purple);
}

/* ===== HERO SECTION ===== */
.merch-hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--black-dark), var(--black-medium));
  position: relative;
  overflow: hidden;
}

.merch-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  opacity: 0.3;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.merch-showcase {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.merch-item {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.merch-item:nth-child(1) {
  top: 0;
  left: 0;
  width: 60%;
  z-index: 3;
  transform: rotate(-5deg);
}

.merch-item:nth-child(2) {
  top: 20%;
  right: 0;
  width: 55%;
  z-index: 2;
  transform: rotate(5deg);
}

.merch-item:nth-child(3) {
  bottom: 10%;
  left: 20%;
  width: 50%;
  z-index: 1;
  transform: rotate(-2deg);
}

.merch-item:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 4;
}

.merch-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--success);
  color: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

/* ===== ACQUISITION PATHWAYS ===== */
.acquisition-section {
  background-color: var(--black-medium);
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.pathway-card {
  background: var(--black-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--black-lighter);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.pathway-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-light);
}

.pathway-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--purple-dark), var(--deep-purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  color: var(--white);
}

.pathway-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.pathway-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.pathway-steps {
  list-style: none;
}

.pathway-steps li {
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

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

/* ===== MERCHANDISE SHOWCASE ===== */
.merch-showcase-section {
  background-color: var(--black-dark);
}

.merch-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-xs) var(--space-md);
  background: var(--black-light);
  border: 1px solid var(--black-lighter);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--purple-glow);
  border-color: var(--purple-light);
  color: var(--white);
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.merch-card {
  background: var(--black-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-lighter);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.merch-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-purple);
}

.merch-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(45deg, var(--black-lighter), var(--black-medium));
}

.merch-info {
  padding: var(--space-lg);
}

.merch-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.merch-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.merch-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.merch-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--black-lighter);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.merch-type.earn { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.merch-type.invite { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.merch-type.purchase { background: rgba(59, 130, 246, 0.2); color: var(--info); }

.merch-progress {
  margin-bottom: var(--space-md);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.progress-bar {
  height: 6px;
  background: var(--black-lighter);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--deep-purple), var(--purple-light));
  border-radius: 3px;
  transition: width var(--transition-slow);
}

.merch-checklist {
  list-style: none;
  margin-bottom: var(--space-md);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--black-lighter);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.checklist-item.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.check-icon {
  color: var(--success);
  font-size: 0.9rem;
}

/* ===== COMMUNITY LEADERBOARD ===== */
.leaderboard-section {
  background-color: var(--black-medium);
}

.leaderboard-container {
  max-width: 800px;
  margin: 0 auto;
}

.leaderboard {
  background: var(--black-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-lighter);
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 50px 1fr 100px;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--black-lighter);
  font-weight: 600;
  color: var(--text-secondary);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--black-lighter);
  align-items: center;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-row.user-highlight {
  background: var(--purple-glow);
  border-left: 3px solid var(--deep-purple);
}

.rank {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-purple), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--white);
}

.user-details h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.user-details span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.merch-count {
  text-align: right;
  font-weight: 600;
  color: var(--purple-light);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background-color: var(--black-dark);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--black-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--black-lighter);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--black-lighter);
}

.faq-question h3 {
  font-size: 1.1rem;
  color: var(--white);
}

.faq-toggle {
  background: none;
  border: none;
  color: var(--purple-light);
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.faq-toggle.active {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  color: var(--text-secondary);
}

.faq-answer.active {
  padding: var(--space-md) var(--space-lg);
  max-height: 500px;
}

/* ===== STICKY DOWNLOAD BAR (MOBILE) ===== */
.sticky-download-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--black-dark), var(--black-medium));
  border-top: 1px solid var(--black-lighter);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.download-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.download-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--white);
}

.download-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.download-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.download-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--deep-purple), var(--purple-light));
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), var(--shadow-purple);
}

/* ===== FOOTER ===== */
.main-footer {
  background-color: var(--black-medium);
  border-top: 1px solid var(--black-lighter);
  padding: var(--space-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--black-lighter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--black-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--deep-purple);
  color: var(--white);
  transform: translateY(-3px);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (641px and up) */
@media (min-width: 641px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-text h1 {
    font-size: 3rem;
  }

  .merch-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .sticky-download-bar {
    display: block;
  }
}

/* Desktop (769px and up) */
@media (min-width: 769px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .section {
    padding: var(--space-xxl) 0;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .pathways-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .merch-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .download-content {
    justify-content: center;
    gap: var(--space-xl);
  }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--black-dark);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--black-lighter);
    z-index: 999;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--black-lighter);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .merch-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    text-align: left;
  }

  .download-buttons {
    flex-direction: column;
    width: 100%;
  }

  .download-btn {
    justify-content: center;
  }
}

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

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== DESKTOP (min-width: 769px) - HIDE MOBILE ===== */
@media (min-width: 769px) {
    .mobile-content {
        display: none;
    }

    .desktop-content {
        display: block;
    }

    .mobile-download-bar {
        display: none !important;
    }
}

/* Mobile Content Container */
.mobile-content {
    padding-bottom: 80px; /* Space for sticky download bar */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Hide Desktop by Default on Mobile */
.desktop-content {
    display: none;
}

