/* GENERAL STYLES */
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f5f6f8;
  color: #222;
  background-image: url('../images/Background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}   

a { text-decoration: none; color: inherit; }

h2, h3, h4, p { margin: 0; }

/* HEADER / NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(13px);
  position: sticky;
  top: 0;
  z-index: 200;
}

.logo img {
  width: 150px;
  height: 75px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto; /* pushes it to extreme right */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #222;
  transition: 0.2s;
  text-decoration: none;
}

.nav-links li a:hover {
  color: #fa3c65;
}

.profile-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

/* MAIN CONTAINER */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* HEADINGS */
h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
}

/* BUTTONS */
button {
  cursor: pointer;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  transition: 0.2s;
}

button:hover { opacity: 0.85; }

/* EVENTS GRID */
#eventList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.event-card {
  background: rgba(255,255,255,0.42);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.event-card p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.event-card button {
  background: #fa3c65;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  margin-top: 1rem;
}

.event-card:hover {
  transform: translateY(-3px);
  transition: 0.2s ease-in-out;
}

/* Event Details Table */
/* Event Details Table */
.event-info {
  display: flex;
  flex-direction: column; /* vertical layout */
  align-items: center;    /* center horizontally */
  margin-bottom: 2rem;
}

.event-table {
  width: 100%;           /* bigger table */
  max-width: 800px;
  font-size: 1.1rem;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;  /* space below table */
}

.event-table td {
  padding: 1.2rem 1.5rem; /* bigger spacing */
   border-bottom: 1px solid rgba(0,0,0,0.1);
  vertical-align: top;
  font-size: 1rem;
}

.event-table tr:last-child td {
  border-bottom: none;
  text-align: center;
}

.event-table td:first-child {
  font-weight: 600;
  color: #fa3c65;
  width: 180px;
}

/* TEAM MEMBERS inside table */
.table-team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center the team members */
  gap: 2rem;
  margin-top: 1rem;
}

.table-team-members .member {
  text-align: center;
  width: 120px;  /* bigger width */
}

.table-team-members .member img {
  width: 100px;   /* bigger image */
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.5rem; /* center image and add space below */
}

.table-team-members .member h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.event-controls {
  display: flex;
  justify-content: space-between; /* button left, filter right */
  align-items: center;
  margin-bottom: 1.5rem;
}

.create-btn {
  display: inline-block;
  background-color: var(--pink);
  color: black;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
}

.create-btn:hover {
  background-color: #fa3c65;
}

.filter select {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}


/* JOIN BUTTON */
.join-btn {
  background: #fa3c65;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  display: block;
  margin: 2rem auto;
  font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #eventList {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .event-table {
    width: 90%;
  }
}

@media (max-width: 768px) {
  #eventList {
    grid-template-columns: 1fr;
  }
  
  header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .event-table {
    width: 95%;
  }
  
  .table-team-members .member {
    width: 80px;
  }
  
  .table-team-members .member img {
    width: 60px;
    height: 60px;
  }
}