/* ========================================
   STEAMPUNK LIGHTSABER STORE - GLOBAL STYLES
   Aesthetic: Brass, copper, bronze, amber glow,
   weathered metal, mechanical details, Galaxy's Edge vibe
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700&family=Orbitron:wght@400;500;700&family=Roboto+Mono:wght@300;400&display=swap');

:root {
  /* Core steampunk palette */
  --brass: #b5a642;
  --brass-light: #d4c76a;
  --brass-dark: #8a7d30;
  --copper: #b87333;
  --copper-light: #e8965a;
  --copper-dark: #8a5a24;
  --bronze: #cd7f32;
  --iron: #4a4a4a;
  --iron-light: #6e6e6e;
  --iron-dark: #2b2b2b;
  --steel: #7a8b99;
  --steel-light: #a0b0bd;
  --rust: #8b4513;
  --ember: #ff6b35;
  --amber: #ffaa33;
  --amber-glow: rgba(255, 170, 51, 0.3);
  --warm-white: #f4e8d0;
  --cream: #e8dcc8;
  --dark-bg: #1a1612;
  --darker-bg: #0f0d0a;
  --panel-bg: #2a2420;
  --panel-border: #5a4d3a;
  --text-primary: #e8dcc8;
  --text-secondary: #b8a990;
  --text-muted: #7a6e5e;

  /* Glow effects */
  --glow-amber: 0 0 10px rgba(255, 170, 51, 0.4), 0 0 20px rgba(255, 170, 51, 0.2);
  --glow-brass: 0 0 8px rgba(181, 166, 66, 0.5);
  --glow-copper: 0 0 8px rgba(184, 115, 51, 0.4);

  /* Mechanical */
  --gear-size: 60px;
  --rivet: radial-gradient(circle, var(--brass-dark) 30%, var(--iron-dark) 70%);

  /* Typography */
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-tech: 'Orbitron', sans-serif;
  --font-body: 'Roboto Mono', monospace;

  /* Spacing */
  --nav-height: 80px;
  --section-padding: 100px;
  --content-max-width: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--darker-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: var(--brass-light);
  text-shadow: 0 0 8px rgba(255, 170, 51, 0.5);
}

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

/* ========================================
   BACKGROUND TEXTURE
   ======================================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(181, 166, 66, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184, 115, 51, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(74, 74, 74, 0.02) 50px,
      rgba(74, 74, 74, 0.02) 51px
    );
  pointer-events: none;
  z-index: -1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: linear-gradient(180deg, rgba(15, 13, 10, 0.98) 0%, rgba(26, 22, 18, 0.95) 100%);
  border-bottom: 2px solid var(--brass-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brass-light);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(181, 166, 66, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo::before {
  content: '⚒';
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--amber));
  transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--brass-light);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(181, 166, 66, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse at 30% 20%, rgba(184, 115, 51, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-subtitle {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--warm-white);
  margin-bottom: 24px;
  text-shadow:
    0 0 20px rgba(181, 166, 66, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-title span {
  color: var(--brass-light);
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 2px solid var(--brass);
  background: transparent;
  color: var(--brass-light);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(181, 166, 66, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: var(--glow-amber);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brass-dark), var(--copper-dark));
  color: var(--warm-white);
  border-color: var(--brass-light);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brass), var(--copper));
  color: var(--darker-bg);
}

.btn-ember {
  border-color: var(--ember);
  color: var(--ember);
}

.btn-ember:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--section-padding) 60px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--warm-white);
  margin-bottom: 20px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  margin: 20px auto 0;
}

.section-description {
  font-family: var(--font-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========================================
   PANEL / CARD STYLES
   ======================================== */
.panel {
  background: linear-gradient(145deg, var(--panel-bg), var(--iron-dark));
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.6;
}

.panel::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(181, 166, 66, 0.1);
  border-radius: 2px;
  pointer-events: none;
}

.rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--rivet);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.rivet-tl { top: 4px; left: 4px; }
.rivet-tr { top: 4px; right: 4px; }
.rivet-bl { bottom: 4px; left: 4px; }
.rivet-br { bottom: 4px; right: 4px; }

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */
.gear-decoration {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
  color: var(--brass);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
  margin: 60px 0;
}

.divider-ornate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 60px 0;
}

.divider-ornate::before,
.divider-ornate::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
}

.divider-ornate .ornament {
  color: var(--brass);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
  background: linear-gradient(180deg, var(--iron-dark), var(--darker-bg));
  border-top: 2px solid var(--brass-dark);
  padding: 60px 60px 30px;
  text-align: center;
}

.footer-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brass-light);
  margin-bottom: 20px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .main-nav {
    padding: 0 20px;
    height: 70px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .section {
    padding: 60px 20px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 170, 51, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 170, 51, 0.4), 0 0 40px rgba(255, 170, 51, 0.2);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes steam-particle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  20% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(2);
  }
}

/* ========================================
   PRODUCTS
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-amber), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--iron-dark), var(--darker-bg));
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card .product-image::before {
  content: '⚙';
  font-size: 3rem;
  color: var(--brass);
  opacity: 0.15;
}

.product-card .product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-info {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--warm-white);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.product-description {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.product-price {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  color: var(--amber);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.product-note {
  max-width: 900px;
  margin: 60px auto 0;
  text-align: center;
  padding: 32px 40px;
}

.product-note p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-card .product-info {
    padding: 22px 18px 26px;
  }

  .product-name {
    font-size: 1.2rem;
  }

  .product-note {
    padding: 24px 20px;
    margin-top: 40px;
  }
}
