/* Papers Page Specific Styles */

body {
  font-size: 18px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
}

#papers-section {
  margin: 3rem 10rem;
}

.papers-title {
  text-align: center;
  margin-bottom: 3rem;
}

.papers-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  color: #555;
}

/* Search and Filter Styles */
.search-container {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 600px;
}

.search-box input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 40px 0 0 40px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: #888;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.search-box button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0 40px 40px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-box button:hover {
  background-color: #555;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid #ddd;
  border-radius: 40px;
  background-color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #f0f0f0;
}

.filter-btn.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

.papers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}

/* Paper Card Styles */
.paper-card {
  background-color: #fafafa;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  position: relative;
  cursor: pointer;
}

.paper-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.paper-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.paper-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.paper-card:hover .paper-image img {
  transform: scale(1.05);
}

.paper-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.paper-content h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
}

.paper-content p {
  margin-bottom: 2rem;
  flex: 1;
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.paper-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

.paper-date {
  font-size: 0.9rem;
  color: #777;
}

.paper-source {
  font-weight: 500;
  color: #666;
  font-size: 0.95rem;
}

/* Button Styling */
.paper-card .btn {
  margin: 0;
  border-radius: 40px;
  border: 1px solid #333;
  padding: 0.8rem 1.8rem;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  box-shadow: none;
  background-color: transparent;
  color: #222;
  text-decoration: none;
}

.paper-card .btn:hover {
  background-color: #333;
  color: white;
  transform: translateY(-2px);
}

/* Tags */
.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.paper-tag {
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #e8e8e8;
  color: #555;
}

.paper-tag.research {
  background-color: #ffb3b3;
  color: #333;
}

.paper-tag.journal {
  background-color: #b3e6cc;
  color: #333;
}

.paper-tag.conference {
  background-color: #b3d1ff;
  color: #333;
}

.paper-authors {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #666;
}

.paper-authors i {
  color: #888;
  font-size: 1rem;
}

.paper-citation {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  border-left: 3px solid #ccc;
  font-family: monospace;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #777;
  z-index: 10;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #333;
}

.modal-header {
  padding: 2.5rem 3rem 0.5rem 3rem;
}

.modal-image {
  height: 350px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2.5rem 3rem;
}

.modal-section {
  margin-top: 2.5rem;
  border-top: 1px solid #eee;
  padding-top: 2.5rem;
}

.modal-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.modal-publication-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.modal-publication-details p {
  margin: 0;
}

.modal-authors {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 3rem;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  align-items: center;
}

.modal-footer .btn {
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  border: 1px solid #333;
  background-color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.modal-footer .btn:hover {
  background-color: #333;
  color: white;
}

.modal-share {
  display: flex;
  gap: 0.8rem;
}

.modal-share .share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-share .share-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  #papers-section {
    margin: 2rem 5rem;
  }

  .papers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  #papers-section {
    margin: 2rem 2rem;
  }

  .papers-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .paper-card {
    max-width: 100%;
  }

  .paper-content {
    padding: 1.8rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  #papers-section {
    margin: 1.5rem 1rem;
  }

  .paper-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .paper-content {
    padding: 1.5rem;
  }

  .modal-content {
    margin: 2% auto;
    width: 95%;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.5rem;
  }

  .modal-image {
    height: 200px;
  }
} 