/* ===================================
   Product Downloads Filter Styles
   =================================== */

/* Product Downloads (Single Product) */
.pdf-product-downloads {
  margin-bottom: 2rem;
}

.pdf-type-group {
  margin-bottom: 2rem;
}

.pdf-type-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0e1d40;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.pdf-files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdf-file-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pdf-file-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #0e1d40;
}

.pdf-file-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
}

.pdf-file-link {
  color: #0e1d40;
  text-decoration: underline;
  font-size: 0.875rem;
}

.pdf-file-link:hover {
  color: #e1512c;
}

.pdf-file-note {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
  margin-top: 0.25rem;
}

.pdf-no-downloads {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Downloads Archive */
.pdf-downloads-archive {
  width: 100%;
}

/* Filters */
.pdf-filters {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #0e1d40;
  border-radius: 15px;
}

.pdf-filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.pdf-filter-item {
  flex: 1 1 200px;
  position: relative;
}

.pdf-search-input {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #0e1d40;
  border: 2px solid #ffffff;
  border-radius: 50px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pdf-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.pdf-search-input:focus {
  outline: none;
  background: #162949;
}

.pdf-search-input:hover {
  background: #162949;
}

/* Dropdown Styles */
.pdf-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #0e1d40;
  border: 2px solid #ffffff;
  border-radius: 50px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  color: #ffffff;
}

.pdf-dropdown-toggle:hover {
  background: #162949;
}

.pdf-dropdown-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
  margin-left: 1rem;
  color: #ffffff;
}

.pdf-dropdown-arrow::before {
  content: "→";
}

.pdf-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #0e1d40;
  border: 2px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.75rem;
}

.pdf-checkbox-label {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
  color: #ffffff;
}

.pdf-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pdf-checkbox-label input[type="checkbox"] {
  margin: 0 0.875rem 0 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #e1512c;
}

/* Results Count */
.pdf-results-count {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #ffffff;
}

/* Products List */
.pdf-products-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-product-accordion {
  background: #0e1d40;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-product-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: #0e1d40;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s ease;
}

.pdf-product-header:hover {
  background: #162949;
}

.pdf-product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
}

.pdf-accordion-arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.pdf-accordion-arrow.rotate-180 {
  transform: rotate(180deg);
}

.pdf-product-content {
  background: #ffffff;
  padding: 1.5rem;
}

/* Types Grid */
.pdf-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* 2-Column Grid for product_downloads_grid shortcode */
.pdf-types-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pdf-type-column {
  min-width: 0;
}

.pdf-type-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0e1d40;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.pdf-type-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdf-file-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pdf-file-details {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 4px;
}

.pdf-file-name {
  color: #0e1d40;
  text-decoration: underline;
  font-size: 0.875rem;
  word-break: break-word;
}

.pdf-file-name:hover {
  color: #e1512c;
}

.pdf-file-note-small {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
  margin-top: 0.125rem;
}

/* No Results */
.pdf-no-results {
  text-align: center;
  padding: 3rem;
  background: #0e1d40;
  border-radius: 15px;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .pdf-filters-grid {
    flex-direction: column;
  }

  .pdf-filter-item {
    width: 100%;
  }

  .pdf-types-grid,
  .pdf-types-grid-2col {
    grid-template-columns: 1fr;
  }
}
