/* C:\Users\Noah\Documents\projects\noahfish3\src\css\input.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  background-color: #121927;
  color: #b2bed4;
  font-family: "Poppins", sans-serif;
}

/* Fix spacing for sections and content */
.main-content-section {
  margin-bottom: 2rem; /* 32px consistent spacing between sections */
}

.main-content-section:last-child {
  margin-bottom: 0; /* Remove margin from last section */
}

/* Fix heading spacing - remove excessive margins */
.main-content-section h1,
.main-content-section h2,
.main-content-section h3,
.main-content-section h4,
.main-content-section h5 {
  margin-bottom: 0.75rem !important; /* 12px consistent space after headings */
  margin-top: 0 !important; /* Remove top margin */
}

/* Fix paragraph spacing */
.main-content-section p {
  margin: 0 !important; /* Remove all margins from paragraphs */
}

.sticky-buttons {
  position: sticky;
  top: 20px; /* Distance from top when scrolling */
  height: 0; /* Won't take up space in the flow */
  margin-right: 20px; /* Spacing from right edge */
  z-index: 10; /* Ensure buttons stay above other content */
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Keeping original gap */
  position: absolute;
  right: 0;
  pointer-events: none; /* Important fix - container itself doesn't receive hover */
}

.side-button {
  padding: 10px;
  background-color: #273653;
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.2s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Enable positioning for each button */
  pointer-events: auto; /* Re-enable pointer events for buttons */
}

/* Create a small buffer only around sides for hover accuracy */
.side-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -5px; /* Small buffer on left */
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none; /* Don't interfere with button hover */
}

.side-button:hover {
  background-color: #2d4062;
  cursor: pointer;
}

/* Fix SVG sizing without changing overall size */
.side-button svg {
  max-width: 24px;
  max-height: 24px;
  width: auto;
  height: auto;
}

/* Container to control map size and position */
.map-container {
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Make the iframe responsive */
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.file-structure {
  font-family: monospace;
  line-height: 1.5;
}

.folder,
.file {
  display: flex;
  align-items: center;
  margin: 4px 0;
  padding: 6px 0;
  font-size: 1.2rem;
}

/* Responsive folder and file sizes for medium screens */
@media (min-width: 768px) {
  .folder,
  .file {
    font-size: 1.4rem; /* Larger font size on medium screens */
    margin: 6px 0; /* More vertical spacing */
    padding: 8px 0;
  }

  .folder-contents {
    padding-left: 30px; /* Larger indent on medium screens */
    margin-left: 15px;
  }

  .folder-icon,
  .file-icon {
    min-width: 28px; /* Larger icon container */
    font-size: 1.5rem; /* Larger icons */
  }

  .folder-name,
  .file-name {
    margin-left: 12px; /* More spacing between icon and text */
  }
}

/* Responsive folder and file sizes for large screens */
@media (min-width: 1024px) {
  .folder,
  .file {
    font-size: 1.5rem; /* Even larger font on large screens */
    margin: 8px 0;
    padding: 10px 0;
  }

  .folder-contents {
    padding-left: 35px; /* Larger indent on large screens */
    margin-left: 18px;
  }

  .folder-icon,
  .file-icon {
    min-width: 32px;
    font-size: 1.6rem;
  }

  .folder-name,
  .file-name {
    margin-left: 14px;
  }

  /* Larger image previews on large screens */
  .image-preview {
    margin-top: 16px;
    margin-bottom: 16px;
  }
}

.folder {
  cursor: pointer;
}

.folder-contents {
  padding-left: 25px;
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
  margin-left: 12px;
}

.folder-name,
.file-name {
  margin-left: 10px;
}

.folder-icon,
.file-icon {
  min-width: 24px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

/* Hover effects */
.folder:hover,
.file:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Image preview */
.image-preview {
  max-width: 100%;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-preview img {
  width: 100%;
  display: block;
}

.restaurant-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.restaurant-card .text-gray-400 {
  white-space: nowrap; /* Prevents text from wrapping to the next line */
  overflow: hidden; /* Hides any content that overflows the container */
  text-overflow: ellipsis; /* Adds "..." when text is cut off */
  max-width: 100%; /* Ensures text doesn't exceed its container */
}

.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #3b82f6;
}

/* Disable blue hover effect for RIP cards */
.restaurant-card.rip-card:hover {
  border-left: 4px solid transparent; /* Keep transparent border on hover */
}
.cuisine-section {
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.restaurant-emoji {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}
.cuisine-emoji {
  font-size: 1.8rem;
  margin-right: 0.5rem;
  display: inline-block;
  transform: translateY(2px);
}
.filter-active {
  background-color: #3b82f6;
  color: white;
}

/* Hide scrollbar but keep functionality */
@layer utilities {
  /* For Webkit browsers (Chrome, Safari) */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }

  /* For Firefox and others */
  .no-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
}
