/* ================================================================
   nav.css — Project Car Magazine
================================================================ */

#pcm-topbar {
  background: #E8001D;
  text-align: center;
  padding: 7px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  z-index: 200;
  line-height: 1.5;
}
#pcm-topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

#pcm-header {
  background: #0D0D0D;
  border-bottom: 3px solid #E8001D;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 150;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

#pcm-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
#pcm-logo img {
  display: block;
  width: 320px;
  height: 88px;
  max-width: none;
  object-fit: contain;
}

#pcm-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
  margin: 0; padding: 0; list-style: none;
}
#pcm-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #F5F5F5;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
#pcm-nav a:hover { color: #E8001D; }
#pcm-nav a.pcm-active {
  color: #E8001D;
  border-bottom: 2px solid #E8001D;
  padding-bottom: 2px;
}
#pcm-nav a.pcm-cta {
  background: #E8001D;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 3px;
  border-bottom: none !important;
}
#pcm-nav a.pcm-cta:hover { background: #c0001a; }

#pcm-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid #2C2C2C;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  transition: border-color .2s;
  flex-shrink: 0;
}
#pcm-burger:hover { border-color: #E8001D; }
#pcm-burger span {
  display: block;
  width: 100%; height: 2px;
  background: #F5F5F5;
  border-radius: 2px;
  transition: all .3s;
  transform-origin: center;
}
#pcm-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#pcm-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#pcm-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#pcm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
}
#pcm-overlay.visible { opacity: 1; }

#pcm-mobile-panel {
  position: fixed;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: #1A1A1A;
  border-left: 3px solid #E8001D;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  z-index: 160;
  box-sizing: border-box;
}
#pcm-mobile-panel.visible { transform: translateX(0); }

.pcm-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #2C2C2C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}
.pcm-panel-header a img {
  display: block !important;
  width: 160px !important;
  height: 44px !important;
  max-width: none !important;
  object-fit: contain !important;
}

#pcm-close-btn {
  width: 32px; height: 32px; min-width: 32px;
  background: #2C2C2C;
  border: none; border-radius: 4px;
  color: #F5F5F5;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  line-height: 1;
}
#pcm-close-btn:hover { background: #E8001D; }

.pcm-panel-links { padding: 12px 0; flex: 1; }
.pcm-panel-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .2s;
  box-sizing: border-box;
}
.pcm-panel-links a:hover { color: #F5F5F5; background: rgba(255,255,255,0.04); border-left-color: #2C2C2C; }
.pcm-panel-links a.pcm-active { color: #E8001D; background: rgba(232,0,29,0.08); border-left-color: #E8001D; }
.pcm-panel-links .pcm-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.pcm-panel-divider { height: 1px; background: #2C2C2C; margin: 8px 22px; }

.pcm-panel-network { padding: 14px 20px 20px; border-top: 1px solid #2C2C2C; }
.pcm-panel-network-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #999; margin-bottom: 10px;
}
.pcm-panel-network-links { display: flex; flex-direction: column; gap: 8px; }
.pcm-panel-network-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #2C2C2C;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  box-sizing: border-box;
  color: #999;
  border-left: 1px solid #2C2C2C !important;
}
.pcm-panel-network-links a.green { color: #00C896 !important; }
.pcm-panel-network-links a.blue  { color: #0066FF !important; }
.pcm-panel-network-links a.green:hover { border-color: #00C896 !important; background: rgba(0,200,150,0.08); }
.pcm-panel-network-links a.blue:hover  { border-color: #0066FF !important; background: rgba(0,102,255,0.08); }

.pcm-panel-cta {
  display: block;
  margin: 14px 20px 20px;
  padding: 12px;
  background: #E8001D; color: #fff !important;
  text-align: center; border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
  box-sizing: border-box;
  border-left: none !important;
}
.pcm-panel-cta:hover { background: #c0001a !important; }

@media (max-width: 900px) {
  #pcm-header { padding: 10px 20px; }
  #pcm-nav    { display: none !important; }
  #pcm-burger { display: flex !important; }
}
@media (min-width: 901px) {
  #pcm-overlay,
  #pcm-mobile-panel { display: none !important; }
  #pcm-burger       { display: none !important; }
}
