@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
  font-family: "Rubik", serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.feed-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 60px;
}

.header {
  /* text-align: center;
  padding: 0.1px 0;
  background-color: #EB8546;
  color: white;
  margin-bottom: 20px;
  border-radius: 8px;
  min-height: 100px;
  background: url(/images/banner.png) no-repeat center center; */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-height: 200px;
}

.header-right {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.header-item {
  background-color: #EB8546;
  color: white;
  padding: 5px; /* Increased padding to maintain aspect ratio for a perfect circle */
  border-radius: 50%; /* This ensures the element is circular */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
  width: 30px; /* Fixed width to ensure a circle shape */
  height: 30px; /* Fixed height to ensure a circle shape */
}
.header-item:hover {
  background-color: #c2703d;

}

.review-options {
  background-color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
}

.review-options h2 {
  margin: 0 0 15px;
  color: #333;
}

#review-form {
  display: flex;
  gap: 10px;
}

#restaurant-name {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.review-button {
  background-color: #EB8546;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.review-button:hover {
  background-color: #c46c36;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  list-style: none;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10;
}

.suggestions-list li {
  padding: 10px;
  cursor: pointer;
}

.suggestions-list li:hover {
  background-color: #f1f1f1;
}

.restaurant-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
}

.restaurant-info {
  display: flex;
  align-items: center;
}

.restaurant-pic {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin-right: 15px;
  object-fit: cover;
}

.restaurant-details h2 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.restaurant-details p {
  margin: 5px 0 0;
  color: #777;
}

.friend-comment {
  margin: 15px 0;
  color: #555;
}

.restaurant-actions {
  display: flex;
  justify-content: flex-start;
}

.view-button, .comment-button {
  background-color: #EB8546;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.view-button:hover, .comment-button:hover {
  background-color: #45a049;
}

@media (max-width: 600px) {
  .feed-container {
      padding: 10px;
  }

  .review-options {
      padding: 15px;
  }

  #restaurant-name {
      padding: 8px;
  }

  .restaurant-card {
      padding: 15px;
  }

  .view-button, .comment-button {
      padding: 8px 12px;
  }
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.align {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.align label {
  flex-grow: 1;
}

.align input {
  max-width: 20px;
  padding: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  height: 20px;
  width: 20px;
  border-radius: 15px;
}
/* Customize the checkbox */


.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#popup-review-form input, 
#popup-review-form textarea, 
#popup-review-form select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

#submit-review {
  background-color: #EB8546;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 15px;
  border-radius: 5px;
  cursor: pointer;
}

#submit-review:hover {
  background-color: #45a049;
}

#reviews-container {
  margin-top: 20px;
}

.review {
  background-color: #f9f9f9;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review h3 {
  margin-top: 0;
}

.review p {
  margin: 5px 0;
}

.review small {
  color: #666;
}

.review {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  position: relative; /* Ensure the container is positioned relative for absolute positioning of the heart icon */
  cursor: pointer;
}

.review-image {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  /* margin-bottom: 10px; */
  border-radius: 8px;
}

/* Unfilled Heart Icon */
.heart {
    position: absolute;
    top: 20px; /* Adjust as needed to align with the content */
    right: 20px; /* Position the heart on the right side */
    font-size: 24px; /* Size of the heart icon */
    color: #ff4081; /* Heart icon color */
    cursor: pointer; /* Pointer cursor on hover */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.heart:hover {
    color: #d81b60; /* Darker color on hover */
}


.material-symbols-outlined.filled {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.quote {
  font-size: 1.2em; /* Slightly larger text */
  font-style: italic; /* Italicize the text */
  background-color: #f9f9f9; /* Light background color for contrast */
  border-left: 4px solid #EB8546; /* Left border for emphasis */
  padding: 10px 20px; /* Padding around the quote */
  margin: 20px 0; /* Margin for spacing */
  border-radius: 8px; /* Rounded corners */
  color: #333; /* Text color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.rating {
  font-size: 14px;
}

/* Basic styles for star ratings */
.star-rating {
    font-size: 1.5em; /* Size of the stars */
    color: #EB8546; /* Gold color for filled stars */
    display: flex; /* Arrange stars in a row */
}

.popup-review {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  /* color: #fff; */
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000; /* Ensure it's on top */
}

.popup-content-review {
  max-width: 800px;
  margin: 0 auto;
  background: #333;
  padding: 20px;
  border-radius: 10px;
}

.popup-content-review .close-btn {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: white;
}

.copyright {
  color: gray;
}

.actions .review-button {
    flex: 1;
    flex-grow: 1; /* Allow buttons to grow and fill the available space equally */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    margin: 0 5px; /* Add a small margin between buttons */
}

.actions {
    display: flex; /* Arrange buttons in a row */
    justify-content: space-between; /* Distribute buttons evenly with space in between */
}

.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.nav-item {
  text-align: center;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  flex: 1;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: #007bff;
}

.material-symbols-outlined {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.nav-label {
  font-size: 12px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.reviewer-name {
  font-weight: bold;
}

~source footer {
  src: '/fbc/footer.html'
}

/* General Styles */
body {
  font-family: "Rubik", serif;
    margin: 0;
    padding: 0;
}

/* Filter Button */
.filter-button {
    /* background-color: #EB8546; */
    color: black;
    border: none;
    border-radius: 5px;
    /* padding: 10px 20px; */
    cursor: pointer;
    transition: background-color 0.3s;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: row;
  font-size: 16px;
}

.filter-button:hover {
    /* background-color: #c46c36; */
}

/* Full-Screen Popup */
.filter-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Popup Content */
.filter-popup-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
}

.close-btn:hover {
    color: #EB8546;
}

/* Grid Layout */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.filter-grid label {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-grid label:hover {
    background-color: #f1f1f1;
}

.filter-grid input[type="checkbox"] {
    margin-right: 10px;
}

/* Apply Button */
.apply-button {
    background-color: #EB8546;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.apply-button:hover {
    background-color: #c46c36;
}

.rev-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-direction: row;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.ai-recommendation-button {
  margin: 20px 0;
  text-align: center;
}

  .ai-button {
    background: linear-gradient(135deg, #EB8546, #ff6b6b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 133, 70, 0.3);
    z-index: 999999999999999;
  }

  .ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 133, 70, 0.4);
  }

.ai-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto; /* Allow scrolling within popup */
  z-index: 9999999999999999;
}

.ai-popup.active {
  opacity: 1;
}

.ai-popup-content {
  min-height: 100%;
  padding: 20px;
  color: white;
  position: relative;
}

.ai-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: background 0.3s ease;
}

.ai-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ai-loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #EB8546;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-message {
  font-size: 18px;
  color: white;
  opacity: 0;
  animation: fadeInOut 3s infinite;
}

.ai-results {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  overflow-y: auto;
}

.ai-results h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  background: linear-gradient(135deg, #EB8546, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-recommendations {
  display: grid;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ai-recommendations.show {
  opacity: 1;
  transform: translateY(0);
}

.ai-restaurant-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (max-width: 600px) {
  .ai-results {
      padding: 10px;
  }

  .ai-restaurant-card {
      padding: 15px;
  }
}

.fullscreen-popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Semi-transparent black background */
    z-index: 199999000; /* Ensure it is above other elements */
}

.fullscreen-popup-content {
    background-color: white;
    margin: 15% auto; /* Center the content vertically */
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    /* position: relative; */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: black; /* Change color on hover */
}

/* Full-screen overlay to center the spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999998; /* Ensure it's beneath the spinner */
  background: rgba(255, 255, 255, 0.8); /* Optional background dim */
}

.spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #EB8546; /* Orange */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@media (max-width: 600px) {
  .spinner {
    width: 40px;
    height: 40px;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

textarea {
  font: inherit;
}