/* PATH Pinball — style.css */
/* PATH Design System CSS Variables */
:root {
  --path-primary: #ff6600;
  --path-secondary: #5176ba;
  --path-accent-cyan: #05c6dd;
  --path-accent-blue: #497eec;
  --path-cta-orange: #eb5d1a;
  --path-dark: #3d3c48;
  --path-dark-alt: #3e3c48;
  --path-dark-navy: #0e1828;
  --path-bg-light: #fbfbfd;
  --path-bg-gray: #f2f2f2;
  --path-white: #ffffff;
  --path-off-white: #f1f1f1;
  --path-border-gray: #e7e5e5;
  --path-muted: #8b9298;
  --path-font-family: "Inter", sans-serif;
  --path-radius-sm: 4px;
  --path-radius-md: 10px;
  --path-shadow-card: 0 6px 10px 0 rgba(216, 221, 230, 0.5);
  --path-shadow-card-hover: 0 8px 14px 0 rgba(62, 60, 72, 0.2);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--path-font-family);
  background: var(--path-dark-navy);
  color: var(--path-off-white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Google Fonts loaded in HTML */

/* ──────────────────────────────────────────────────────
   NAVBAR
────────────────────────────────────────────────────── */
.navbar {
  background: var(--path-dark-navy);
  border-bottom: 1px solid rgba(81, 118, 186, 0.3);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-divider {
  width: 1px;
  height: 28px;
  background: rgba(81, 118, 186, 0.5);
}

.navbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--path-accent-cyan);
  text-shadow: 0 0 10px rgba(5, 198, 221, 0.5);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-score-pill {
  background: rgba(81, 118, 186, 0.15);
  border: 1px solid rgba(81, 118, 186, 0.4);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--path-off-white);
}

.navbar-score-pill span {
  color: var(--path-accent-cyan);
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────
   MAIN GAME LAYOUT
────────────────────────────────────────────────────── */
.game-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  min-height: calc(100vh - 64px - 180px);
}

/* ──────────────────────────────────────────────────────
   SCORE PANEL (left sidebar)
────────────────────────────────────────────────────── */
.score-panel {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 80px;
}

.score-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(81, 118, 186, 0.3);
  border-radius: var(--path-radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--path-shadow-card);
  transition: box-shadow 0.2s ease;
}

.score-card:hover {
  box-shadow: var(--path-shadow-card-hover);
}

.score-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--path-muted);
  margin-bottom: 6px;
}

.score-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--path-accent-cyan);
  text-shadow: 0 0 12px rgba(5, 198, 221, 0.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.score-card-value.orange {
  color: var(--path-primary);
  text-shadow: 0 0 12px rgba(255, 102, 0, 0.4);
}

.score-card-value.white {
  color: var(--path-off-white);
  text-shadow: none;
  font-size: 1.5rem;
}

/* Lives display */
.lives-display {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.life-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--path-primary);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
  transition: all 0.3s ease;
}

.life-dot.lost {
  background: rgba(255, 102, 0, 0.15);
  box-shadow: none;
}

/* Level badge */
.level-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--path-secondary), var(--path-accent-blue));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 4px;
}

/* Controls hint card */
.controls-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(81, 118, 186, 0.2);
  border-radius: var(--path-radius-md);
  padding: 1rem 1.2rem;
}

.controls-card h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--path-secondary);
  margin-bottom: 0.75rem;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--path-muted);
}

.control-row:last-child { margin-bottom: 0; }

.key-badge {
  background: rgba(81, 118, 186, 0.2);
  border: 1px solid rgba(81, 118, 186, 0.4);
  border-radius: var(--path-radius-sm);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--path-accent-cyan);
  font-family: monospace;
}

/* ──────────────────────────────────────────────────────
   CANVAS WRAPPER
────────────────────────────────────────────────────── */
.canvas-wrapper {
  position: relative;
  flex-shrink: 0;
}

#gameCanvas {
  display: block;
  border-radius: var(--path-radius-md);
  box-shadow:
    0 0 0 1px rgba(81, 118, 186, 0.3),
    0 0 40px rgba(5, 198, 221, 0.08),
    0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

#gameCanvas:focus { outline: none; }

/* Score flash overlay */
.score-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--path-accent-cyan);
  text-shadow: 0 0 10px rgba(5, 198, 221, 0.8);
  opacity: 0;
  transition: opacity 0.1s;
}

/* ──────────────────────────────────────────────────────
   RIGHT SIDEBAR
────────────────────────────────────────────────────── */
.right-panel {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 80px;
}

.info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(81, 118, 186, 0.3);
  border-radius: var(--path-radius-md);
  padding: 1.2rem;
  box-shadow: var(--path-shadow-card);
}

.info-card h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--path-secondary);
  margin-bottom: 0.75rem;
}

.bumper-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bumper-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--path-muted);
}

.bumper-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bumper-dot.cyan {
  background: var(--path-accent-cyan);
  box-shadow: 0 0 6px rgba(5, 198, 221, 0.8);
}

.bumper-dot.orange {
  background: var(--path-primary);
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.8);
}

.bumper-dot.special {
  background: #a855f7;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
}

/* Floating shapes animation */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  animation: float 7s infinite cubic-bezier(.52, .01, .47, 1);
}

.shape-1 {
  width: 300px; height: 300px;
  background: var(--path-secondary);
  top: 10%; left: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px; height: 200px;
  background: var(--path-accent-cyan);
  top: 60%; right: -3%;
  animation-delay: -3.5s;
}

.shape-3 {
  width: 150px; height: 150px;
  background: var(--path-primary);
  bottom: 20%; left: 15%;
  animation-delay: -1.5s;
}

@keyframes float {
  0%   { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(30px) translateY(16px); }
  100% { transform: translateX(0) translateY(0); }
}

/* ──────────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  background: var(--path-secondary);
  border-radius: var(--path-radius-sm);
  padding: 2rem;
  margin: 0 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-top h4 {
  color: var(--path-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-top p {
  color: var(--path-off-white);
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 4px;
}

.footer-cta-btn {
  background: var(--path-primary);
  color: white;
  border: none;
  border-radius: var(--path-radius-sm);
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.footer-cta-btn:hover {
  background: var(--path-cta-orange);
  transform: translateY(-1px);
}

.footer-dark {
  background: var(--path-dark-navy);
  border-top: 1px solid rgba(81, 118, 186, 0.2);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-dark-text {
  color: var(--path-off-white);
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social-links a {
  color: var(--path-accent-cyan);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.footer-social-links a:hover {
  opacity: 0.8;
  text-shadow: 0 0 8px rgba(5, 198, 221, 0.6);
}

/* ──────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .right-panel { display: none; }
}

@media (max-width: 820px) {
  .score-panel { display: none; }
  .game-layout { padding: 1rem; }
}

@media (max-width: 520px) {
  #gameCanvas { width: 100% !important; height: auto !important; }
  .game-layout { padding: 0.5rem; }
  .navbar { padding: 0 1rem; }
  .navbar-title { display: none; }
}
