/* WebSkater Main Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  overflow-x: hidden;
}

/* Navigation */
#main-nav {
  display: none; /* Hidden - all navigation through phone */
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #FFD700;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-icon { font-size: 2rem; }
.logo-text { color: #FFD700; }

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

.nav-link {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

/* Main Content */
#app-content {
  min-height: 100vh; /* Full height since nav is hidden */
  padding: 2rem;
}

/* Buttons */
.btn {
  background: #FFD700;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn:hover {
  background: #FFA500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-primary {
  background: #FFD700;
  color: #000;
}

.btn-secondary {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
}

.btn-secondary:hover {
  background: #3a3a3a;
  border-color: #FFD700;
}

.btn-success {
  background: #00FF00;
  color: #000;
}

.btn-disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* HOME PAGE */
.home-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #aaa;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.feature-preview {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 1rem;
  transform: perspective(1000px) rotateY(-15deg);
}

.preview-tile {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: float 3s ease-in-out infinite;
}

.disco-tile {
  background: linear-gradient(135deg, #000, #FFF);
  animation-delay: 0s;
}

.wood-tile {
  background: linear-gradient(135deg, #8B4513, #654321);
  animation-delay: 0.5s;
}

.led-tile {
  background: linear-gradient(135deg, #FF1493, #00FFFF);
  animation-delay: 1s;
}

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

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

.feature-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #333;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

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

.feature-card h3 {
  color: #FFD700;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: #aaa;
  line-height: 1.6;
}

.stats-section {
  display: flex;
  justify-content: space-around;
  background: #1a1a1a;
  padding: 3rem;
  border-radius: 16px;
  border: 2px solid #333;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #FFD700;
}

.stat-label {
  color: #aaa;
  font-size: 1.1rem;
}

/* LOBBY PAGE */
.lobby-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.lobby-header {
  text-align: center;
  margin-bottom: 2rem;
}

.lobby-header h1 {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.lobby-header p {
  color: #aaa;
  font-size: 1.1rem;
}

.lobby-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.room-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #333;
  transition: all 0.2s;
}

.room-card:hover {
  border-color: #FFD700;
  transform: translateY(-3px);
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.room-header h3 {
  color: #fff;
  font-size: 1.2rem;
}

.room-theme {
  background: #FFD700;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.room-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #aaa;
}

.room-players {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.room-status {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.room-status.active { background: rgba(0, 255, 0, 0.2); color: #0F0; }
.room-status.full { background: rgba(255, 0, 0, 0.2); color: #F00; }
.room-status.waiting { background: rgba(255, 255, 0, 0.2); color: #FF0; }

.room-card .btn {
  width: 100%;
}

/* BUILDER PAGE */
.builder-page {
  display: flex;
  height: calc(100vh - 70px);
}

.builder-sidebar {
  width: 320px;
  background: #1a1a1a;
  padding: 2rem;
  overflow-y: auto;
  border-right: 2px solid #333;
}

.builder-sidebar h2 {
  color: #FFD700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.block-category {
  margin-bottom: 2rem;
}

.block-category h3 {
  color: #FFD700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.block-btn {
  background: #2a2a2a;
  border: 2px solid #333;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.block-btn:hover {
  border-color: #FFD700;
}

.block-btn.selected {
  background: #FFD700;
  color: #000;
  border-color: #FFD700;
}

.block-icon {
  font-size: 2rem;
}

.block-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.builder-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 2rem 0;
}

.builder-stats {
  background: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.builder-stats h3 {
  color: #FFD700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.stat-row:last-child {
  border-bottom: none;
}

.builder-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000;
}

.canvas-header {
  background: #1a1a1a;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #333;
}

.canvas-header h1 {
  color: #FFD700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.canvas-header p {
  color: #888;
  font-size: 0.95rem;
}

#builder-container {
  flex: 1;
  position: relative;
  cursor: crosshair;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .builder-page {
    flex-direction: column;
  }
  
  .builder-sidebar {
    width: 100%;
    max-height: 300px;
  }
}
