/* Main Content Layout - Single Column */
.main-content {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Game Section takes full width */
.game-section {
  width: 100%;
}

/* Sidebar is now positioned below main content */
.sidebar {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Game Section Styling */
.game-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-heavy);
  border: 2px solid var(--border-primary);
}

.game-header {
  background: var(--bg-primary);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-primary);
}

.game-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-accent);
  text-shadow: 3px 3px 6px var(--shadow-heavy);
  letter-spacing: 2px;
}

.game-subtitle {
  font-size: 16px;
  color: #ffffff;
  margin-top: 5px;
  letter-spacing: 1px;
}

.game-stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.likes, .plays {
  background: var(--border-light);
  padding: 5px 10px;
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 14px;
  border: 1px solid var(--border-secondary);
}

.favorite-game {
  background: var(--border-secondary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  user-select: none;
}

.favorite-game:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.game-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio for better game display */
  min-height: 600px; /* Increased min-height for complete display */
  max-height: 700px; /* Increased max-height for desktop */
  background: linear-gradient(135deg, rgb(10, 25, 47), rgb(0, 102, 204));
  position: relative;
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.mini-golf-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(10, 25, 47), rgb(0, 102, 204));
  border: none;
}

.game-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.switch-btn {
  background: linear-gradient(135deg, rgb(10, 25, 47), rgb(0, 102, 204));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-btn:hover {
  background: linear-gradient(135deg, rgb(0, 102, 204), rgb(10, 25, 47));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.game-controls {
  background: rgba(10, 25, 47, 0.9);
  padding: 15px 20px;
  color: white;
  font-size: 14px;
  border-top: 1px solid #0066cc;
}
