
/* ==========================================================
   POST CARDS LIST (Vertical Stack)
   ========================================================== */
#post-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.post-card {
  background-color: #b2e6ee;
  border-radius: 14px;
  padding: 35px 40px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 30px;
  text-decoration: none;
  color: #000;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

/* Company logo in card */
.post-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  flex-shrink: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: #ffe6b6;
  color: #000000;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tag-button.active {
    background-color: #946090;
    color: white;
    font-weight: 600;
}


/* ==========================================================
   Sort and filter
   ========================================================== */
/* Parent container for both tag groups */
.filter-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap; /* keeps layout clean on smaller screens */
  background: #e7f8fc;      /* subtle background tint */
  padding: 25px 25px;
  border-radius: 20px;
  max-width: 1200px;
  margin: 30px auto;
}

.filter-box {
  background: #b7e4ee;
  padding: 10px 15px;
  border-radius: 22px;
  width: 450px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.filter-box:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Make buttons look like rounded pills*/
.tag-button {
  background: #ffe6b6;
  border: none;
  padding: 7px 14px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.tag-button:hover {
  background: #edc66c;
  transform: scale(1.06);
}

/* Make tag grid tighter and centered */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content:space-evenly;
  max-width: 100%;
  margin: 6px auto;
}

.filter-box {
  flex: 1 1 450px;      /* grow/shrink but minimum width 400px */
  max-width: 600px;     /* stops them from getting too large */
}


/* Align icon + title*/
.tag-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-items:center;
  max-height: 85px;
  gap: 8px;
}


.filter-title {
  font-family: "Fira Sans Condensed", sans-serif;
  font-size: 24px;
  font-weight: 600;
  max-height: 75px;
  margin-top: 6px; 
  margin-bottom: 10px;        
  padding: 0;  
}

.filter-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: #007c91;
  margin: 6px auto 0;
  border-radius: 10px;
}


.tag-icon {
  width: 24px;
  transform: translateY(-5px);
}

.tag-header-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  margin-bottom:10px;
}

.search-container {
  display:flex;
  align-items:center;
  gap:8px;
}

.search-box{
  background:white;
  border:none;
  padding:7px 14px;
  border-radius:10px;
  font-size:14px;
  box-shadow:0 2px 4px rgba(0,0,0,0.08);
  width:170px;
}

.search-icon{
  width:22px;
}

.search-title{
  font-family: "Fira Sans Condensed", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.tag-button.active {
  background: #CC85FF;        /* highlight color */
  color: white;
  transform: none;            /* prevent jump scaling */
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.hidden-tag { display:none; }

.collapsible-tags.expanded .hidden-tag {
  display:inline-flex;
  justify-content:space-evenly;

}


.toggle-tags-btn {
  background:#165A64;
  color:white;
  border: none;
  padding: 7px 14px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  white-space:nowrap;      /* prevents wrapping mid-word */
  order: 999; 
  display:inline-flex;
  align-items:center;
  justify-content:space-evenly;
}

.toggle-tags-btn:hover { 
  background:#144A52; 
  transform: scale(1.06);
}

/*add post stuff*/
/* === Modal Overlay === */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45); /* softer opacity */
  backdrop-filter: blur(2px);
  z-index: 500;
}

#post-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 600;
  width: 90%;
  max-width: 480px;
}

.modal-content {
  background: #ffffff;
  padding: 35px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-content h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  font-family: "Fira Sans Condensed", sans-serif;
}

#close-modal {
  font-size: 26px;
  cursor: pointer;
  align-self: flex-end;
  margin-top: -12px;
  color: #777;
  transition: 0.2s ease;
}

#close-modal:hover {
  color: #333;
  transform: scale(1.12);
}

.modal-content input,
.modal-content textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  font-family: "Lato", sans-serif;
}

.modal-content textarea {
  resize: vertical;
  min-height: 90px;
}

#submit-post-btn {
  background: #165A64; /*theme teal */
  color: white;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
}

#submit-post-btn:hover {
  background: #0f4349;
  transform: scale(1.02);
}

.hidden {
  display: none;
}


#open-form-btn {
  background-color: #165A64;    /* matches filter buttons */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#open-form-btn:hover {
  background-color: #0f4349;
  transform: scale(1.05);
}
