.twitter-grid {
  display: flex;
  flex-direction: column; /* Stack cards vertically */
  align-items: center; /* Center the column horizontally */
  gap: 25px;
  padding-top: 20px;
}

.tweet-card-container {
  /* Outer frame (Orange) */
  background-color: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 14px;
  padding: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%; /* Card takes full width of the column */
  max-width: 550px; /* Control max width for readability on large screens */
}

.tweet-card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.2);
}

.tweet-card-inner {
  /* Inner frame (Dark Grey) */
  background-color: transparent;
  border-radius: 12px;
  padding: 1.2rem;
  position: relative; /* Positioning context for spinner and tweet */
  min-height: 150px; /* Ensure container has height for the spinner */
}

.twitter-grid .twitter-tweet {
  margin: 0;
  width: 100%;
  position: relative; /* Positioned to sit on top of the loader */
  z-index: 2; /* Higher z-index to cover the spinner */

  /* Twitter's dark theme background color to ensure it's not transparent */
  background-color: var(--color-twitter-dark);
}

/* Loader styles have been moved to css/components/loader.css */
