/* In style.css (add to bottom) */

/* --- New My Spaces Grid & Cards --- */

/* The Container for the grid */
.spaces-grid {
  display: grid;
  /* This creates columns that automatically fill space,
     but are at least 180px wide. Good for responsiveness. */
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

/* The Card Module (inspired by Pinterest/image_0.png) */
.space-card {
  position: relative; /* Needed to make the whole card clickable later */
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px; /* Rounded corners like the reference image */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3/4; /* Taller than wide aspect ratio */
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

/* Hover effect for the card */
.space-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Placeholder for a future cover image */
.space-card-placeholder {
  flex: 1; /* Takes up all available height */
  background: var(--bg); /* Slightly different shade than card bg */
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--border-subtle);
}

/* The bottom text area of the card */
.space-card-info {
  padding: 1rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border-subtle);
}

.space-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Stretch the link to cover the whole card */
.space-card-title a {
  text-decoration: none;
  color: inherit;
}
.space-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}


/* --- Empty State Styling --- */
.spaces-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Tall area to center the button */
  text-align: center;
  gap: 1.5rem;
  color: var(--muted);
}

/* The big button */
.big-create-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 999px;
  /* Inherits standard button colors */
}
