/* Publication Filter Styles */

.publication-filters {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem 0;
}

.filter-btn {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  outline: none;
}

.filter-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn.active {
  background: #495057;
  color: white;
  border-color: #495057;
  box-shadow: 0 2px 8px rgba(73,80,87,0.3);
}

.filter-btn.active:hover {
  background: #343a40;
  border-color: #343a40;
}

/* Publications Table */
.publications-table-container {
  margin: 2rem 0;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.publications-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}

.publications-table thead {
  background: #6c757d;
  color: white;
}

.publications-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.publications-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.publications-table tbody tr:hover {
  background: #f8f9fa;
}

.publications-table tbody tr.hidden {
  display: none;
}

.publications-table td {
  padding: 1rem;
  vertical-align: top;
}

/* Table Cell Styles */
.title-cell {
  min-width: 300px;
}

.title-cell a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.title-cell a:hover {
  color: #495057;
  border-bottom-color: #495057;
}

.title-cell a:visited {
  color: #2c3e50;
}

.title-cell a:visited:hover {
  color: #495057;
  border-bottom-color: #495057;
}

.authors {
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-style: italic;
}

.venue-cell {
  min-width: 150px;
  font-weight: 500;
  color: #495057;
}

.links-cell {
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
}

.link-btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin: 0 0.25rem;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.pdf-btn {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.pdf-btn:hover {
  background: #5a6268;
  border-color: #5a6268;
  transform: translateY(-1px);
}

.pdf-btn:visited {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.details-btn {
  background: #868e96;
  color: white;
  border-color: #868e96;
}

.details-btn:hover {
  background: #6c757d;
  border-color: #6c757d;
  transform: translateY(-1px);
}

.details-btn:visited {
  background: #868e96;
  color: white;
  border-color: #868e96;
}


/* Thesis Note */
.thesis-note {
  margin-top: 4rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #6c757d;
}

.thesis-note h3 {
  margin-top: 0;
  color: #2c3e50;
}

.thesis-note a {
  color: #495057;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.thesis-note a:hover {
  border-bottom-color: #495057;
}

.thesis-note a:visited {
  color: #495057;
}

.thesis-note a:visited:hover {
  border-bottom-color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
  .publication-filters {
    text-align: left;
  }
  
  .filter-btn {
    margin: 0 0.25rem 0.5rem 0;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .publications-table {
    font-size: 0.8rem;
  }
  
  .publications-table th,
  .publications-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .title-cell {
    min-width: 250px;
  }
  
  .venue-cell {
    min-width: 120px;
  }
  
  .links-cell {
    min-width: 100px;
  }
  
  .link-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    margin: 0 0.2rem;
  }
}

@media (max-width: 480px) {
  .publication-filters {
    margin: 1rem 0;
  }
  
  .filter-btn {
    width: auto;
    margin: 0 0.2rem 0.4rem 0;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  
  /* Stack table cells vertically on small screens */
  .publications-table,
  .publications-table thead,
  .publications-table tbody,
  .publications-table th,
  .publications-table td,
  .publications-table tr {
    display: block;
  }
  
  .publications-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .publications-table tr {
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: #fff;
  }
  
  .publications-table td {
    border: none;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 25%;
  }
  
  .publications-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    width: 20%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #666;
  }
  
  .title-cell:before { content: "Title: "; }
  .venue-cell:before { content: "Venue: "; }
  .links-cell:before { content: "Links: "; }
  
  .thesis-note {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}