/* GameForge Custom Styles */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* container uses padding-bottom for aspect ratio; inner container fills absolutely */
.game-container-wrapper {
  position: relative;
  width: 100%;
  background: #222;
  display: block;
}

.game-iframe {
  display: block;
  height: 600px;
  width: 100%;
}

.game-iframe:fullscreen {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.game-iframe:-webkit-full-screen {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.game-controls button {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.game-controls button:hover {
  opacity: 1;
}

.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.game-card {
  border-radius: 10px;
  overflow: hidden;
}

.game-card .card-img-top {
  transition: transform 0.3s ease;
}

.game-card:hover .card-img-top {
  transform: scale(1.05);
}

.table th {
  font-weight: 600;
  border-top: none;
  color: #495057;
}

.badge {
  font-size: 0.75em;
}

.alert {
  border-radius: 8px;
  border: none;
}

.form-control, .form-select {
  border-radius: 6px;
  border: 1px solid #ced4da;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.jumbotron {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
}

.footer {
  margin-top: 3rem;
}

.game-container {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.game-container iframe {
  display: block;
  margin: 0 auto;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn-group .btn {
    padding: 0.25rem 0.5rem;
  }
}

/* Animation for page transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
