/* ------------------------------------ MAIN PAGE STYLES ------------------------------------ */

/* Light mode styles */
body {
    background-color: white !important; /* Ensure white background */
    color: black; /* Black text color */
}

.page-margin {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 100px;
    margin-right: 100px;
}

/* Dark mode styles */
body.dark-mode {
    background-color: black !important; /* Ensure black background */
    color: white; /* White text color */
}

/* ------------------------------------ HEADERS ------------------------------------ */
h1 {
    margin-top: 20px;
    color: #000000; /* Black text for light mode */
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 80px;
}

body.dark-mode h1 {
    color: #ffffff; /* White text for dark mode */
}

h2 {
    color: #cfb87c; /* Red color for headings */
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
}

h4 {
    font-size: 40px;
    color: #fed160;
}

/* ------------------------------------ NAVIGATION BAR ------------------------------------ */
.navbar {
    background-color: transparent; /* Same background color for both modes */
    margin: 0; /* Removes any margin */
    padding: 0; /* Adjust padding if needed */
}

.navbar-toggler {
    border: none; /* Remove border around the button */
}

.navbar-toggler-icon {
    background-color: #333240; /* Change color */
    border-radius: 4px; /* Rounded corners */
}


.nav-link {
    color: #565a5c; /* Color for other pages */
}

.nav-link:hover {
    color: #000000; /* Hover state in both modes */
}

.nav-link.active {
    color: #000000; /* Current page color */
}

body.dark-mode .nav-link {
    color: #565a5c; /* Other pages in dark mode */
}

body.dark-mode .nav-link.active {
    color: #000000; /* Current page color in dark mode */
}
  

/*remove arrow from dropdown*/
.dropdown-toggle::after {
    display: none; 
}

/* Dark mode toggle switch styling */
.form-check-input {
    width: 60px;
    height: 20px;
    background-color: transparent; 
    border-color: #cfb87c;
    appearance: none;
    cursor: pointer;
    border-radius: 15px;
    position: relative;
    outline: none;
    transition: background-color 0.3s ease;
}

.form-check-input:checked {
    background-color: #cfb87c; 
    border-color: #cfb87c;
} 

.form-check {
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

.small-text {
    font-size: 12px; /* Make the text smaller */
    display: block; /* Ensure the text is displayed above the switch */
    margin-bottom: 5px; /* Add a small margin to separate the text from the switch */
    color: #000000; /* Default to black text for light mode */
}

body.dark-mode .small-text {
    color: #ffffff; /* White text for dark mode */
}

.profile-picture {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
}

/* Reduce size for mobile screens */
@media only screen and (max-width: 600px) {
    .profile-picture {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
    }
}

/* Notification button matches dropdown */
.notification-btn {
    border: none;
    background: none;
    padding: 0;
    position: relative;
}

.notification-btn img {
    height: 50px; /* Match the size of the dropdown button */
    object-fit: cover;
}

/* Notification bubble for pending friend requests */
.notification-bubble {
    position: absolute;
    top: -5px;  /* Adjust as needed */
    right: -5px;  /* Adjust as needed */
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 20px; /* Ensure it's circular when there's a single digit */
    min-height: 20px; /* Same as width to maintain the circular shape */
}

/* Floating container for friend requests in the upper-right corner */
.friend-request-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    z-index: 1000;
}

.friend-request-container h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.friend-request-container p {
    font-size: 14px;
    margin-bottom: 15px;
}

.friend-request-container .btn {
    width: 100px;
    margin-bottom: 5px;
}

/* Ensure the carousels have a maximum width */
.container {
    max-width: 1000px; /* Adjust the width to provide more space for carousel previews */
    margin: 0 auto;   /* Center the container */
}

/* General styles for the carousel */
#watchlistCarousel .carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow: visible; /* Allow items to overflow for preview effect */
    justify-content: center; /* Center items within the carousel */
}

#watchlistCarousel .carousel-item {
    transition: transform 0.5s ease-in-out;
    flex: 0 0 auto;
    margin-right: 15px; /* Space between items for preview */
    width: auto; /* Set consistent width for the items to ensure they are visible */
    max-width: 300px; /* Limit the width of each item for better alignment */
}

/* Ensure images maintain their aspect ratio and fit the card dimensions */
.carousel-item img {
    width: 100%; /* Set consistent width for carousel images */
    height: auto; /* Maintain aspect ratio to avoid cutting off */
    object-fit: contain; /* Ensure that the image fits well within its bounds */
    margin: 0 auto; /* Center the image */
}

/* Card styles for light mode */
.card {
    margin: 10px; /* Add margin to separate each card visually */
    border: none; /* Remove card borders for a cleaner look */
    background-color: #333240; /* Dark background for light mode */
    color: white; /* White text for light mode */
}

body.dark-mode .card {
    background-color: #f0f0f0; /* Light background for dark mode */
    color: black; /* Black text for dark mode */
}

.card-body {
    padding: 10px; /* Adjust padding to make the card content more compact */
}

.card-title {
    font-size: 1.1rem; /* Adjust title font size */
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem; /* Adjust text font size */
    color: #565a5c; /* Set a soft color for the description text */
    overflow: hidden; /* Prevent text overflow */
    max-height: 60px; /* Constrain height for better alignment with image */
    text-overflow: ellipsis;
}

/* Controls styling to ensure visibility */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
}

/* Control the carousel for previews */
.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Adjust control size */
}

/* Center carousel controls for better UI */
.carousel-control-prev,
.carousel-control-next {
    align-items: center;
}

/* Custom container for each list item in light mode */
.custom-container {
    color: white; /* White text for light mode */
    background-color: #333240; /* Dark background color for light mode */
    padding: 10px 15px; /* Add padding inside the container */
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 10px; /* Spacing between containers */
    display: inline-block; /* Makes the container adjust to content width */
}

/* Custom container for each list item in dark mode */
body.dark-mode .custom-container {
    color: black; /* Black text for dark mode */
    background-color: #f0f0f0; /* Light background color for dark mode */
}

/* Initial state: hidden, only for fade-in list */
.fade-in-list li {
    opacity: 0;
    transform: translateY(20px); /* Move slightly down */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fade-in animation, only for fade-in list */
.fade-in-list li.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Styles for movie posters */
.movie-poster img {
    width: 354px;          /* Set width to maintain 27 in aspect ratio */
    height: 525px;         /* Set height to maintain 40 in aspect ratio */
    object-fit: cover;     /* Ensure image maintains aspect ratio within the set dimensions */
    border: 8px solid #cfb87c;
    border-radius: 5px;    /* Optional: Add slight rounding for better appearance */
}

.movie-poster img:hover {
    border-color: rgb(52, 255, 52); /* Change border to green on hover */
}



/* Cant Decide Button */
.transparent-button {
    background-color: transparent; /* Set button background to transparent */
    border: none; /* Remove border */
    padding: 0; /* Remove padding */

}

.transparent-button img {
    display: block; /* Remove any space around the image */
}

/* ------------------------------------ MOVIE GRID ------------------------------------ */
/* Center the title */
h1.text-center {
    margin-top: 20px;
    font-size: 2.5rem;
    color: #fff; /* Adjust color based on the page background */
}


/* Film Item Styling */
.film-item {
    padding: 15px;
    background-color: #333; /* Optional: background color for each item */
    border-radius: 8px;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid black; /* Add black outline */
}

/* Film Poster Styling */
.film-poster {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Film Title Styling */
.film-title {
    font-size: 1.25rem;
    margin: 10px 0;
    font-weight: bold;
    color: #f9f9f9;
}

/* Buttons Styling */
.add-to-seen,
.add-to-watchlist {
    margin: 5px;
    width: 100%; /* Make buttons full width for consistency */
}

/* Base styles for buttons */
.add-to-seen,
.add-to-watchlist {
    margin: 5px;
    width: 100%; /* Make buttons full width for consistency */
    border: none; /* Remove border */
    color: #fff; /* White text */
}

/* Styles for 'Seen' button when selected */
.add-to-seen.selected {
    background-color: #cfb87c; /* Selected color */
}

/* Styles for 'Seen' button when not selected */
.add-to-seen {
    background-color: #333240; /* Not selected color */
}

/* Styles for 'Watchlist' button when selected */
.add-to-watchlist.selected {
    background-color: #cfb87c; /* Selected color */
}

/* Styles for 'Watchlist' button when not selected */
.add-to-watchlist {
    background-color: #333240; /* Not selected color */
}

/* Hover effects for buttons */
.add-to-seen:hover,
.add-to-watchlist:hover {
    background-color: #44455a; /* Brighter color on hover */
}

/* Add a brighter color on hover for selected state */
.add-to-seen.selected:hover,
.add-to-watchlist.selected:hover {
    background-color: #e2c79d; /* Brighter color on hover */
}

/* Ensure the hover color for not selected buttons remains the same */
.add-to-seen:hover:not(.selected),
.add-to-watchlist:hover:not(.selected) {
    background-color: #44455a; /* Brighter color on hover for non-selected */
}

/* Prevent Bootstrap from overriding styles */
.add-to-seen:focus,
.add-to-watchlist:focus {
    outline: none; /* Remove focus outline */
    box-shadow: none; /* Remove box shadow */
    background-color: inherit; /* Maintain background color on focus */
}

/* ------------------------------------ VIEWER LIST ------------------------------------ */
.viewer-card {
    display: block;  /* Ensures the anchor takes the full width of the container */
    padding: 15px;  /* Adds padding */
    background-color: #333;  /* Set background color to #333 */
    border-radius: 8px;  /* Rounded corners */
    text-align: center;  /* Centers the text */
    text-decoration: none;  /* Removes the underline from the link */
    transition: background-color 0.3s;  /* Smooth transition on hover */
}

.viewer-container {
    margin-bottom: 15px;  /* Adds spacing of 15px between each user */
}

.viewer-name {
    color: white;  /* Set text color of the names to white */
    margin: 0;  /* Removes default margin */
}

.viewer-card:hover {
    background-color: #444;  /* Change background on hover for a slight effect */
}

/*Social Media Feed Styling*/

/* Social Media Feed Styles */

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Individual feed item styling */
.feed-item {
    background-color: #333240; /* Dark background color */
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .feed-item {
    background-color: #f0f0f0; /* Light background for dark mode */
    color: black;
}

/* Card content adjustments */
.feed-item .card-body {
    display: flex;
    align-items: center;
    padding: 15px;
}

.feed-item img {
    border-radius: 5px;
    margin-right: 15px;
    width: 100px;
    height: auto;
    object-fit: cover;
}

.feed-item .card-title {
    font-size: 1.25rem;
    margin: 0;
    color: #cfb87c;
}

.feed-item .card-text {
    color: #565a5c; /* Soft color for text */
}

.feed-item small.text-muted {
    display: block;
    margin-top: 8px;
    color: #888888;
}

body.dark-mode .feed-item .card-title {
    color: #333240;
}

body.dark-mode .feed-item .card-text {
    color: #44455a;
}

body.dark-mode .feed-item small.text-muted {
    color: #565a5c;
}

/* Ensure feed-container has a scrollable area */
#feed-container {
    height: 1500px; /* Set a specific height */
    overflow-y: scroll; /* Enable vertical scrolling */
    
}


/* Light Mode Styles (Default) */
.profile-buttons .btn {
    background-color: transparent;
    border: 2px solid #cfb87c;
    color: #cfb87c;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: large;
}

.profile-buttons .btn:hover {
    background-color: #cfb87c;
    color: black;
}

/* Styling for the friends section container */
.friends-section {
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.friends-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

/* Styling for the friends list items */
.friends-section .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.friends-section .list-group-item:hover {
    background-color: #f1f1f1; /* Subtle hover effect */
}

/* Friend name link styling */
.friends-section .list-group-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.friends-section .list-group-item a:hover {
    color: #0056b3;
}

/* Remove Friend button styling */
.friends-section .btn-danger {
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.friends-section .btn-danger:hover {
    background-color: #c82333; /* Darker red on hover */
}




.film-info-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

.film-info-card p {
    font-size: 1rem;
    color: #333;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.film-info-card strong {
    color: #cfb87c; /* Accent color for labels */
    margin-right: 5px;
}

.film-info-card a {
    color: #007bff;
    text-decoration: none;
}

.film-info-card a:hover {
    text-decoration: underline;
}

.film-info-card i {
    color: #cfb87c; /* Match icon color with labels */
    margin-right: 5px;
}

.film-id {
    display: none;
}
