/* 🎮 Enhanced House Games Grid Styling - 3 Column Layout */

/* Main container grid settings */
.house-games-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Responsive grid - tablet (2 columns) */
@media (min-width: 768px) {
  .house-games-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive grid - desktop (3 columns) */
@media (min-width: 1024px) {
  .house-games-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card styling and effects */
.house-games-container li.card {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(5px);
}

.house-games-container li.card:hover {
  /* Removed transform for hover to prevent jitter */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card header styling */
.house-games-container .card-title {
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.house-games-container .card-title h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.house-games-container .card-title h2 a {
  color: rgb(var(--primary));
  text-decoration: none;
}

/* Game icon styling */
.game-icon-wrapper {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

/* Removed hover transform effect for game icon wrapper to prevent jitter */

/* Game content layout */
.house-games-container .forum-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.house-games-container .forum-title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: rgb(var(--text-primary));
}

.house-games-container .forum-desc {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(var(--text-secondary));
}

/* Button styling */
.btn-primary-outline, .btn-secondary-outline {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary-outline {
  background: linear-gradient(135deg, rgba(var(--primary), 1), rgba(var(--primary-hover), 1));
  color: white;
  border: none;
}

.btn-secondary-outline {
  border: 1px solid rgba(var(--primary), 0.5);
  color: rgb(var(--primary));
  background-color: rgba(var(--primary), 0.05);
}

.btn-primary-outline:hover, .btn-secondary-outline:hover {
  /* Removed transform to prevent jitter */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary-outline:hover {
  background: linear-gradient(135deg, rgba(var(--primary-hover), 1), rgba(var(--primary), 1));
}

.btn-secondary-outline:hover {
  background-color: rgba(var(--primary), 0.1);
  border-color: rgba(var(--primary), 0.8);
}

/* Pulse animation for primary buttons */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary), 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary), 0);
  }
}

/* Action buttons container */
.game-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .house-games-container .forum-details {
    margin-top: 0.5rem;
  }
  
  .game-actions {
    margin-top: 1rem;
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary-outline, .btn-secondary-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}