/* Game Detail Page Styles */

/* YouTube Embeds */
.youtube-embeds {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.youtube-embeds .ratio {
  border-radius: 10px;
  box-shadow: 0 2px 12px #0002;
  width: 100%;
  margin: 0;
  max-width: 100%;
}

.youtube-embeds iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
}

/* Preview Cards */
.preview-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
}

.preview-card:hover {
  background-color: #e9ecef;
  cursor: pointer;
}

.preview-card-readonly {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  cursor: default;
}

.preview-card-readonly:hover {
  background-color: #f8f9fa;
}

.preview-card-pending {
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #fff3cd;
  cursor: default;
}

/* Forum Table Styling */
.game-forum-table {
  table-layout: fixed;
  width: 100%;
  background: #fff;
  margin-bottom: 1rem;
}

.game-forum-table th, 
.game-forum-table td {
  vertical-align: middle;
  padding: 0.65rem 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-forum-table th.col-thread, 
.game-forum-table td.col-thread { 
  width: 45%; 
  white-space: normal; 
}

.game-forum-table th.col-user, 
.game-forum-table td.col-user { 
  width: 20%; 
}

.game-forum-table th.col-date, 
.game-forum-table td.col-date { 
  width: 25%; 
}

.game-forum-table th.col-replies, 
.game-forum-table td.col-replies { 
  width: 10%; 
  text-align: right; 
}

.game-forum-table thead.table-dark th {
  background: #232326 !important;
  color: #fff;
}

.game-forum-table tbody tr:hover {
  background-color: #f8f9fa;
}

.game-forum-table a {
  color: #333;
}

.game-forum-table a:hover {
  color: #0d6efd;
}

/* Responsive Design */
/* Screenshots grid */
#screenshot-thumbs img.screenshot-thumb {
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#screenshot-thumbs img.screenshot-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Multi-upload dropzone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 24px;
  background: #f8fafc;
  cursor: pointer;
}
.dropzone.dragover { background: #eef6ff; border-color: #60a5fa; }

/* Lightbox improvements */
.modal.screenshot-lightbox .modal-dialog { max-width: 1000px; }
.modal-backdrop.show { opacity: 0.9; }
.screenshot-lightbox .btn { opacity: 0.85; }
.screenshot-lightbox .btn:hover { opacity: 1; }
.screenshot-lightbox .btn-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 2;
}
.screenshot-lightbox .modal-content { overflow: hidden; }
.screenshot-lightbox .modal-body { position: relative; }

@media (max-width: 900px) {
  .game-forum-table th, 
  .game-forum-table td { 
    font-size: .95rem; 
  }
  
  .game-forum-table th.col-thread, 
  .game-forum-table td.col-thread { 
    width: 50%; 
  }
  
  .game-forum-table th.col-user, 
  .game-forum-table td.col-user { 
    width: 25%; 
  }
  
  .game-forum-table th.col-date, 
  .game-forum-table td.col-date { 
    width: 25%; 
  }
  
  .game-forum-table th.col-replies, 
  .game-forum-table td.col-replies { 
    width: 0%; 
    display: none; 
  }
}

@media (max-width: 600px) {
  .game-forum-table th, 
  .game-forum-table td { 
    font-size: .91rem; 
    padding: 0.45rem 0.5rem; 
  }
  
  .game-forum-table th.col-thread, 
  .game-forum-table td.col-thread { 
    width: 60%; 
  }
  
  .game-forum-table th.col-user, 
  .game-forum-table td.col-user { 
    width: 0%; 
    display: none; 
  }
  
  .game-forum-table th.col-date, 
  .game-forum-table td.col-date { 
    width: 40%; 
  }
}
