/* Archive page specific styles */
body {
  font-family: 'Inter', sans-serif;
}

/* Main Navigation - updated to include Archive link */
.main-nav {
  display: flex;
  justify-content: center;
  padding: 0.8rem 0;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* Archive Header */
.archive-header {
  text-align: center;
  padding: 1rem 0 2rem;
  position: relative;
  margin-top: 1rem;
}

.archive-description {
  color: var(--light-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* Filter Section */
.archive-filter {
  width: 100%;
  margin-bottom: 2rem;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
}

.filter-container label {
  font-weight: 500;
  color: var(--text);
}

#year-filter {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  background-color: white;
  cursor: pointer;
}

.search-label {
  margin-left: 1.5rem;
}

.search-container {
  display: flex;
  flex: 1;
  max-width: 400px;
}

#search-editions {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px 0 0 6px;
  font-family: 'Inter', sans-serif;
}

#search-button {
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 0 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#search-button:hover {
  background-color: #3a5a9f;
}

/* Editions Grid */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.edition-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.edition-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.edition-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.edition-info {
  padding: 1.5rem;
}

.edition-date {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.edition-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.8rem 0;
  color: var(--text);
}

.edition-description {
  font-size: 0.95rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.edition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edition-tag {
  background-color: rgba(74, 107, 175, 0.1);
  color: var(--secondary);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

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

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 85%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--light-text);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--text);
}

#modal-title {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal-pdf-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#modal-pdf-render {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 4px 15px var(--shadow);
  background-color: white;
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.download-btn {
  background-color: var(--secondary);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: #3a5a9f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 107, 175, 0.3);
}

/* No results message */
.no-results {
  text-align: center;
  padding: 3rem;
  width: 100%;
  color: var(--light-text);
  font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .search-label {
    margin-left: 0;
  }
  
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  #modal-title {
    font-size: 1.5rem;
  }
} 