@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Global styles */
body {
  font-family: Roboto, sans-serif;
  margin: 1rem;
  text-align: center;
}

/* Header with burger and filter menus */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* Menu container for burger and filter */
.menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Burger Menu */
.burger-menu {
  position: relative;
}

.burger-menu .dropdown{
  min-width: 180px;
  text-align: left;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.burger-bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: background-color 0.2s;
}

.burger-btn:hover .burger-bar {
  background-color: #555;
}

.dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.dropdown a:hover {
  background-color: #f2f2f2;
}



/* Events Container */
.events-container {
  margin: 1rem auto;
  width: 90%;
  max-width: 600px;
}

/* Event Styles */
.event {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Space between columns */
  border: 1px solid #ddd;
  padding: 0.1rem; /* Reduced padding for compact layout */
  margin-bottom: 0.5rem; /* Reduced margin between events */
  border-radius: 2px;
  background: #f8f8f8;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}


.event:hover {
  transform: scale(1.02);
  background-color: #f0f0f0;
  border-color: #aaa;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #007bff;
  margin: 0.5rem auto;
}

.event-heure {
  padding-top: 12px;
}


.event-details {
  flex: 1;
  text-align: left;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-title {
  font-size: 1.1rem;
  font-weight: bold;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: end;
}

.event-description {
  margin: 0.5rem 0;
}

.month-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 1.5rem 0 1rem;
  text-align: left;
  position: relative;
}

.month-title::after {
  content: "";
  display: block;
  width: 100%; /* Full-width line */
  height: 2px; /* Adjust thickness */
  background-color: rgb(202, 200, 200); /* Line color */
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjust distance from text */
}


/* Tag pill styling with hover effects */

/* Tag Styles */
.tag {
  background-color: #999999;
  color: #fafafa;
  padding: 0.2rem 0.5rem;
  margin-top: 2px;
  margin-right: 5px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.tag:hover {
  transform: scale(1.05);
  background-color: #ccc;
}




/* Loading text */
.loading {
  font-size: 1.2rem;
  font-weight: bold;
  color: gray;
}



/* Floating Button Styles */
.add-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.add-btn:hover {
  transform: scale(1.1);
}





/* Filter Button */
.filter-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 10px;
}

/* Larger Filter Dropdown */
.filter-dropdown {
  position: absolute;
  right: 0;
  top: 35px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  text-align: right;
}

.filter-dropdown h3 {
  margin-top: 0;
  font-size: 0.8rem;
  text-align: center;
}

/* Checkbox Styles */
.filter-option {
  display: flex;
  align-items: end;
  justify-content: start;
  gap: 0.3rem;
  padding: 0.1rem 0;
}

/* Filter Menu */
.filter-menu {
  position: relative;
}


.filter-option {
  margin-bottom: 0.5rem;
}

.filter-option label {
  cursor: pointer;
}


/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: left;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Details Button */
.details-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.details-btn:hover {
  background-color: #0056b3;
}

h1 a {
  all: unset; /* Removes all styles */
  cursor: pointer; /* Keep pointer behavior */
}

.modal-link {
  color: rgb(123, 123, 123); /* Light gray color */
  text-decoration: none; /* Remove underline */
  cursor: pointer;
  font-style: normal; /* No italic */
  pointer-events: auto; /* Ensure it remains clickable */
}

.modal-link:hover {
  text-decoration: underline; /* Add underline on hover */
  color: rgb(0, 0, 0);
}