/* ============================================
   Vintage Industrial Design System
   Bronze/Copper Aesthetic with Embossed Effects
   ============================================ */

:root {
  /* Post-Apocalyptic Color Palette - Unified with main theme */
  --vintage-bronze: #b8670f;
  --vintage-copper: #d4863a;
  --vintage-dark-bronze: #8b5a2b;
  --vintage-light-bronze: #c9a961;
  --vintage-bg-dark: #0a0907;
  --vintage-bg-medium: #1a1510;
  --vintage-bg-light: #2d2418;
  --vintage-text-light: #d4b896;
  --vintage-text-dark: #0a0907;
  --vintage-accent: #d4863a;

  /* Shadows for embossed effect */
  --emboss-highlight: rgba(255, 215, 0, 0.3);
  --emboss-shadow: rgba(0, 0, 0, 0.7);
  --deep-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
  --inset-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Metal Texture Base
   ============================================ */

.vintage-metal {
  background: linear-gradient(
    135deg,
    var(--vintage-dark-bronze) 0%,
    var(--vintage-copper) 25%,
    var(--vintage-bronze) 50%,
    var(--vintage-copper) 75%,
    var(--vintage-dark-bronze) 100%
  );
  background-size: 200% 200%;
  position: relative;
}

.vintage-metal::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.1) 2px,
      rgba(0, 0, 0, 0.1) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.05) 2px,
      rgba(0, 0, 0, 0.05) 4px
    );
  pointer-events: none;
}

.vintage-metal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 215, 0, 0.2) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ============================================
   Embossed Border Frame
   ============================================ */

.vintage-frame {
  border: 3px solid var(--vintage-bronze);
  border-radius: 12px;
  box-shadow:
    inset 0 2px 4px var(--emboss-shadow),
    inset 0 -2px 4px var(--emboss-highlight),
    0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.vintage-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--vintage-dark-bronze);
  border-radius: 14px;
  box-shadow:
    0 2px 0 var(--emboss-highlight),
    0 -2px 0 var(--emboss-shadow);
  pointer-events: none;
}

/* ============================================
   Call to Action Button
   ============================================ */

.vintage-button {
  position: relative;
  padding: 16px 48px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vintage-text-dark);
  background: linear-gradient(
    180deg,
    var(--vintage-light-bronze) 0%,
    var(--vintage-bronze) 50%,
    var(--vintage-dark-bronze) 100%
  );
  border: 3px solid var(--vintage-dark-bronze);
  border-radius: 16px;
  box-shadow:
    inset 0 2px 6px var(--emboss-highlight),
    inset 0 -2px 6px var(--emboss-shadow),
    0 6px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
  overflow: hidden;
}

.vintage-button::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--vintage-bronze);
  border-radius: 18px;
  box-shadow:
    0 2px 0 rgba(255, 215, 0, 0.2),
    0 -2px 0 rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.vintage-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.1) 3px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
}

.vintage-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 8px var(--emboss-highlight),
    inset 0 -2px 8px var(--emboss-shadow),
    0 8px 20px rgba(0, 0, 0, 0.7);
}

.vintage-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 4px 8px var(--emboss-shadow),
    inset 0 -1px 4px var(--emboss-highlight),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Toggle Switch (ON Button)
   ============================================ */

.vintage-toggle {
  position: relative;
  width: 120px;
  height: 50px;
  background: linear-gradient(
    180deg,
    var(--vintage-bg-medium) 0%,
    var(--vintage-bg-dark) 100%
  );
  border: 3px solid var(--vintage-dark-bronze);
  border-radius: 30px;
  box-shadow: var(--inset-shadow), var(--deep-shadow);
  cursor: pointer;
  padding: 4px;
}

.vintage-toggle-slider {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--vintage-light-bronze),
    var(--vintage-bronze)
  );
  border: 2px solid var(--vintage-dark-bronze);
  border-radius: 50%;
  box-shadow:
    inset 0 2px 4px var(--emboss-highlight),
    inset 0 -2px 4px var(--emboss-shadow),
    2px 2px 6px rgba(0, 0, 0, 0.5);
  transition: left 0.3s ease;
  left: 4px;
  top: 4px;
}

.vintage-toggle.active .vintage-toggle-slider {
  left: calc(100% - 44px);
}

.vintage-toggle-label {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--vintage-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vintage-toggle.active .vintage-toggle-label {
  opacity: 1;
}

/* ============================================
   Checkbox
   ============================================ */

.vintage-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.vintage-checkbox {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    180deg,
    var(--vintage-bg-medium) 0%,
    var(--vintage-bg-dark) 100%
  );
  border: 3px solid var(--vintage-dark-bronze);
  border-radius: 8px;
  box-shadow: var(--inset-shadow), var(--deep-shadow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vintage-checkbox::before {
  content: '✓';
  font-size: 24px;
  font-weight: 900;
  color: var(--vintage-accent);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.vintage-checkbox.checked::before {
  opacity: 1;
  transform: scale(1);
}

.vintage-checkbox-label {
  font-size: 16px;
  color: var(--vintage-text-light);
  user-select: none;
}

/* ============================================
   Radio Button
   ============================================ */

.vintage-radio-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.vintage-radio {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    180deg,
    var(--vintage-bg-medium) 0%,
    var(--vintage-bg-dark) 100%
  );
  border: 3px solid var(--vintage-dark-bronze);
  border-radius: 50%;
  box-shadow: var(--inset-shadow), var(--deep-shadow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vintage-radio::before {
  content: '';
  width: 16px;
  height: 16px;
  background: radial-gradient(
    circle,
    var(--vintage-accent) 0%,
    var(--vintage-bronze) 100%
  );
  border-radius: 50%;
  box-shadow:
    0 0 8px var(--vintage-accent),
    inset 0 1px 2px var(--emboss-highlight);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.vintage-radio.selected::before {
  opacity: 1;
  transform: scale(1);
}

.vintage-radio-label {
  font-size: 16px;
  color: var(--vintage-text-light);
  user-select: none;
}

/* ============================================
   Dropdown
   ============================================ */

.vintage-dropdown {
  position: relative;
  width: 240px;
}

.vintage-dropdown-button {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(
    180deg,
    var(--vintage-bg-light) 0%,
    var(--vintage-bg-medium) 100%
  );
  border: 3px solid var(--vintage-dark-bronze);
  border-radius: 12px;
  box-shadow: var(--inset-shadow), var(--deep-shadow);
  color: var(--vintage-text-light);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.vintage-dropdown-button::after {
  content: '▼';
  font-size: 12px;
  color: var(--vintage-bronze);
  transition: transform 0.2s ease;
}

.vintage-dropdown.open .vintage-dropdown-button::after {
  transform: rotate(180deg);
}

.vintage-dropdown-button:hover {
  background: linear-gradient(
    180deg,
    var(--vintage-bg-medium) 0%,
    var(--vintage-bg-light) 100%
  );
}

/* ============================================
   Navigation Menu
   ============================================ */

.vintage-nav {
  background: linear-gradient(
    180deg,
    var(--vintage-bg-light) 0%,
    var(--vintage-bg-medium) 100%
  );
  border: 3px solid var(--vintage-bronze);
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    inset 0 2px 4px var(--emboss-shadow),
    var(--deep-shadow);
}

.vintage-nav-item {
  padding: 12px 20px;
  color: var(--vintage-text-light);
  text-decoration: none;
  display: block;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
}

.vintage-nav-item:hover {
  background: linear-gradient(
    90deg,
    rgba(184, 134, 11, 0.2) 0%,
    rgba(205, 127, 50, 0.3) 100%
  );
  border-color: var(--vintage-dark-bronze);
  box-shadow: inset 0 1px 3px rgba(255, 215, 0, 0.2);
}

.vintage-nav-item.active {
  background: linear-gradient(
    90deg,
    var(--vintage-dark-bronze) 0%,
    var(--vintage-bronze) 100%
  );
  color: var(--vintage-text-dark);
  border-color: var(--vintage-bronze);
  box-shadow:
    inset 0 2px 4px var(--emboss-highlight),
    inset 0 -2px 4px var(--emboss-shadow);
}

/* ============================================
   Breadcrumbs
   ============================================ */

.vintage-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(
    90deg,
    rgba(45, 36, 24, 0.6) 0%,
    rgba(61, 48, 32, 0.8) 100%
  );
  border: 2px solid var(--vintage-dark-bronze);
  border-radius: 8px;
  box-shadow: var(--inset-shadow);
}

.vintage-breadcrumb-item {
  color: var(--vintage-text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.vintage-breadcrumb-item:hover {
  color: var(--vintage-accent);
}

.vintage-breadcrumb-separator {
  color: var(--vintage-bronze);
  font-size: 12px;
}

.vintage-breadcrumb-item.current {
  color: var(--vintage-accent);
  font-weight: 700;
}

/* ============================================
   Mega Menu Panel
   ============================================ */

.vintage-mega-menu {
  background: linear-gradient(
    135deg,
    var(--vintage-bg-dark) 0%,
    var(--vintage-bg-medium) 100%
  );
  border: 4px solid var(--vintage-bronze);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    inset 0 3px 6px var(--emboss-shadow),
    0 12px 32px rgba(0, 0, 0, 0.8);
  position: relative;
}

.vintage-mega-menu::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 3px solid var(--vintage-dark-bronze);
  border-radius: 24px;
  box-shadow:
    0 3px 0 var(--emboss-highlight),
    0 -3px 0 var(--emboss-shadow);
  pointer-events: none;
}

.vintage-mega-menu-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--vintage-accent);
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.vintage-mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.vintage-mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vintage-mega-menu-category {
  font-size: 16px;
  font-weight: 700;
  color: var(--vintage-bronze);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vintage-mega-menu-link {
  color: var(--vintage-text-light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.vintage-mega-menu-link:hover {
  background: rgba(184, 134, 11, 0.2);
  border-color: var(--vintage-dark-bronze);
  color: var(--vintage-accent);
  transform: translateX(4px);
}

/* ============================================
   Portfolio Header
   ============================================ */

.vintage-portfolio-header {
  background: linear-gradient(
    90deg,
    var(--vintage-bg-dark) 0%,
    var(--vintage-bg-medium) 50%,
    var(--vintage-bg-dark) 100%
  );
  border: 5px solid var(--vintage-bronze);
  border-radius: 20px;
  padding: 32px 48px;
  box-shadow:
    inset 0 4px 8px var(--emboss-shadow),
    inset 0 -4px 8px var(--emboss-highlight),
    0 16px 48px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.vintage-portfolio-header::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 4px double var(--vintage-dark-bronze);
  border-radius: 24px;
  pointer-events: none;
}

.vintage-portfolio-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(184, 134, 11, 0.03) 10px,
      rgba(184, 134, 11, 0.03) 20px
    );
  pointer-events: none;
}

.vintage-portfolio-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  color: var(--vintage-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  margin: 0;
  text-shadow:
    2px 2px 0 var(--vintage-bronze),
    4px 4px 0 var(--vintage-dark-bronze),
    6px 6px 12px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
}

.vintage-portfolio-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.vintage-portfolio-nav-item {
  color: var(--vintage-text-light);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border: 2px solid var(--vintage-bronze);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(184, 134, 11, 0.2) 0%,
    rgba(139, 105, 20, 0.3) 100%
  );
  box-shadow:
    inset 0 1px 3px var(--emboss-highlight),
    0 4px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.vintage-portfolio-nav-item:hover {
  background: linear-gradient(
    180deg,
    var(--vintage-bronze) 0%,
    var(--vintage-dark-bronze) 100%
  );
  color: var(--vintage-text-dark);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 4px var(--emboss-highlight),
    0 6px 12px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Footer Navigation
   ============================================ */

.vintage-footer-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px;
  background: linear-gradient(
    180deg,
    var(--vintage-bg-medium) 0%,
    var(--vintage-bg-dark) 100%
  );
  border-top: 3px solid var(--vintage-bronze);
  box-shadow: inset 0 3px 6px var(--emboss-shadow);
}

.vintage-footer-link {
  color: var(--vintage-text-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 6px;
}

.vintage-footer-link:hover {
  color: var(--vintage-accent);
  background: rgba(184, 134, 11, 0.2);
  text-shadow: 0 0 8px var(--vintage-accent);
}

/* ============================================
   Utility Classes
   ============================================ */

.vintage-text-embossed {
  text-shadow:
    1px 1px 2px var(--emboss-shadow),
    -1px -1px 1px var(--emboss-highlight);
}

.vintage-bg-dark {
  background: var(--vintage-bg-dark);
}

.vintage-bg-pattern {
  background:
    repeating-linear-gradient(
      0deg,
      var(--vintage-bg-dark) 0px,
      var(--vintage-bg-medium) 2px,
      var(--vintage-bg-dark) 4px
    ),
    var(--vintage-bg-dark);
}
