.profile-pic-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #f8f9fa;
}

.activity-table {
  margin-top: 20px;
} 
.voting-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.vote-count {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0;
}

.vote-button {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  margin: 3px 0;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-button:hover {
  background-color: #f0f0f0;
}

.vote-button.upvote.active {
  background-color: #7fbf7f;
  color: white;
}

.vote-button.downvote.active {
  background-color: #bf7f7f;
  color: white;
} 
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Netflix-style movie cards */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.search-form {
  margin-bottom: 20px;
}

.search-input {
  padding: 8px 12px;
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.search-button {
  padding: 8px 16px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.movie-card a.card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.movie-card:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.movie-poster {
  width: 100%;
  height: 300px; /* Fixed height for all poster containers */
  background-color: #f0f0f0; /* Light background for missing posters */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures the image covers the area without distortion */
}

.no-poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.movie-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.movie-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.movie-title a {
  color: #333;
  text-decoration: none;
  position: relative;
  z-index: 6; /* Higher than the card-link to ensure it's clickable */
}

.movie-title a:hover {
  color: #e50914;
}

.movie-overview {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  flex-grow: 1;
}

.movie-meta {
  font-size: 0.8rem;
  color: #888;
  margin-top: auto;
}

/* Movie detail page layout */
.movie-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0;
}

.movie-info {
  flex: 1;
  min-width: 300px;
}

.posts-container {
  flex: 2;
  min-width: 500px;
}

.movie-poster img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-poster {
  height: 300px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #666;
}

.movie-metadata {
  margin: 20px 0;
}

.movie-summary {
  margin-bottom: 20px;
}

.actions {
  margin: 20px 0;
}

/* Posts table styling */
.posts-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.posts-table th, 
.posts-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.posts-table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.posts-table tr:hover {
  background-color: #f5f5f5;
}

.post-title a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-comments-count {
  text-align: center;
}

.no-posts {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* Pagination styling for Tailwind compatibility */
.pagination {
  display: flex;
  gap: 0.5rem;
}

.pagination a, .pagination span {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
}

.pagination a:hover {
  background-color: #f8fafc;
}

.pagination .current {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.pagination .gap {
  border: none;
}

.pagination .prev, .pagination .next {
  font-weight: 500;
}

.pagination .disabled {
  color: #cbd5e1;
  pointer-events: none;
}
