/* ============================================
   BAR U PUMY - MAIN STYLES
   Dark lounge theme with gold accents
   ============================================ */

:root {
  --gold: #d4af37;
  --gold-light: #f0d878;
  --gold-dark: #aa8c2c;
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-card: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #888888;
  --neon-pink: #ff2d95;
  --neon-purple: #b347d9;
  --danger: #e74c3c;
  --success: #2ecc71;
  --warning: #f39c12;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background layer */
#bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: background-image 1.5s ease-in-out;
}

#bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);
}

#blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.5s ease;
  pointer-events: none;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 48px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  position: relative;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 0 80px rgba(255, 45, 149, 0.15);
  margin-bottom: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--neon-pink);
  font-style: italic;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(255, 45, 149, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

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

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Titles */
.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--neon-pink));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: rgba(10, 10, 10, 0.92);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: var(--black-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Game Section */
.game-section {
  padding: 5rem 0;
  background: rgba(10, 10, 10, 0.95);
}

.game-description {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--black-card);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-label {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}

.stat-bar {
  width: 120px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.5s ease, background 0.3s ease;
}

#drunk-bar {
  background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
}

#hunger-bar {
  background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
}

#score {
  font-weight: 800;
  color: var(--gold);
  font-size: 1.2rem;
  min-width: 40px;
  text-align: center;
}

#game-canvas-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
  background: var(--black-soft);
}

#game-canvas {
  display: block;
  width: 100%;
  height: 500px;
  cursor: crosshair;
}

#game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

#game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-over-content {
  text-align: center;
  padding: 2rem;
}

.game-over-content h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.game-over-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.game-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--black-card);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.legend-emoji {
  font-size: 1.5rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: rgba(10, 10, 10, 0.92);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--black-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
}

.info-card h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.transport-buttons {
  background: var(--black-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
}

.transport-buttons h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.transport-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--black-soft);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.transport-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateX(5px);
}

.transport-icon {
  font-size: 1.5rem;
}

.map-container {
  position: sticky;
  top: 100px;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
}

.route-info {
  margin-top: 1rem;
  background: var(--black-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.route-info.hidden {
  display: none;
}

.route-info h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

#route-details {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

#route-fun {
  color: var(--neon-pink);
  font-style: italic;
  font-size: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--black-soft);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-made {
  color: var(--gold) !important;
  font-style: italic;
  margin-top: 1rem;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    position: static;
  }

  #game-canvas {
    height: 350px;
  }

  .game-stats {
    flex-direction: column;
    align-items: center;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Puma canvas overlay effects */
.puma-drunk-effect {
  animation: drunkScreen 0.5s ease-in-out;
}

@keyframes drunkScreen {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-5px, 3px) rotate(1deg); }
  50% { transform: translate(5px, -3px) rotate(-1deg); }
  75% { transform: translate(-3px, -5px) rotate(0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
