/* Grid Wrapper */
.sgd-game-grid-wrapper {
  margin-top: 2rem;
}

/* Toolbar */
.sgd-slot-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.sgd-slot-toolbar input[type="text"],
.sgd-slot-toolbar select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 0.75rem center;
  background-size: 16px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.9rem;
  min-width: 140px;
}

.sgd-slot-toolbar label {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Grid Layout */
.sgd-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Game Card */
.sgd-game-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sgd-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Thumbnail */
.sgd-thumb-container img {
  width: 100%;
  height: auto;
  display: block;
}

.sgd-no-thumb {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  background: #eee;
  color: #888;
  font-size: 0.95rem;
}

/* Game Info */
.sgd-game-info {
  padding: 1rem;
  flex: 1;
}

.sgd-game-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.highlight-rtp-wrapper {
  position: relative;
  width: 100%;
  height: 15px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.highlight-rtp-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(to right, #10b981, #06b6d4);
  width: 0%;
  transition: width 1.2s ease-in-out;
  border-radius: 6px;
  z-index: 1;
}

.rtp-text {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Jam Info */
.jam {
  font-size: 0.85rem;
  color: #777;
  margin: 0.3rem 0 0.5rem;
}

/* Tags */
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
}

/* CTA Buttons */
.cta {
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 1rem;
  border-top: 1px solid #eee;
}

.button {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: 0.2s ease;
  display: inline-block;
}

.button.demo {
  background-color: #d1f4f2 !important;
  color: #056676 !important;
}

.button.demo:hover {
  background-color: #b2e8e5 !important;
  color: #666666 !important;
}

.button.main {
  background-color: #ff5722 !important;
  color: #fff !important;
}

.button.main:hover {
  background-color: #e64a19 !important;
}

/* Pagination */
.sgd-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.sgd-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sgd-pagination li {
    display: inline-block;
}

.sgd-pagination li a,
.sgd-pagination li span {
    display: inline-block;
    padding: 8px 12px;
    background: #eee;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.sgd-pagination li span.current {
    background: #ff5722;
    color: #fff;
}

@media (max-width: 768px) {
  .sgd-slot-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.sgd-thumb-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.sgd-game-card {
  display: flex;
  flex-direction: column;
}

.sgd-game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sgd-actions {
  margin-top: auto;
}
