/* Modern Netflix-inspired styles for movie review site */
:root {
  --primary-color: #e50914; /* Netflix red */
  --secondary-color: #b81d24; /* Darker red */
  --dark-bg: #141414; /* Netflix dark background */
  --dark-card: #181818; /* Netflix card background */
  --light-text: #e5e5e5;
  --gray-text: #b3b3b3;
  --light-bg: #f5f5f1; /* Light mode background */
  --success-color: #46d369; /* Netflix green */
  --hover-color: #333333;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  transition: all 0.3s ease;
  padding-bottom: 80px; /* Increased padding for mobile navigation */
  /* HEADER FIX: Add padding to the top to prevent content from being hidden behind navbar */
  padding-top: 70px;
}

.navbar {
  background-color: var(--dark-bg) !important;
  padding: 12px 0;
  transition: background-color 0.3s;
  /* HEADER FIX: Make navbar fixed to top */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
  height: 40px;
}

/* Fix header covering content */
.container {
  padding: 20px 15px;
}

/* HEADER FIX: Add additional spacing to content rows */
.content-row {
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Adjust the following as well */
.content-row:first-child {
  padding-top: 20px;
}

.content-row h2 {
  margin-bottom: 15px;
}

/* HEADER FIX: Add spacing to profile and search sections */
.profile-section {
  margin-top: 20px;
}

.search-container {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 50px 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.search-container h1 {
  font-weight: 700;
  margin-bottom: 20px;
}

.card {
  background-color: var(--dark-card);
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
  font-weight: 600;
  padding: 15px 20px;
  background-color: var(--dark-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  padding: 20px;
}

.btn {
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.form-control {
  border-radius: 4px;
  padding: 8px 12px;
  background-color: #333;
  border: 1px solid #444;
  color: var(--light-text);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
  border-color: var(--primary-color);
  background-color: #444;
  color: white;
}

.form-control::placeholder {
  color: var(--gray-text);
}

/* Movie cards - FIXED */
.movie-card {
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.movie-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.movie-card:hover img {
  transform: scale(1.05);
}

.movie-card .card-body {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  position: absolute;
  bottom: 0;
  width: 100%;
  color: white;
  padding: 40px 15px 15px;
}

.movie-title {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.movie-year {
  font-size: 0.85rem;
  opacity: 0.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.movie-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

/* Reviews */
.review-item {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.review-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-user {
  font-weight: 600;
  color: var(--light-text);
}

.review-rating {
  font-weight: 700;
  color: white;
  background-color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 4px;
}

.review-date {
  color: var(--gray-text);
  font-size: 0.85rem;
}

/* User profile */
.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

.user-info {
  text-align: center;
  margin-bottom: 25px;
}

.user-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.user-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-text);
}

/* Activity Timeline */
.timeline {
  position: relative;
}

.date-header {
  background-color: rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1;
}

.activity-item {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.activity-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.activity-review-card {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.activity-review-card:hover {
  transform: translateY(-2px);
}

/* Netflix-style rows */
.content-row .card-slider {
  display: flex;
  overflow-x: auto;
  padding: 5px 0 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.content-row .card-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.content-row .movie-card-container {
  flex: 0 0 auto;
  width: 180px;
  margin-right: 10px;
  scroll-snap-align: start;
}

/* Badge styles */
.badge {
  font-weight: normal;
  padding: 4px 8px;
}

/* List group Netflix style */
.list-group-item {
  background-color: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
}

.list-group-item-action:hover {
  background-color: var(--hover-color);
  color: white;
}

/* Profile page adjustments */
.profile-section .card {
  background-color: var(--dark-card);
  color: var(--light-text);
  border: none;
}

/* Slider animation */
@keyframes slideIn {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

/* Netflix-style modal */
.modal-content {
  background-color: var(--dark-card);
  color: var(--light-text);
  border: none;
  border-radius: 4px;
}

.modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Theme toggle - FIXED */
.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem; /* Make icon larger */
}

.theme-toggle i {
  color: var(--gray-text);
  transition: color 0.3s ease;
}

.theme-toggle:hover i {
  color: white;
}

/* Light theme - FIXED */
body.light-theme {
  background-color: var(--light-bg);
  color: #333;
}

body.light-theme .navbar,
body.light-theme .navbar.scrolled {
  background-color: white !important;
}

body.light-theme .navbar .nav-link {
  color: #333 !important;
}

body.light-theme .navbar .theme-toggle i {
  color: #666 !important;
}

body.light-theme .navbar .theme-toggle:hover i {
  color: #333 !important;
}

body.light-theme .dropdown-menu {
  background-color: white;
}

body.light-theme .dropdown-item {
  color: #333;
}

body.light-theme .card {
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333;
}

body.light-theme .card-header {
  background-color: white;
  border-bottom-color: #eee;
  color: #333;
}

body.light-theme .form-control {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #333;
}

body.light-theme .list-group-item {
  background-color: white;
  border-color: #eee;
  color: #333 !important; /* Force color for list items */
}

body.light-theme .text-light {
  color: #333 !important; /* Change light text to dark in light mode */
}

body.light-theme .movie-title, 
body.light-theme .movie-year,
body.light-theme .movie-info p {
  color: #333 !important; /* Force color for movie text in light mode */
  text-shadow: none; /* Remove shadows in light mode */
}

body.light-theme .movie-list-item {
  background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .movie-list-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .movie-list-item p {
  color: #333 !important;
}

body.light-theme .activity-review-card {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .activity-review-card p {
  color: #333 !important;
}

body.light-theme .mobile-menu {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .mobile-menu-item {
  color: #666;
}

body.light-theme .mobile-menu-item.active {
  color: var(--primary-color);
}

body.light-theme .text-muted {
  color: #6c757d !important;
}

body.light-theme .stat-label {
  color: #6c757d !important;
}

body.light-theme .stat-value {
  color: var(--primary-color) !important;
}

body.light-theme footer {
  background-color: #f0f0f0;
  color: #666;
}

body.light-theme footer a {
  color: #555 !important;
}

body.light-theme footer a:hover {
  color: #333 !important;
}

/* Modifications for Netflix-style thumbnails */
.thumbnail-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
}

.thumbnail-container img {
  width: 100%;
  transition: transform 0.3s ease;
}

.thumbnail-container:hover img {
  transform: scale(1.05);
}

.thumbnail-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
}

.thumbnail-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.thumbnail-year {
  font-size: 0.8rem;
  color: var(--gray-text);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* List view for movies */
.movie-list-item {
  display: flex;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}

.movie-list-item:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.05);
}

.movie-list-item img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.movie-list-item .movie-info {
  flex: 1;
}

.movie-list-item .movie-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.movie-list-item .rating-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

/* Numeric rating input (replacing stars) */
.rating-input {
  width: 80px !important;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 6px;
  display: inline-block !important;
}

.rating-input-container {
  display: flex;
  align-items: center;
}

.rating-suffix {
  font-size: 18px;
  margin-left: 8px;
  font-weight: bold;
}

/* Compact date display */
.compact-date {
  display: inline;
}

.compact-date-mobile {
  display: none;
}

/* Improved form validation styling */
.form-error {
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-top: 5px;
}

/* Profile picture preview improvements */
.profile-picture-preview {
  transition: all 0.3s ease;
}

/* Fallback poster placeholder */
.poster-placeholder {
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 24px;
  width: 100%;
  height: 100%;
  min-height: 150px;
}

/* Floating search button for mobile */
.mobile-search-btn {
  position: fixed;
  bottom: 80px; /* Position above the mobile menu */
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-btn i {
  font-size: 18px;
}

/* Toggle view buttons */
#grid-view.active, #list-view.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

#grid-view, #list-view {
  transition: all 0.3s ease;
}

/* Users table fixes */
#users-table {
  color: var(--light-text);
}

#users-table th {
  color: var(--light-text);
  border-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--dark-card);
}

#users-table td {
  color: var(--light-text);
  border-color: rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

/* Keep this existing code */
.table {
  border-collapse: collapse;
}

.table tbody tr {
  background-color: var(--dark-card);
}

body.light-theme .table tbody tr {
  background-color: white;
}

body.light-theme #users-table th {
  border-bottom: 1px solid #dee2e6; /* Light mode border */
}

/* Hero Banner with Scrolling Movie Posters as Background */
.hero-banner {
  position: relative;
  color: var(--light-text);
  padding: 80px 0 60px;
  margin-bottom: 40px;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.8);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 20px 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Poster scroll background - IMPROVED */
.poster-scroll-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.poster-scroll {
  position: absolute;
  width: 100%;
  height: 100%;
}

.poster-row {
  position: absolute;
  display: flex;
  width: max-content; /* Better browser compatibility than fit-content */
}

/* Fix the initial position of the rows */
.poster-row-1 {
  top: -5%;
  left: 0; /* Start from the beginning */
  animation: scrollLeft 80s linear infinite;
}

.poster-row-2 {
  bottom: -5%;
  left: 0; /* Position correctly */
  transform: translateX(-50%); /* Start at halfway point to offset the animation */
  animation: scrollRight 75s linear infinite;
}

.poster {
  flex: 0 0 auto;
  height: 300px;
  margin: 0 8px;
  overflow: hidden;
  transform: rotate(-3deg) scale(0.9);
  transition: transform 0.5s ease, opacity 0.3s ease, filter 0.3s ease;
  opacity: 0.7;
  filter: grayscale(30%);
  cursor: pointer;
}

.poster:nth-child(odd) {
  transform: rotate(2deg) scale(0.85);
}

.poster:nth-child(3n) {
  transform: rotate(-1deg) scale(0.95);
}

.poster img {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Improved infinite scrolling animations */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Input field styling for hero banner */
.hero-content .form-control {
  padding: 12px 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-content .btn-primary {
  padding: 12px 25px;
}

/* Light theme adjustments for hero banner */
body.light-theme .hero-overlay {
  background: rgba(245, 245, 241, 0.85);
}

body.light-theme .hero-content {
  color: #333;
}

body.light-theme .hero-content h1 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
  /* HEADER FIX: Adjust padding for mobile */
  body {
    padding-top: 60px;
  }

  .content-row .movie-card-container {
    width: 140px;
  }
  
  .navbar-brand img {
    height: 30px;
  }
  
  .hero-banner {
    padding-top: 40px; /* Reduced from 80px */
    padding-bottom: 30px; /* Reduced from 60px */
    min-height: 300px; /* Reduced from 350px */
  }
  
  .hero-content {
    padding: 10px 0; /* Reduced from 20px */
  }
  
  .hero-content h1 {
    font-size: 2rem; /* Slightly smaller heading */
    margin-bottom: 15px; /* Reduced from 20px */
  }
  
  .poster {
    height: 240px; /* Even smaller on mobile */
  }
  
  .poster-row-1 {
    top: 5%; /* Adjust position for better visibility */
    animation-duration: 120s;
  }
  
  .poster-row-2 {
    bottom: 5%;
    animation-duration: 100s;
  }
  
  /* Ensure search results display properly on mobile */
  #search-results-hero {
    position: absolute;
    width: 100%;
    z-index: 100;
  }
  
  .compact-date {
    display: none;
  }
  
  .compact-date-mobile {
    display: inline;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding: 80px 0 40px;
  }
  
  /* User table mobile improvements */
  #users-table th:nth-child(2), 
  #users-table td:nth-child(2) {
    display: none; /* Hide "Joined On" column on mobile */
  }
  
  #users-table th:nth-child(5), 
  #users-table td:nth-child(5) {
    display: none; /* Hide "Action" column on mobile */
  }
  
  #users-table .avatar,
  #users-table img {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }
  
  /* Make entire user row clickable */
  #users-table tbody tr {
    cursor: pointer;
  }
  
  /* Modal improvements */
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  /* Mobile menu styles */
  .mobile-menu {
    position: fixed;
    bottom: 10px; /* Moved up from bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: 95%; /* Not full width */
    background-color: rgba(20, 20, 20, 0.95);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .mobile-menu-item {
    text-align: center;
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.8rem;
  }
  
  .mobile-menu-item i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
  }
  
  .mobile-menu-item.active {
    color: var(--primary-color);
  }
  
  /* Mobile-friendly user list */
  .list-group-item {
    padding: 12px; /* Slightly more padding */
  }
  
  .list-group-item h6 {
    font-size: 1rem; /* Larger username */
    margin-bottom: 2px; /* Space between username and joined date */
  }
  
  .list-group-item .badge {
    font-size: 0.85rem; /* Larger badge text */
  }
  
  .list-group-item .text-muted {
    font-size: 0.8rem; /* Slightly smaller date text */
    opacity: 0.9; /* More visible muted text */
  }
  
  /* Adjust movie card images for mobile */
  .movie-card img {
    height: 210px;
  }
}

/* Netflix-style Movie Carousel Styles */

/* Card Slider Container */
.card-slider {
  display: flex;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  gap: 10px;
}

.card-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Movie Card Container */
.movie-card-container {
  flex: 0 0 auto;
  width: 180px; /* Desktop default width */
  position: relative;
  transition: transform 0.3s ease, z-index 0.3s ease;
  z-index: 1;
}

/* Hover effects */
.movie-card-container:hover {
  transform: scale(1.1);
  z-index: 10;
}

.movie-card-container:hover .movie-card {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Movie Rating Badge */
.movie-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Movie Card Body */
.movie-card .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 10px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
  color: white;
  z-index: 2;
}

.movie-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.movie-year, .movie-username {
  font-size: 0.8rem;
  opacity: 0.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Slider Control Buttons */
.card-slider-control-prev,
.card-slider-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.content-row:hover .card-slider-control-prev,
.content-row:hover .card-slider-control-next {
  opacity: 0.7;
}

.card-slider-control-prev:hover,
.card-slider-control-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.card-slider-control-prev {
  left: 10px;
}

.card-slider-control-next {
  right: 10px;
}

.card-slider-control-prev i,
.card-slider-control-next i {
  font-size: 1.2rem;
}

/* Position the content row for proper layout */
.content-row {
  position: relative;
  margin-bottom: 40px; /* Add space between rows */
}

/* Apply light theme adaptations */
body.light-theme .movie-rating {
  background-color: var(--primary-color);
  color: white;
}

body.light-theme .card-slider-control-prev,
body.light-theme .card-slider-control-next {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--dark-bg);
}

body.light-theme .card-slider-control-prev:hover,
body.light-theme .card-slider-control-next:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Fix for SVG placeholder images */
.movie-card img[src^="data:image/svg"] {
  background-color: #333;
  object-fit: contain !important;
  padding: 20px;
}

/* Additional styles for the enhanced movies page */

/* Section transition animations */
.content-row {
  transition: all 0.3s ease;
}

/* Section headers with colorful icons */
.content-row h2 i.fa-trophy {
  color: #FFD700; /* Gold */
}

.content-row h2 i.fa-clock {
  color: #3498db; /* Blue */
}

.content-row h2 i.fa-fire {
  color: #e74c3c; /* Red */
}

.content-row h2 i.fa-star {
  color: #f39c12; /* Orange */
}

.content-row h2 i.fa-gem {
  color: #9b59b6; /* Purple */
}

.content-row h2 i.fa-pen-fancy {
  color: var(--primary-color);
}

/* Improved view all buttons */
.view-all-btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.85rem;
  padding: 4px 12px;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Return button styling */
.return-btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.85rem;
  padding: 4px 12px;
}

.return-btn:hover {
  transform: translateX(-3px);
}

/* Expanded view animations */
#section-expanded-view {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section-content .col {
  animation: scaleIn 0.3s ease;
  animation-fill-mode: both;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply sequential delay to each movie card for staggered animation */
.section-content .col:nth-child(1) { animation-delay: 0.05s; }
.section-content .col:nth-child(2) { animation-delay: 0.1s; }
.section-content .col:nth-child(3) { animation-delay: 0.15s; }
.section-content .col:nth-child(4) { animation-delay: 0.2s; }
.section-content .col:nth-child(5) { animation-delay: 0.25s; }
.section-content .col:nth-child(6) { animation-delay: 0.3s; }
.section-content .col:nth-child(7) { animation-delay: 0.35s; }
.section-content .col:nth-child(8) { animation-delay: 0.4s; }
.section-content .col:nth-child(9) { animation-delay: 0.45s; }
.section-content .col:nth-child(10) { animation-delay: 0.5s; }
.section-content .col:nth-child(11) { animation-delay: 0.55s; }
.section-content .col:nth-child(12) { animation-delay: 0.6s; }

/* Enhanced movie cards hover effect */
.section-content .movie-card-container:hover {
  transform: translateY(-5px) scale(1.05);
  transition: all 0.3s ease;
}

/* Badge for review count */
.review-count-badge {
  font-size: 0.75rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
}

.review-count-badge i {
  margin-right: 3px;
  font-size: 0.7rem;
}

/* Enhanced CTA card */
.content-row .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Styling for the hero banner search */
.hero-content .input-group {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.hero-content .input-group .form-control {
  padding: 15px 20px;
  font-size: 1.1rem;
  border: none;
}

.hero-content .input-group .btn {
  padding-left: 20px;
  padding-right: 20px;
}

/* Improved slider controls */
.card-slider-control-prev,
.card-slider-control-next {
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: all 0.3s ease;
}

.content-row:hover .card-slider-control-prev,
.content-row:hover .card-slider-control-next {
  opacity: 0.7;
}

/* Improved positioning for movie rating badge */
.movie-rating {
  top: 8px;
  right: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  padding: 4px 8px;
}

/* Light theme adaptations */
body.light-theme .content-row h2 i {
  /* Keep colorful icons in light mode */
  color: inherit;
  opacity: 0.9;
}

body.light-theme .movie-rating {
  background-color: var(--primary-color);
  color: white;
}

body.light-theme #section-expanded-view {
  background-color: rgba(245, 245, 241, 0.5);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .input-group .form-control,
  .hero-content .input-group .btn {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .section-content {
    /* Make sure grid has proper spacing on mobile */
    margin: 0 -8px;
  }
  
  .section-content .col {
    padding: 8px;
  }
  
  /* Adjust animation timing on mobile for performance */
  .section-content .col {
    animation-duration: 0.2s;
  }
  
  /* Smaller movie card on mobile */
  .movie-card img {
    height: 180px;
  }
}

/* Additional styles for the enhanced movies page */

/* Section transition animations */
.content-row {
  transition: all 0.3s ease;
}

/* Section headers with colorful icons */
.content-row h2 i.fa-film {
  color: #2ecc71; /* Green for New Releases */
}

.content-row h2 i.fa-trophy {
  color: #FFD700; /* Gold for Top Rated */
}

.content-row h2 i.fa-fire {
  color: #e74c3c; /* Red for Most Popular */
}

.content-row h2 i.fa-clock {
  color: #3498db; /* Blue for Recently Rated */
}

.content-row h2 i.fa-chart-line {
  color: #1abc9c; /* Turquoise for Trending */
}

.content-row h2 i.fa-pen-fancy {
  color: var(--primary-color);
}

/* Improved view all buttons */
.view-all-btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.85rem;
  padding: 4px 12px;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Return button styling */
.return-btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.85rem;
  padding: 4px 12px;
}

.return-btn:hover {
  transform: translateX(-3px);
}

/* Expanded view animations */
#section-expanded-view {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section-content .col {
  animation: scaleIn 0.3s ease;
  animation-fill-mode: both;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply sequential delay to each movie card for staggered animation */
.section-content .col:nth-child(1) { animation-delay: 0.05s; }
.section-content .col:nth-child(2) { animation-delay: 0.1s; }
.section-content .col:nth-child(3) { animation-delay: 0.15s; }
.section-content .col:nth-child(4) { animation-delay: 0.2s; }
.section-content .col:nth-child(5) { animation-delay: 0.25s; }
.section-content .col:nth-child(6) { animation-delay: 0.3s; }
.section-content .col:nth-child(7) { animation-delay: 0.35s; }
.section-content .col:nth-child(8) { animation-delay: 0.4s; }
.section-content .col:nth-child(9) { animation-delay: 0.45s; }
.section-content .col:nth-child(10) { animation-delay: 0.5s; }
.section-content .col:nth-child(11) { animation-delay: 0.55s; }
.section-content .col:nth-child(12) { animation-delay: 0.6s; }

/* Enhanced movie cards hover effect */
.section-content .movie-card-container:hover {
  transform: translateY(-5px) scale(1.05);
  transition: all 0.3s ease;
}

/* New badge for recently released movies */
.new-badge {
  font-size: 0.7rem;
}

/* Trending icon styling */
.trending-badge {
  color: #2ecc71;
  font-size: 0.8rem;
}

/* TMDB rating badge styling */
.movie-rating i.fa-star {
  font-size: 0.7rem;
  margin-right: 2px;
}

/* Add an indicator for external ratings */
.movie-card .movie-rating:has(i.fa-star) {
  display: flex;
  align-items: center;
  background-color: #444;
}

/* Light theme variant */
body.light-theme .movie-card .movie-rating:has(i.fa-star) {
  background-color: #aaa;
}

/* Enhanced CTA card */
.content-row .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Styling for the hero banner search */
.hero-content .input-group {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.hero-content .input-group .form-control {
  padding: 15px 20px;
  font-size: 1.1rem;
  border: none;
}

.hero-content .input-group .btn {
  padding-left: 20px;
  padding-right: 20px;
}

/* Improved slider controls */
.card-slider-control-prev,
.card-slider-control-next {
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: all 0.3s ease;
}

.content-row:hover .card-slider-control-prev,
.content-row:hover .card-slider-control-next {
  opacity: 0.7;
}

/* Improved positioning for movie rating badge */
.movie-rating {
  top: 8px;
  right: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  padding: 4px 8px;
}

/* Light theme adaptations */
body.light-theme .content-row h2 i {
  /* Keep colorful icons in light mode */
  color: inherit;
  opacity: 0.9;
}

body.light-theme .movie-rating {
  background-color: var(--primary-color);
  color: white;
}

body.light-theme #section-expanded-view {
  background-color: rgba(245, 245, 241, 0.5);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .input-group .form-control,
  .hero-content .input-group .btn {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .section-content {
    /* Make sure grid has proper spacing on mobile */
    margin: 0 -8px;
  }
  
  .section-content .col {
    padding: 8px;
  }
  
  /* Adjust animation timing on mobile for performance */
  .section-content .col {
    animation-duration: 0.2s;
  }
  
  /* Smaller movie card on mobile */
  .movie-card img {
    height: 180px;
  }
}

/* Profile Stats Enhancements */
.stat-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item span {
    color: var(--light-text);
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

body.light-theme .stat-value {
    color: var(--primary-color);
}

body.light-theme .stat-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Tab styles for profile */
.nav-tabs .nav-link {
    color: var(--gray-text);
    border-color: transparent;
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--light-text);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.1);
}

body.light-theme .nav-tabs .nav-link {
    color: #666;
}

body.light-theme .nav-tabs .nav-link.active {
    color: #333;
    background-color: white;
    border-color: #dee2e6;
}

/* Watchlist and Watched movie cards */
.movie-card .badge {
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-item {
        padding: 8px 0;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}