/* Diplomacy section - Main wrapper */
.diplomacy-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Filters - HORIZONTAL LAYOUT */
.diplomacy-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1.5rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.diplomacy-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  flex: 1 1 auto;
}

.diplomacy-filters label span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
}

.diplomacy-filters select {
  padding: 0.5rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 4px;
  background: var(--bg, #fff);
  color: var(--text, #111);
  font-size: 0.875rem;
  cursor: pointer;
  width: 100%;
}

.diplomacy-filters select:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.diplomacy-filters button {
  padding: 0.5rem 1.5rem;
  background: var(--primary, #2563eb);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  height: 38px;
  white-space: nowrap;
  flex-shrink: 0;
}

.diplomacy-filters button:hover {
  background: var(--primary-dark, #1d4ed8);
}

/* Results grid */
#diplomacy-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .diplomacy-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .diplomacy-filters label {
    min-width: 100%;
    flex: 1 1 100%;
  }
  
  .diplomacy-filters button {
    width: 100%;
  }
  
  #diplomacy-results {
    grid-template-columns: 1fr;
  }
}

/* Ensure filters don't get pushed to sidebar */
#articles-container .diplomacy-wrapper {
  grid-column: 1 / -1;
  width: 100%;
}
